dariocose / CN5711Arduino

CN5711 Arduino Led Driver

Home Page:https://allmylinks.com/dariocose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arduino CN5711 Led Driver

Full tutorial

A few months ago I found a led driver module composed of a CN5711 IC, a resistor and a variable resistor.

From the CN5711 datasheet:

General Description: The CN5711 is a current regulation integrated circuit operating from an input voltage of 2.8V to 6V, the constant output current can be set up to 1.5A with an external resistor. The CN5711 is ideal for driving LEDs. [...] The CN5711 adopts the temperature regulation instead of temperature protection function, the temperature regulation can make the LED being turned on continuously in case of high ambient temperature or high voltage drop.[...] Applications: Flashlight, High-brightness LED driver, LED headlights, Emergency lights and lighting [...] **Features: **Operating Voltage Range: 2.8V to 6V, On-chip Power MOSFET, Low Dropout Voltage: 0.37V @ 1.5A, LED Current up to 1.5A, Output Current Accuracy: ± 5%, Chip Temperature Regulation, Over LED Current Protection [...]


There are 3 modes of operation for this IC:

  1. With a PWM signal directly applied to the CE pin, the frequency of the PWM signal should be less than 2KHz
  2. With a logic signal applied to the gate of an NMOS (Figure 4)
  3. With a potentiometer (Figure 5)

https://www.instructables.com/How-to-Drive-a-Led-With-Arduino-or-Potentiometer-C/

Using the PWM signal it is very easy to drive the IC with a microcontroller like Arduino, Esp32 and AtTiny85.

In the "include" folder you find the working code for Arduino, Esp32 and Attiny85. The project is built with Platformio but you can copy and paste the code into the Arduino ide.

About

CN5711 Arduino Led Driver

https://allmylinks.com/dariocose


Languages

Language:C 91.7%Language:C++ 8.3%