SERVO2040 (New User)

January 12, 2024, 04:50

chimera._.

Hello, I’ve never used a raspberry pi before and I have a SERVO2040 and I’m not sure if it’s working right. What happens is the onboard leds are rgb but only flash red. Also I’m using Mu Editor and circuit python. I have no idea what I’m doing but I’m just following the circuit python welcome guide. Also the leds turn like whitish when I press serial and any key in Mu Editor.

oops.se

If you referred to anything (SERVO2040, "just following the...") please provide URL.

chimera._.

<@796000224690307072> sorry. Here are some links I was looking at:

oops.se

That code is for Raspberry Pi Pico and SERVO2040 is the same MCU as the Raspberry Pi Pico

oops.se

The code you use is changing the color every 5 seconds

chimera._.

Sorry for the confusion and bad explination. I have an 18 channel servo controller called "Servo 2040". All I know is that it has a RP2040. There's some docs and examples that were provided but I didn't understand them. I then found this link ( https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries ) and now I was able to get the onboard leds to run. I've never messed with a raspberry pi (only an arduino) so I don't know how everything is ran.

oops.se

And the only reason for the blinking I can think of is that the power supply or the USB cable is bad or has bad connection

oops.se

Ah you got it working?

chimera._.

yes

oops.se

And the issue was?

oops.se

Nice

chimera._.

So first I guess I was using the wrong code... I don't know what's the difference between micropython and circuit python so I was using micropython even tho I selected circuitpython (node) in Mu Editor (https://learn.adafruit.com/welcome-to-circuitpython/installing-mu-editor ). I then saw the GitHub Repo with circuitpython examples (https://github.com/pimoroni/pico-circuitpython-examples/tree/main/servo2040 ). I copied and pasted the code in MU Editor and nothing happened. So I went looking to make sure I flashed the controller right. So i ended up reading this guide ( https://learn.adafruit.com/adafruit-feather-m0-express-designed-for-circuit-python-circuitpython/uf2-bootloader-details ). Then I found this other guide on using on board leds but for another controller (https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries ). So the main issue was I didn't put the NEOPIXEL.mpy file in my library and once I pasted the code in Mu Editor in the Circuitpython REPL (at the bottom) I just needed to click in there and press CRTL+D to start the code.

chimera._.


oops.se

Oh you did the investigation work...

chimera._.

Yes, I wasn’t able to find any explanation videos or guide for this controller so I had no idea where to start.

oops.se

You can use any "Pico" guides and adopt the hardware to it from the Pimorini SERVO2040 page. Check out https://discord.com/channels/818384379197784084/1194546099575341117

chimera._.

Ooooh ok, thank you.