Arduino Nano sketches for LED animation help

Alright, that's easier. So you start with all the lights on. You press the button and they turn off in sequence. They stay off... then you press the button and they all come on and stay on until the button is pressed again. I'll think about it and put something together.
That is perfect. I'm about to try putting pins on this beetle board!
 
Here is the tested code for the Nano. Starts with all the lights on. When you press the button they turn off in sequence. Another press of the button and all the lights come on. After that another press the LEDs start turning off in sequence. This repeats with button pressing in a continuous loop. I need to read up on the beetle board to see how to port this code over to that.
 

Attachments

  • LimeyBuilds_Alternate_Sketch.zip
    188.5 KB · Views: 82
Here is the tested code for the Nano. Starts with all the lights on. When you press the button they turn off in sequence. Another press of the button and all the lights come on. After that another press the LEDs start turning off in sequence. This repeats with button pressing in a continuous loop. I need to read up on the beetle board to see how to port this code over to that.
Man you are a wizard. If you ever want a 3D print model in my collection let me know!
 
I looked at the datasheet on the beetle. I've fixed the code so it will work. I changed some pin numbers to make it work with the beetle. I do not have a beetle, so I can't test this new code. Please note, the beetle needs to be run on +4.5 to+5V, it won't run on anything else. +6V will damage the processor. Let me know how it works on the beetle, I'm really curious. I might want to try the beetle for a few projects myself!!

DEVICE BEETLE PIN
LED1 A0
LED2 D9
LED3 D10
LED4 D11
Switch A1
 

Attachments

  • LimeyBuilds_Beetle_Sketch.zip
    827 bytes · Views: 59
I looked at the datasheet on the beetle. I've fixed the code so it will work. I changed some pin numbers to make it work with the beetle. I do not have a beetle, so I can't test this new code. Please note, the beetle needs to be run on +4.5 to+5V, it won't run on anything else. +6V will damage the processor. Let me know how it works on the beetle, I'm really curious. I might want to try the beetle for a few projects myself!!

DEVICE BEETLE PIN
LED1 A0
LED2 D9
LED3 D10
LED4 D11
Switch A1
I will try it tomorrow. I am running it on 3xAAA batteries, so perfect! Same with the nano previously. Thanks and i'll let you know
 
I looked at the datasheet on the beetle. I've fixed the code so it will work. I changed some pin numbers to make it work with the beetle. I do not have a beetle, so I can't test this new code. Please note, the beetle needs to be run on +4.5 to+5V, it won't run on anything else. +6V will damage the processor. Let me know how it works on the beetle, I'm really curious. I might want to try the beetle for a few projects myself!!

DEVICE BEETLE PIN
LED1 A0
LED2 D9
LED3 D10
LED4 D11
Switch A1
I couldn't wait. Worked first time! You're a genius.



DFR0282 Beetle Pin Layout.jpg
 
I never knew they made a microcontroller that small. That's cool. If you go down the rabbit hole on this stuff, you will find you can recreate an arduino on your own pcb design and get rid of the separate board altogether.

What prop are you making by the way?
 
I never knew they made a microcontroller that small. That's cool. If you go down the rabbit hole on this stuff, you will find you can recreate an arduino on your own pcb design and get rid of the separate board altogether.

What prop are you making by the way?
The SNW medical Hypo:

dsc-propvid-02.jpg

?hash=6444da6746a77e28037eda130591dde3.jpg
IMG_20220618_191901.jpg
 

Attachments

  • WIP1.jpg
    WIP1.jpg
    156.6 KB · Views: 41

Your message may be considered spam for the following reasons:

If you wish to reply despite these issues, check the box below before replying.
Be aware that malicious compliance may result in more severe penalties.
Back
Top