Help me please. Esp32 pwm Led light controller.

  • Thread starter Thread starter Stuginski
  • Start date Start date
  • Tagged users Tagged users None
I've been working on and off on the same issue for a while now. What I found to work is using the NTPclient library to keep track of time and using if statements for each part of the day (e.g. ramp up from 9-12, constant brightness from noon to 6 and ramp down from 6-8). Within those if statements you can create a math function to gradually increase the brightness of the lamp. I've been testing it with just a single 5mm LED.
 
I've been working on and off on the same issue for a while now. What I found to work is using the NTPclient library to keep track of time and using if statements for each part of the day (e.g. ramp up from 9-12, constant brightness from noon to 6 and ramp down from 6-8). Within those if statements you can create a math function to gradually increase the brightness of the lamp. I've been testing it with just a single 5mm LED.
Thank you! I am trying to use Blynk time input widget. I found a very nice code using It (not related to leds) that explain almost everything about the coding processo of this widget, so I wanna try to do sth like you are doing but using the Blynk time input widget. Let's see. I have no time until the weekend :-(.

Thanks alot!
 
Caso seu objetivo principal não seja aprender a programar um ESP32, gostaria de indicar meu controlador AquariOS . A versão mais recente baseia-se em um módulo ESP32 WROVER, oferecendo
  • 8 canais de luz PMW com rampa programável
  • 4 canais de bomba analógicos + 4 PWM, permitindo formas de potência personalizadas
  • 4 canais de aquecedor/resfriador PWM (ligado/desligado)
Até a versão 0.9.3 você pode usá-lo mesmo com um módulo WROOM. Mais alguns componentes (breadboard, módulo PCA9685 PWM, drivers LDD, display OLED/TFT) e você tem uma solução de rede ultra-barata, porém capaz, com uma interface web.

Aqui está um despejo de tela do controlador que estou executando atualmente em casa:

AquariOS-SD-201007-191140.png


Boa sorte!
Hi, i want this. How tell with you? Buy 8 pucks, one power 56v meanwells, 8 LDDs-H 700ma and now need of esp32 that controller all this.
 

TOP 10 Trending Threads

WHAT DO YOU ALWAYS RUN OUT OF AT THE WORST TIME?

  • Salt mix

    Votes: 10 15.9%
  • Fish or coral food

    Votes: 4 6.3%
  • Test kits or reagents

    Votes: 4 6.3%
  • Filter media or replacement fleece

    Votes: 4 6.3%
  • RO/DI filters or supplies

    Votes: 11 17.5%
  • Fragging and repair supplies, like glue or epoxy

    Votes: 7 11.1%
  • I keep a backup of everything

    Votes: 18 28.6%
  • Other (Post in the comments)

    Votes: 5 7.9%
Back
Top
Home
Post thread…
Market
What's new