Open errorflash opened 2 months ago
Hello,
To clarify, you use a Raspberry Pi 5 to run the Node-RED server, and a Pico W for the uPython scripts.
All scripts work correctly (and the Wifi connection is stable) except for the Neopixel Sliders experiment. The problem with that experiment is that Wifi does not connect.
Do I understand correctly?
At the end of your post, you wrote, "i have download everything from your github but nothing works" which confused me (earlier in your post you wrote "Other scripts works fine").
Could you please clarify?
Hello,
Sorry for my Bad english, now from the beginning.
I work with the Elektor Book Node Red and RPi Pico W. I have Make every step in the Book and it Works perfectly. I found Some small differents from the Book to the newest Version of Node-Red, but this is Not my Main Issue.
In the all Skripts with wifi Connection you Wrote After " configure your wifi credentials - SSID, PAssword etc":
wlan = network.WLAN(network.STA_IF) wlan.active(True) ... ... Etc.
And these scripts works perfect with this outline. only in the LED-Slider i miss this rows in the code, at the LED-Slider i must insert the code rows behind SSID and Password and then the Rpi connect to wifi.
then the biggest issue is the neopixel slider. i have compare your code from github and in the book chapter 2.4. both codes a little bit diffrent. But the biggest diffrent in the code from the Neopixel Slider to all other codes in the book is the WIFI and MQTT setup. behind SSID an PASSWORD comes directly MQTT Parameters and directly MQTT Callback function.
MQTT connect and subsribe is behind the neopixel function and the "Wifi connection" comes later too in the main function.
1 to 1 with your code from the Book or from your github is the code maybe the problem. My RPI Pico W don't connect with my wifi and my MQTT Broker.
All other codes in the Book or in your Github works fine! My Hardware is a Raspberry Pi 5 with the newest RPi OS, Thonny and Node-Red. The Pico is directly connect at the RPI5. The Broker is installed and runs at the Rpi5.
i hope you understand my issue. best regards
Rene
Something is wrong with the Python or NodeRed scriptfor the Neopixels slider. In the earlier lesson with the LED Slider some Wifi code was missing. With the Neopixel Sliders often the script don't connect with wifi and mqtt broker. Other scripts works fine. In ths script some Code for wifi and mqtt is not in the same postion as the other scripts... I use the book from elektor. Everything runs on a RaspberryPi 5 4GB. Nodered Version is 4.0.2, thonny is 4.1.4
i have download everything from your github but nothing works (Python script & Node-red flow), i don't know why. No Led is on and nothings happend with the slider.