Message:
HI guys I am working on a project. My area is about the size of a eyewere case. I am needing 3 led lights to go flashing, but in a sequence. - blue flashes first, then transitions to orange flashes and it goes solid on a red pulse or maybe solid. But I need that sequence to be able to be programed so it can be 50 sec 20 sec random or so... and reset button to start again. Arduino is to big to fit in my opinion? and that is why I stumbled to you guys after contacting Evandesigns.com who were kind to advise me of your page, any help is apreciated ! I am motivated to purchase parts. Enrique
Need some guidance for leds sequence programming !
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Adamnuni
- Posts: 5
- Joined: Tue May 24, 2022 3:46 pm
- dastels
- Posts: 15831
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Need some guidance for leds sequence programming !
I have no idea what an "eyewere case" is. Link?
Do you need it to be battery powered?
Three LEDs. I'm not clear about what you mean based on your description. Do you have separate blue LED, and orange LED, and a red LED? Or three RGB LEDs/NeoPixels that change color?
Something like a SAMD21 QtPy https://www.adafruit.com/product/4600 would do the job, especially if you will be using C++/Arduino. If you want to use CircuitPython you might be better going with a QtPy RP2040 https://www.adafruit.com/product/4900 due to it's larger memories. If you wanted battery power, you can add a BFF https://www.adafruit.com/product/5397. The QtPy line is very small but packs in a lot of power and input/output capability.
Dave
Do you need it to be battery powered?
Three LEDs. I'm not clear about what you mean based on your description. Do you have separate blue LED, and orange LED, and a red LED? Or three RGB LEDs/NeoPixels that change color?
Something like a SAMD21 QtPy https://www.adafruit.com/product/4600 would do the job, especially if you will be using C++/Arduino. If you want to use CircuitPython you might be better going with a QtPy RP2040 https://www.adafruit.com/product/4900 due to it's larger memories. If you wanted battery power, you can add a BFF https://www.adafruit.com/product/5397. The QtPy line is very small but packs in a lot of power and input/output capability.
Dave
- dastels
- Posts: 15831
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Need some guidance for leds sequence programming !
For software these guides will help.. depending on which language you end up using:
Bill Earl's series on multi-tasking with C++/Arduino code:
https://learn.adafruit.com/multi-taskin ... ino-part-1
https://learn.adafruit.com/multi-taskin ... ino-part-2
https://learn.adafruit.com/multi-taskin ... ino-part-3
Multitasking in CircuitPython:
https://learn.adafruit.com/multi-taskin ... cuitpython
Dave
Bill Earl's series on multi-tasking with C++/Arduino code:
https://learn.adafruit.com/multi-taskin ... ino-part-1
https://learn.adafruit.com/multi-taskin ... ino-part-2
https://learn.adafruit.com/multi-taskin ... ino-part-3
Multitasking in CircuitPython:
https://learn.adafruit.com/multi-taskin ... cuitpython
Dave
- Adamnuni
- Posts: 5
- Joined: Tue May 24, 2022 3:46 pm
Re: Need some guidance for leds sequence programming !
Thanks so much for your advise. Ok some more data for your advise.
1- The size of the project should be equal to fit inside of an eggplant.
2- therefore it should be hable to handle a battery that fits inside plus the hardware. I am new to this and dont know if rechargable is a way to go.
3-The light source inside should be either 3 leds or bulbs or a color changing bulb. Again here I dont have experienceon candle power that auits the aize, that's why I am here also. Color changing sounds great.
That light source wether leds bulbs or xolor changer should be able to reproduce the same pattern as a stop light.....green ....warnning and stop
The difference is that every time it goes back again it goes in to random time sequences for example: 20 sec at green 20 sec at yellow and solid red.NEXT
35 sec at green 35 sec at yellow and red.
And that is what Im looking to fit a programable sequence that I can turn on an it goes on , reset to start again but randome time lenght. Power on and off
Any help is welcome while I get in to this parts and wordings.
Enrique.
1- The size of the project should be equal to fit inside of an eggplant.
2- therefore it should be hable to handle a battery that fits inside plus the hardware. I am new to this and dont know if rechargable is a way to go.
3-The light source inside should be either 3 leds or bulbs or a color changing bulb. Again here I dont have experienceon candle power that auits the aize, that's why I am here also. Color changing sounds great.
That light source wether leds bulbs or xolor changer should be able to reproduce the same pattern as a stop light.....green ....warnning and stop
The difference is that every time it goes back again it goes in to random time sequences for example: 20 sec at green 20 sec at yellow and solid red.NEXT
35 sec at green 35 sec at yellow and red.
And that is what Im looking to fit a programable sequence that I can turn on an it goes on , reset to start again but randome time lenght. Power on and off
Any help is welcome while I get in to this parts and wordings.
Enrique.
- dastels
- Posts: 15831
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Need some guidance for leds sequence programming !
A QtPy, a BFF for a LiPo battery, a NeoPixel, a switch for power, and a button for reset should do it in a very small amount of space. Then add as big a LiPo as will fit. The bigger the LiPo, the more time between chargings. If a single NeoPixel (https://www.adafruit.com/product/1260) isn't adequate there are alternatives (like the jewel that is a cluster of 7 NeoPixels https://www.adafruit.com/product/2226). As I mentioned, which QtPy is best will depend on the language you will use for the code.
Dave
Dave
- dastels
- Posts: 15831
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Need some guidance for leds sequence programming !
The code will probably be simpler than I was imagining, so you can ignore the multitasking guides.
Dave
Dave
- Adamnuni
- Posts: 5
- Joined: Tue May 24, 2022 3:46 pm
Re: Need some guidance for leds sequence programming !
Thanks !
I will be reading this items and parts and take some time and notes , then come up with any other questions.
It really opened a new perspective and on to new ideas with those smaller parts.
Enrique
I will be reading this items and parts and take some time and notes , then come up with any other questions.
It really opened a new perspective and on to new ideas with those smaller parts.
Enrique
- Adamnuni
- Posts: 5
- Joined: Tue May 24, 2022 3:46 pm
Re: Need some guidance for leds sequence programming !
Hello gues is a new hurdle im having. How to program my QTPY?
Is there a user friendly program like ive seen on videos for Arduinos?
If im not lost here. The only way to go with adamfruit is code to load aplicatiobs for my pixels ? Im not trained in codding...
I could use a program
Any help welcome
Is there a user friendly program like ive seen on videos for Arduinos?
If im not lost here. The only way to go with adamfruit is code to load aplicatiobs for my pixels ? Im not trained in codding...
I could use a program
Any help welcome
- dastels
- Posts: 15831
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Need some guidance for leds sequence programming !
All the QtPys can be programmed in C++, using Arduino or other C++ development system.
The RP2040, SAMD21, ESP32-S2, and ESP32-C3 can be programmed in CircuitPython.
If you use NeoPixels, there are plenty of project guides that use NeoPixels that you can look at for ideas/instruction: https://learn.adafruit.com/search?q=neopixel.
Dave
The RP2040, SAMD21, ESP32-S2, and ESP32-C3 can be programmed in CircuitPython.
If you use NeoPixels, there are plenty of project guides that use NeoPixels that you can look at for ideas/instruction: https://learn.adafruit.com/search?q=neopixel.
Dave
- Adamnuni
- Posts: 5
- Joined: Tue May 24, 2022 3:46 pm
Re: Need some guidance for leds sequence programming !
Thanks. Im goin over this info. Im motivated more if I can handle this
part of the tasking.
Thanks
part of the tasking.
Thanks
Please be positive and constructive with your questions and comments.