BasicMicroUK - Forums

www.basicmicro.co.uk
It is currently Sun Apr 22, 2018 2:57 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ARC32 - connecting LEDs etc to AUX2 - need advice
PostPosted: Wed Feb 13, 2013 6:11 pm 
Offline
Guru

Joined: Fri Feb 10, 2012 9:34 pm
Posts: 73
Hi,

I would like to add LEDs to the ARC32 to indicate states etc - I am looking at P40-P43 which are on AUX2.

How would I drive a bi-color LED out of these ? Any ideas ? The reason is I would like to indicate Green when the voltage is good and Red when it is low.

Another thing - I think I can connect switches to these also ?

Any advice ?
Thanks


Top
 Profile  
 
 Post subject: Re: ARC32 - connecting LEDs etc to AUX2 - need advice
PostPosted: Wed Feb 13, 2013 7:09 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 7:00 pm
Posts: 1316
Location: Temecula, CA
The AUX2 header was specifically designed for easy use with buttons. They are pulled up and have a ground directly adjacent to each of them.

On Driving a bi-color led you need two I/O pins to do that per LED. One I/O goes to each side of the bi-color. Then you set one side high and the other low to activate that color. Both off or both on will turn the led off. Also a trick is to alternate them back and forth fast which will give you the illusion of a third color.

So you can run 2 bi-color leds from the aux2 header.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: ARC32 - connecting LEDs etc to AUX2 - need advice
PostPosted: Wed Feb 13, 2013 9:31 pm 
Offline
Guru

Joined: Fri Feb 10, 2012 9:34 pm
Posts: 73
Thanks Nathan, I will wire these the way you have suggested.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO