Go to Post Kyle from team 45 said "Dude, I still have 2 years left in FIRST ahahaha.." My response to that was... "Kyle, I have till the day I die." - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 20-04-2008, 22:35
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Digital Electronics project - servos and more

Back when I was on FRC #0181, we created a (scaled down) replica of our 'bot's arm for our OI, using pots at each joint and a button for the actuator, to control our actual arm. We won the control award for this.

It really is pretty simple. If you have pots on the controlling arm, and pots on the big arm, you just have to write a relational equation to convert the two values (example: big_pot_1 = mini_pot_1 * .86 + 28)

Then you can pick a micro-controller to handle the job. A PIC16, like we used to use with the PBASIC bots, should work just fine. Get a protoboard (total, the controller, board and cable are usually together in a package in the $50-80 range.) You can then have your pots from your controller arm input into this, and have your output to your motor controllers.

Lets assume you are using motors that you only want to control with on/off/backwards type movement. You could then get some relays (from radioshack, less than a buck a piece), and run your motor voltage through them, with your control signal running back to your micro. Attach your motors to the relays.

Finally, you need to write some code. I hope that you aren't being forced to write in assembly, although this could be done. If not, make sure that when you pick a microcontroller, you pick one in a language that is easy for you to pick up. The PBASIC and C ones should work fine. Simply read in your inputs, convert to your output theoretical value, compare to the actual arm pot value, and drive your motors in the correct direction until they match.

Hope this helps!
Jacob
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
More than 6 RC digital input interrupts? Jared Russell Programming 2 06-02-2007 15:41
pic: More Electronics Christian Extra Discussion 7 28-11-2006 12:47
More Digital I/O Help RedOctober Programming 1 28-01-2006 17:32
More Digital I/O Help RedOctober Technical Discussion 1 28-01-2006 17:32
More on Project Unicorn archiver 2000 4 23-06-2002 22:59


All times are GMT -5. The time now is 05:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi