Go to Post You're not on your own, use your team members. They are the most valuable source of ideas that you have. - fr05ty27355 [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #9   Spotlight this post!  
Unread 24-10-2002, 19:01
kmcclary's Avatar
kmcclary kmcclary is offline
Founder 830/1015;Mentor 66/470/1502
FRC #0470 (Alpha Omega Robotics)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 1994
Location: Ann Arbor, MI
Posts: 491
kmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond repute
Re: Pwm

Quote:
Originally posted by VanWEric
Last year we had a nice little black box that we could plug into a victor and control the motors from a little pot on the box. THe person who made it is no longer on our team, and i was wondering if anyone knows how to make one.

Thanks
Oh, sure! That's called a "servo simulator", used in radio control modeling all the time...

The Victors look like a standard RC servo (that's "radio control", not "robot controller") to the controller. It requires a 1ms to 2ms positive going 5v pulse, repeated somewhere in the 15ms - 20ms range. In reality it shouldn't be more often than about 15ms, yet it has to be more frequent than whatever timeout value the Victor's "I've lost the Robot Controller so I must shut down" watchdog timer is set to.

1.5 ms corresponds to "127" or the center "off" position of the Victor, and the 1ms and 2ms times correspond to the two full on directions. (I'm assuming 0 generates 1ms and 255 generates 2ms, but I've never bothered to verify that. Doesn't matter, though. One's full on in one direction, and the other is full on the other way.)

You can make that with a simple 555 circuit. Piece of cake... Here's a link to Ahmet Onat's page, which includes both the circuit and servo theory.

**BE CAREFUL THOUGH*** Ahmet's diagram has the leads in the wrong order for the Victors!!!

Victors use the "Futaba standard" for wiring order (Black, Red, White), where Black is Ground, Red is +5VDC, and White (or other color) is the pulse signal... Ahmet's diagram OTOH has the white signal lead in the MIDDLE for diagram simplicity, which is the WRONG ORDER for the Victors! Make sure it is in "SIGNAL, +5, GROUND" order on your connector!!! If you look closely at a Victor's case, you'll see it is marked "W R B" for White, Red, and Black respectively.

Here's Ahmet's page:
- http://www.geocities.com/BourbonStre...rvobasics.html

A couple of notes on part selection:

Transistor - If you need a part number for the "small signal NPN transistor", use whatever you can find, like a 2N2222, or a 2N3904.

Potentiometer - Make SURE you use a LINEAR TAPER pot, and NOT an "audio taper". The first has a resistance vs shaft_angle graph that's a straight line of constant slope from one end to the other. An "audio taper" pot has a logarithmic resistance vs shaft_angle graph. That means the center of the pot is NOT "the middle value", and the Victor will not be off in that position. You can tell you have an audio pot if the motor will want to run almost full on in one direction for all but a small pot angle on one end.

BTW, you will not be able to use the CH Flightstick or other PC joystick for this circuit, because (1) they are the wrong resistance value, and (2) they don't bring all three connections of the pot to the connector.

Disclaimer: Verify your connections BEFORE powering it up. I disavow any damage to your Victors caused by improper wiring...

- Keith
__________________
Keith McClary - Organizer/Mentor/Sponsor - Ann Arbor MI area FIRST teams
ACTI - Automation Computer Technologies, Inc. (Sponsoring FIRST teams since 2001!)
MI Robot Club (Trainer) / GO-Tech Maker's Club / RepRap-Michigan) / SEMI CNC Club
"Certifiably Insane": Started FIVE FRC teams & many robot clubs (so far)!
2002: 830 "Rat Pack" | 2003-5;14: 1015;1076 "Pi Hi Samurai" | 2005-6: 1549 "Washtenuts"/"Fire Traxx"
2005-(on): 1502 "Technical Difficulties" | 2006-(on): FIRST Volunteer!
2009-(on): 470 "Alpha Omega" | WAFL | Sponsor & "Floating Engineer" for MI Dist 13 (Washtenaw Cnty)
2011: 3638 "Tigertrons" | 2013-(on): 4395 "ViBots" | 2014-(on) 66 "Grizzlies"
"Home" Teams: 66, 470, 1076, 1502, 4395
Local FIRST alumni at or coming to Ann Arbor (UM/EMU/WCC/Cleary)?
...We Want YOU as a Mentor! Please email me for info!
Support CDF Reputation - If a posting helped, thank 'em with rep points!
"It must be FRC build season when your spouse and children become 'Action Items 8 & 9'..."

Last edited by kmcclary : 24-10-2002 at 19:31.
 


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
pwm 13-15 wayne 05 Programming 2 04-10-2003 12:08
PWM and burning out motors patrickrd Technical Discussion 7 19-06-2003 15:30
Limiting PWM in pbasic archiver 2001 4 24-06-2002 00:38
Loss of signal in PWM cables. archiver 2001 6 23-06-2002 23:29
PWM Wires... Anton Abaya Technical Discussion 3 04-02-2002 05:07


All times are GMT -5. The time now is 08:38.

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