-
1Mounting and testing
First of all I would recommend uploading the firmware in the ESP32.
There are some important pre-requesites that the firmware must know before being flashed:1.- Update lib/Config/Config.h.dist with your SSID/PASS and rename the file to Config.h
2.- Update lib/Animate/Animate.cpp :
const uint16_t PixelCount = 72; // Length of LED stripe
const uint8_t PixelPin = 19; // GPIO19 Data line of Addressable LEDs
UPDATE: After joining udpx family the updated version in master branch can be configured using Bluetooth with the udpx android application. It’s very useful if you are on the go and need to bring your addressable LEDs to a show.Once it's seen in serial that it connects and it's listening for UDP requests in the port you can easily test it from command line using netcat :
echo ";52" |nc -w1 -u ESP_IP_ADDRESS 49161
This part can be also tested with the Android App, just check the ESP Tab on the send text section, try sending 550 to get a red half a second animation.
If the ESP32 receives the message you will see it on Serial. If the Led stripe is connected like described on step 2 you should also see an animation -> <-
-
2Soldier 3 cables
Then soldiering the ground, 5V and making sure the data cable is connected to GPIO 19, plus additing an optional 220v to 5VDC converter will do it. Usually the data cable is on the middle, so soldiering 5V positive, ground and data to a PIN in the ESP32 is the only electronic schema that you will need to make it work.
Note: For anything longer than half a meter Led stripe or more than 30 Leds, you may get a brownout error in Serial, which is normal since the USB provides only 500 mA. So at this point get a 220AC-> 5VDC converter and feed the Addressable LEDs without using the USB.
That's it your new lighting fish is ready to be used and launch animations receiving short UDP messages! -
3Install Orca
Optional step: https://github.com/hundredrabbits/Orca
Very easy to install you just need nodejs /npm in your laptop and it takes not more than a few minutes to get it running. That way you can easily make your first test, just add a :
D # delay #
;55240 That will send a crossed animation of velocity 5 (500ms) and Hue color 240 (blue) to your LED stripe
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.