
danUK
United Kingdom
Asked
— Edited
Hi guys,
Is it possible to set the voltage of the ADC ports. I'm trying to get them to act as switches to control an LED array.
I've already used up the 20 Digital I/O's.
I want to set them to values 0 or 255 to switch between 0 & 5 volts'
Any thoughts would be appreciated.
Thanks
Dan
Unfortunately ADC is input only; check out the Port Types section of our Hardware Turorials for more information at http://www.ez-robot.com/Tutorials/Hardware.aspx
In order to have more than 20 ports you'd need to get another EZ-B.
Can't wait to see a robot that has so many ports
Cade
Many thanks for the reply.
I thought that would probably be the case but thought i'd ask as i'm new to the device.
I'm controlling LEDs individually (1 LED per Digital Port). Is there any way to control more than 1 LED per digital port?
Thanks again
danUK
You could link 2 red LEDs in parallel and attach them to a single port. That would work ok.
This is a great site that explains LED circuits.
http://www.talkingelectronics.com/projects/30%20LED%20Projects/30%20LED%20Projects.html
Dan
I'll give it a try.
Another method you could use is a Shift Register like the 74HC595 you'd just need 3 digital lines to control 8 LEDs. Anyway, good luck with your project!
Many thanks for the info. I'll check it out.