Super newbie please help

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
DazednConfused
 
Posts: 36
Joined: Fri Dec 09, 2022 2:48 pm

Super newbie please help

Post by DazednConfused »

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/

User avatar
adafruit_support_carter
 
Posts: 29158
Joined: Tue Nov 29, 2016 2:45 pm

Re: Super newbie please help

Post by adafruit_support_carter »

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

User avatar
DazednConfused
 
Posts: 36
Joined: Fri Dec 09, 2022 2:48 pm

Re: Super newbie please help

Post by DazednConfused »

I have the m0

User avatar
adafruit_support_carter
 
Posts: 29158
Joined: Tue Nov 29, 2016 2:45 pm

Re: Super newbie please help

Post by adafruit_support_carter »

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.

User avatar
DazednConfused
 
Posts: 36
Joined: Fri Dec 09, 2022 2:48 pm

Re: Super newbie please help

Post by DazednConfused »

I really appreciate it

User avatar
DazednConfused
 
Posts: 36
Joined: Fri Dec 09, 2022 2:48 pm

Re: Super newbie please help

Post by DazednConfused »

Where would I find the code to change the LED settings?

User avatar
adafruit_support_carter
 
Posts: 29158
Joined: Tue Nov 29, 2016 2:45 pm

Re: Super newbie please help

Post by adafruit_support_carter »

What LED(s) are you referring to?

What programming method are you wanting to use?

User avatar
DazednConfused
 
Posts: 36
Joined: Fri Dec 09, 2022 2:48 pm

Re: Super newbie please help

Post by DazednConfused »

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?

User avatar
adafruit_support_carter
 
Posts: 29158
Joined: Tue Nov 29, 2016 2:45 pm

Re: Super newbie please help

Post by adafruit_support_carter »

The original guide appears to be using Arduino.

User avatar
DazednConfused
 
Posts: 36
Joined: Fri Dec 09, 2022 2:48 pm

Re: Super newbie please help

Post by DazednConfused »

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
20221221_231444.jpg (319.97 KiB) Viewed 201 times
20221221_231451.jpg
20221221_231451.jpg (890.46 KiB) Viewed 201 times

User avatar
adafruit_support_carter
 
Posts: 29158
Joined: Tue Nov 29, 2016 2:45 pm

Re: Super newbie please help

Post by adafruit_support_carter »

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.

User avatar
DazednConfused
 
Posts: 36
Joined: Fri Dec 09, 2022 2:48 pm

Re: Super newbie please help

Post by DazednConfused »

They are WS2811 lights https://www.amazon.com/gp/product/B076V ... ite=1&th=1

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)

User avatar
adafruit_support_carter
 
Posts: 29158
Joined: Tue Nov 29, 2016 2:45 pm

Re: Super newbie please help

Post by adafruit_support_carter »

Code listing doesn't look complete.

Code: Select all

strip = light.create_strip(pins.D1, 7)
Where is the light reference coming from?

User avatar
DazednConfused
 
Posts: 36
Joined: Fri Dec 09, 2022 2:48 pm

Re: Super newbie please help

Post by DazednConfused »

I'm honestly not sure. I got the code from a MakeCode website https://learn.adafruit.com/glowing-fasc ... 0-makecode

User avatar
adafruit_support_carter
 
Posts: 29158
Joined: Tue Nov 29, 2016 2:45 pm

Re: Super newbie please help

Post by adafruit_support_carter »

Oh, OK. Got it. That's the javascript source code for the Makecode project linked.
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?
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?

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”