top of page
Writer's pictureBalajiV

Street Light Controller

In this project, I made a Street light controller using STM32F446RE



Components:

  1. STM32F446RE as controller (link)

  2. Light Dependent Resistor (link)

  3. Red LED (link)

  4. 100 ohms Resistor (link)

  5. Breadboard(link)

  6. Jumper wires(link)


Working:

  1. Connect the LED's Positive terminal to D7 and negative terminal to 100ohms resistor and ground.

  2. Connect the LDR to A0 and +5v port followed by 100ohms resistor and ground.

  3. Using CubeMX generate the code in keil and flash it to the Board.

  4. The Code Generated is here

  5. Once if there is light on sensor, the LED turns Off

  6. If there is dark the light turn ON.


Thanks...

19 views0 comments

Recent Posts

See All

Comments


bottom of page