Pages: [1]   Go Down
Author Topic: RC Plane LED Show  (Read 568 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So, I have a large scale RC plane wrapped with over 60 feet of LED tape. Darn thing is so bright, it looks like the sun in the night sky, haha. I've wired the LEDs in 6 gorups to a few logic level MOSFETS and I'm controlling them with an on board ardweeny. To change the light pattern, I have a single input from my receiver. Using digitalRead, I can use the change in duty cycle of that channel when I flip a switch on my remote and turn on the LEDs or change their pattern. But I have bigger plans for a system with this much potential. What I would like to do is program several sequences (or loops) and use the switch as a sort of "GO" button to continue to the next sequence. This way, I can program the LEDs to a song and use the switch to keep the music and the lights in sync. If anybody has an idea on how to go about doing this, it would be great if you could share it!  Thanks in advance!
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Use a variable and keep track of which state you are in.
Then use switch:case to select between state and the sequence you are running.
Have each case monitor the Go button, and break out of the sequence so the next one can start.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Also, don't post the same thing in multiple places please.

Thanks
Moderator
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My last post was annoyingly locked with no explanation so I reposted. Thank you for your quick reply. I'll give that a try.
Logged

Dubuque, Iowa, USA
Offline Offline
Faraday Member
**
Karma: 46
Posts: 2501
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's help on interfacing with an RC receiver.

http://rcarduino.blogspot.com/2012/01/how-to-read-rc-receiver-with.html
http://rcarduino.blogspot.com/2012/01/how-to-read-rc-receiver-with_25.html
http://rcarduino.blogspot.com/2012/03/need-more-interrupts-to-read-more.html
http://rcarduino.blogspot.com/2012/04/how-to-read-multiple-rc-channels-draft.html
Logged

Pages: [1]   Go Up
Jump to: