MrSoir
Published © MIT

Full Stack RESTful MERN LED Strips

Full stack RESTful MERN environment to control an Arduino -> backend: Node/Express + frontend: React + 2 Arduino-powered LED strips.

IntermediateFull instructions provided1,081
Full Stack RESTful MERN LED Strips

Things used in this project

Hardware components

Wemos D1 Mini
Espressif Wemos D1 Mini
Wemos D1 Mini controls 2 LED strips, reads data from 2 motion sensors and communicates with the server
×1
Raspberry Pi Zero Wireless
Raspberry Pi Zero Wireless
Node.js/Express.js/MongoDB server runs on a Raspberry Pi Zero Wireless
×1
Adafruit NeoPixel Digital RGB LED Strip 144 LED, 1m White
Adafruit NeoPixel Digital RGB LED Strip 144 LED, 1m White
I'm using 2 WS2812b LED strips - 1meter - 60 LEDs
×1
SparkFun Logic Level Converter - Bi-Directional
SparkFun Logic Level Converter - Bi-Directional
Wemos D1 mini operates on 3.3 Volts - LED strips operate on 5 Volts -> you need a logic level converter to convert the data signal from the Arduino to the LED strip from 3.3 Volts to 5 Volts
×1
5 Volts relay
×1
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
×2
Jumper wires (generic)
Jumper wires (generic)
×1
Capacitor 1000 µF
Capacitor 1000 µF
Capacitor with at least 1000uF and at least 5 Volts (I'm using a 2000uF with 10 Volts)
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×3
USB Connector, Micro USB Type B
USB Connector, Micro USB Type B
×2

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Schematics

Schema

The total setup of my Arduino that controls the 2 LED strips (the led strips are represented by the 2 LEDs

Code

Arduino Code: LED-strips

Arduino code that controls the LED-strips

custom Arduino libraries

I exported most of the code that runs on the Arduino to external Arduino libraries to keep the code nice and clean

Complete code of the node.js back end (server) & front end (React.js)

Complete code of the node.js back end (server) & front end (React.js)

Credits

MrSoir

MrSoir

0 projects • 2 followers

Comments