Help with 50W LED Lamp Project

jpanhalt

Joined Jan 18, 2008
11,087
Yes i want to use both. So i either wanna switch on/off the LEDs (and also power the esp) using the switch. Furthermore it should be possible to control the spotlight with the app.
Why do you want to use "both?" What do you mean by both? Can you draw a truth table showing the switches you want to use, the state of each (i.e., on or off) , the corresponding state of each of the LED's, and the state of your ESP/BT modules?

What spotlight?

If all you want to do is turn on the LED's when ESP/BT are off, then just wire a switch(s) as an OR, e.g., with diode logic (aka diode resistor logic)(https://en.wikipedia.org/wiki/Diode_logic ). Your origin post looked like it was headed in that direction, then things got confusing.
 

Thread Starter

pelzigan

Joined Apr 2, 2019
10
Ok the truth table is probably a good idea.

truthtable.png

Furthermore here is my updated scheme, i switched to an esp32 so i dont need an extra bluetooth module.

schemeQL.png
 

Ya’akov

Joined Jan 27, 2019
10,240
Yes i want to use both. So i either wanna switch on/off the LEDs (and also power the esp) using the switch. Furthermore it should be possible to control the spotlight with the app.
Maybe I wasn’t clear. I am suggesting that local input to the MCU would allow operation parallel to the app.
Switching the power at the batteries would be separate. Turn off the power, nothing works. Turn it on, use the app or use a momentary switch to tell the MCU to turn on the lights.

Are you trying to avoid using the MCU? If so, why?
 

jpanhalt

Joined Jan 18, 2008
11,087
OK, I see it. Switch position 1 = FETs only control 3&4 (1&2 are always off ). In position 2, FETs control all LED's (in pairs), and position 3 all are off.
 
Top