Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.34 KB

README.md

File metadata and controls

26 lines (22 loc) · 1.34 KB

web-app-controlled-LED-strip

PWM LED strips controlled by a nodeMCU that gets its data from a web app that is hosted on a raspberry pi.

Communication works over wifi.

Requirements:

  • Raspberry Pi (pi zero works fine)
  • NodeMCU or other ESP8266 board
  • 3 MOSFET transistors
  • 12V to 5V converter
  • 12V powersupply
  • LED strip (non addressable, just +12V and R, G, B connectors)
  • cables and some blank circuit board to solder everything onto

How to use:

For desktop use: go to "IP OF YOUR RASPBERRY":80

For mobile use: go to "IP OF YOUR RASPBERRY":80/mobile

How it works:

The flask based web app handles user input and stores the values for each volor in a list. The nodeMUC gets these values as a string via a http get request. Then the passed string is split uo into the three original values and the nodeMCU sets the PWM values accordingly. The transistors are needed to controll the higher powerded LEDs

In my case a 12V powersupply powers the nodeMCU and the LEDS. If you power the nodeMCU via a standart USB charger you dont need a 12V to 5V converter

Sources:

Got the http part for the NodeMCU from this Website