View Single Post
  #6   Spotlight this post!  
Unread 23-02-2010, 14:05
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: Analog Out on the Cypress PSoC (enhanced modeO

Quote:
Originally Posted by EricVanWyk View Post
Ooh Ooh! What are you planning on doing with them?

If you find something cool I'll win a bet, so please do tell!
We used an analog output to drive an LED-based "bargraph". The higher the analog output, the higher the bars climb.
We use it to give our driver feedback of the current "kick strength" of our kicking mechanism.
The display is kind of small, but it is fun to watch it go depleted when fired, then climb back up to the driver's chosen power level/strength.

For the OP - we use C++ Enhanced IO class to drive this. It works great.

Here's a picture of the nearly-finished board (unpowered, sadly) - the strength meter is the rectangular white-ish object in the top middle, underneath the left-edge of the large white oval-shaped device (that's a cap-touch based slider used by the driver to set the kick strength).

http://rollingthunder.smugmug.com/20...65_HzTsD-M.jpg

Hope you can win your bet one way or another