We recently presented you with a convenient solution for controlling the WS2812 with McLighting, which can be perfectly integrated into existing smart home systems. However, this does not allow Standallone to be operated in AP mode.
That is why I would like to introduce you today to the control of our AZ fountain.
The SSID and the password from the sketch below has not been changed, so you can visit us in Natternberg (Deggendorf) and test the controller yourself from Monday.
For this project we need:
- Sufficiently dimensioned power supply (60mAh per LED)
- D1 mini
- 300 - 500 Ohm Resistance
- ElKo 1000-F
- various cables and accessories
- Pin D1 of the D1mini to the data line of the WS2812
- When supplying the pixels, pay attention to the specifications: resistance to data line, 1000-F ElKo; as described here. If you are using a longer led strip, you must connect it to the Two Ends Power supplying
Since the perimeter of the concrete ring of our well is 2m, a 5m strip of leds is unfortunately not sufficient. For this problem there are, among other things, waterproof plugs, which we unfortunately do not have available at the moment. We have tried to pour in the ends like Here Shown. When pouring in, make sure that the resin also runs between the veins, otherwise water creeps into the box along the cable.
Here in the picture the still uncast, extended ends of the LED strip
The code is available today via download, Here
Copy the folder from the download to your Arduino project directory (C:-Users-Moritz-Documents-Arduino-AZ-Well). When then opening the sketch with the ArduinoIDE, index.html.cpp and main.js.cpp should also be displayed in the IDE:
Then connect to the new SSID, the web interface looks like this(192.168.4.1):
Until the next post :)