View Single Post
  #9   Spotlight this post!  
Unread 05-03-2009, 12:59
Otaku's Avatar
Otaku Otaku is offline
Where'd my wrench go?
AKA: Michael Baker
FRC #0675 (Tech High Phantom Robotics)
Team Role: College Student
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Underneath my car
Posts: 509
Otaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond repute
Send a message via AIM to Otaku Send a message via MSN to Otaku
Re: non-'FRC legal' control systems?

Quote:
Originally Posted by billbo911 View Post
Simply put: "Arduino"

$35 and you are good to go. All you need to do then is learn a little coding for the FREE Development environment. That's right, FREE!!

The code to convert analog to PWM is EASY!!
10 bit A/D gives values from 0 -1024.

Set the dig out high, wait 1 millisecond + wait a number of microseconds equal to the digital value read from the pot, set the dig out low. Repeat every 20 milliseconds.

This is just a rough outline and may require a little tweaking, but it works. I know, I already did it.
I was thinking Arduino because when I'm done with my senior project, I can cannibalize it and use the Arduino for come other really cool stuff.

What shield or module would I use to be able to utilize two PWM outputs?

Actually, I have a friend who's done work with pwm output and an arduino (he made a two wheeled 'bot' that auto-balanced... think segway except smaller). I could probably ask him.
__________________

"The [Otaku] is a simple creature." "Indeed. I cease to function when removed from a mill."
Reply With Quote