View Single Post
  #2   Spotlight this post!  
Unread 22-08-2011, 10:54
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming Blinking LEDs?

Here are some variations to alternate Relays between on and off.
There are further variations that turn everything on at once and everything off.
These loops would go only in Periodic Tasks.vi.
  1. The first alternates between two cases and you can control the times of the blinks independently by passing in the delay time if you want.
  2. The second is another way to do the same thing without a Case statement. It only does one Relay, but you can add as many more as you want.
  3. The third wires two sets of LEDs to a single Relay and alternates between them
Relays only work while the robot is Enabled.
If you want them to blink while disabled, then you'd need a custom circuit that does the blinking for you as long as it gets power.
Attached Thumbnails
Click image for larger version

Name:	AlternateTwoRelays.jpg
Views:	54
Size:	62.5 KB
ID:	10893  Click image for larger version

Name:	AlternateOneRelay.jpg
Views:	41
Size:	25.6 KB
ID:	10894  Click image for larger version

Name:	AlternateTwoOnOneRelay.jpg
Views:	38
Size:	33.9 KB
ID:	10895  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-08-2011 at 13:14.
Reply With Quote