I have a simple bedside LED lamp with a 12V 1A supply as standard. I wanted to convert it into an IoT device with an ESP8266 module and DHT22 temp and humidity module as well as the ability to switch on/off the lamp.
I know I probably want a relay attached to one of the GPIO pins to control the lamps on/off state but my issue is even more basic.
Powering the ESP8266 from the 12V 1A DC supply! How do I do that? Is it even possible? Surely it must be. I don't mind a sacrificing lamp brightness for the increased functionality!
Unfortunately I don't even knowthe basic starting point of what to search for! I THINK, maybe, a "voltage divider" is what I want? But everything I read says "voltage divider" circuits are a terrible idea and you need X and before you know it I'm looking at schematics that make a modern PC motherboard look basic.
Also from my fading school knowledge of Ohms law if I reduce voltage (V) from 12 to 3.3 then surely I'm affecting the amperage.
Surely it can't be hard to 'borrow power' from the 12V supply in the way I want? Does anyone have at least a starting point to help me out?
Apologies for what must be a frustratingly ignorant question! I hope you can help. Thank you.
I know I probably want a relay attached to one of the GPIO pins to control the lamps on/off state but my issue is even more basic.
Powering the ESP8266 from the 12V 1A DC supply! How do I do that? Is it even possible? Surely it must be. I don't mind a sacrificing lamp brightness for the increased functionality!
Unfortunately I don't even knowthe basic starting point of what to search for! I THINK, maybe, a "voltage divider" is what I want? But everything I read says "voltage divider" circuits are a terrible idea and you need X and before you know it I'm looking at schematics that make a modern PC motherboard look basic.
Also from my fading school knowledge of Ohms law if I reduce voltage (V) from 12 to 3.3 then surely I'm affecting the amperage.
Surely it can't be hard to 'borrow power' from the 12V supply in the way I want? Does anyone have at least a starting point to help me out?
Apologies for what must be a frustratingly ignorant question! I hope you can help. Thank you.