Skip to content

bernie6401/side_project_lightbulb_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

side_project_lightbulb_control

Project Purpose

  • In order to deal with the inconvenient experiment on lightbulb of bathroom, I decided to write some code and implent the circuit. Specifically speaking about the inconvenient, I wish exhaust fan in bathroom can always work without switch control it. But unfortunately, it has connected with lightbulb circuit at the beginning, and the circuit hided in the wall that I can't change the circuit directly.
  • The original circuit diagram is as the bottom left and the revised circuit diagram v1 is as the bottom right origin_circuitrev_v1_circuit

Arduino Circuit Diagram

  • Version 1 arduino_circuit_diagram

    • As the circuit above, when IR remote sensor received any infrared, it'll illuminate LED just like a demo that it connects with an actual lightbulb.
    • Cons:
      1. It must carry a mobile charger. And like I said, the circuit of the lightbulb hides in the wall, so the volume is too big to hide on the roof.
      2. The portable charger must replace regularly and that is much more inconvenient.
      3. Using IR remote sensor to control is not intuitive. When you'd like to turn on a lightbulb, you must find a remote controller first? That is not good obviously.
  • Version 2 rev_v2_circuit

    • How does it work?
      • I used two WIFI models (Node MCU CP2102) to control the lightbulb and switch that we pressed.
      • If I turn on the switch, the CP2102 WIFI model will send a signal to WIFI AP and WIFI AP will resend it to another CP2102 hidden in the roof to illuminate the lightbulb.
    • Pros
      1. It solved the portable charger that will make the volume too big to hide. I just use a useful plug as a transformer to output 5V DC and supply to the WIFI model.
      2. We don't need to replace the charger because I just use an endless power(though I know it's not a real endless) connect to AC 110 V directly.
      3. I used a simple switch to demo our habit instead of using an IR remote. I make it more convenient.

Reference


Recently Page for Ver.2

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages