I have tried following the Adafruit Gemma guides. I've downloaded everything I've supposed to and it still won't program right? It cycles through the rainbow light but nothing else. I have no clue where I'm going wrong and I just need some kind of assistance.
I'm trying to make this dress
https://www.instructables.com/Color-Cha ... ic-Fabric/
Super newbie please help
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Super newbie please help
The Gemma shown in that linked guide is the older version:
https://www.adafruit.com/product/1222
Is that the same Gemma you are using? Or do you have one of the newer Gemma M0s?
https://www.adafruit.com/product/3501
https://www.adafruit.com/product/1222
Is that the same Gemma you are using? Or do you have one of the newer Gemma M0s?
https://www.adafruit.com/product/3501
- DazednConfused
- Posts: 36
- Joined: Fri Dec 09, 2022 2:48 pm
Re: Super newbie please help
I have the m0
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Super newbie please help
OK. That guide may not work as shown, since it's for a different Gemma version.
Start with this guide:
https://learn.adafruit.com/adafruit-gemma-m0/overview
You can program the Gemma M0 in various ways. It's up to you which to use. Arduino was most likely used for that fiber optic skirt project.
Start with this guide:
https://learn.adafruit.com/adafruit-gemma-m0/overview
You can program the Gemma M0 in various ways. It's up to you which to use. Arduino was most likely used for that fiber optic skirt project.
- DazednConfused
- Posts: 36
- Joined: Fri Dec 09, 2022 2:48 pm
Re: Super newbie please help
I really appreciate it
- DazednConfused
- Posts: 36
- Joined: Fri Dec 09, 2022 2:48 pm
Re: Super newbie please help
Where would I find the code to change the LED settings?
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Super newbie please help
What LED(s) are you referring to?
What programming method are you wanting to use?
What programming method are you wanting to use?
- DazednConfused
- Posts: 36
- Joined: Fri Dec 09, 2022 2:48 pm
Re: Super newbie please help
For the skirt, I have WS2811 LED lights. It wants me to solder those wires to the Gemma to be able to control the LED lights. I followed the m0 guide and I'm using CircuitPython.
EDIT: Do I use MakeCode?
EDIT: Do I use MakeCode?
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Super newbie please help
The original guide appears to be using Arduino.
- DazednConfused
- Posts: 36
- Joined: Fri Dec 09, 2022 2:48 pm
Re: Super newbie please help
I used Mu for circuitpython and it seemed to be working so I soldered the LED light strip to the Gemma but it doesnt work. Any suggestions?
- Attachments
-
- 20221221_231444.jpg (319.97 KiB) Viewed 208 times
-
- 20221221_231451.jpg (890.46 KiB) Viewed 208 times
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Super newbie please help
What RGB LED strips are you using? Can you link to product page.
What is the CircuitPython code being run on the Gemma M0? Can you post complete code listing.
What is the CircuitPython code being run on the Gemma M0? Can you post complete code listing.
- DazednConfused
- Posts: 36
- Joined: Fri Dec 09, 2022 2:48 pm
Re: Super newbie please help
They are WS2811 lights https://www.amazon.com/gp/product/B076V ... ite=1&th=1
Code is:
Code is:
Code: Select all
toggle = 0
strip = light.create_strip(pins.D1, 7)
strip.set_brightness(80)
pixel.set_color(0x000000)
gradient = 0
hue = gradient
def on_forever():
global gradient, hue
gradient += 50
if gradient >= 255:
gradient = 0
strip.set_all(0x000000)
pause(5000)
strip.set_all(light.hsv(gradient, 255, 255))
pause(5000)
hue = gradient
forever(on_forever)
def on_forever2():
global hue, toggle
strip.set_pixel_color(0, light.hsv(hue, 255, 255))
strip.move(LightMove.ROTATE, 1)
pause(100)
hue += toggle
if hue >= 75 + gradient:
toggle = -5
elif hue <= gradient:
toggle = 5
forever(on_forever2)
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Super newbie please help
Code listing doesn't look complete.
Where is the light reference coming from?
Code: Select all
strip = light.create_strip(pins.D1, 7)
- DazednConfused
- Posts: 36
- Joined: Fri Dec 09, 2022 2:48 pm
Re: Super newbie please help
I'm honestly not sure. I got the code from a MakeCode website https://learn.adafruit.com/glowing-fasc ... 0-makecode
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Super newbie please help
Oh, OK. Got it. That's the javascript source code for the Makecode project linked.
So it was working with CircuitPython? Which would mean the hardware is generally OK. The issue now is getting the same hardware to work with MakeCode?I used Mu for circuitpython and it seemed to be working so I soldered the LED light strip to the Gemma but it doesnt work. Any suggestions?
Please be positive and constructive with your questions and comments.