Go to Post I'm sure FIRST did the math. They always do the math. Just not math humans use. It was probably given to them from NASA from the aliens so we'd quit predicting the divisions before they release it. - Koko Ed [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-08-2005, 14:14
Hutch Hutch is offline
NOTAG
FRC #0461 (Westside Boiler Invasion)
Team Role: Programmer
 
Join Date: Jul 2005
Location: Indiana
Posts: 69
Hutch will become famous soon enoughHutch will become famous soon enough
Generating Victor compatible PWM's

For a kind of simple non-FIRST project, I need to generate my own PWM's for a Victor. I have a circuit for doing so but I need to know what frequency they should have (I couldn't find it in the documentation and don't really want to fork over $15 for the special cable to check). So, does anyone (even approximately) what frequency they should have?
  #2   Spotlight this post!  
Unread 02-08-2005, 14:50
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: Generating Victor compatible PWM's

Quote:
Originally Posted by Hutch
For a kind of simple non-FIRST project, I need to generate my own PWM's for a Victor. ... So, does anyone (even approximately) what frequency they should have?
If you mean the control signal, it's the standard hobby servo PWM. 1.5ms is neutral, 2ms is forward, 1ms is reverse. Forward and reverse might be backwards...but 2ms goes full one direction, 1ms goes full the other direction. Anything in between is proportional. You need to send the signal every 20ms or so (this timing isn't critical). Servos go to sleep if they don't get the signal after 30ms, but I'm not sure what happens with the victor. If you send it too often, it gets confused and does weird things.
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
  #3   Spotlight this post!  
Unread 02-08-2005, 18:42
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Generating Victor compatible PWM's

Standard hobby PWM dictates the 1ms is full reverse, 1.5 is neutral and 2ms is full forward, and the most commong timing is 50hz (every 20ms) if you take too long it'll discard the signal as unstable and I've never heard of anything going wrong if its too fast, but try to get your pulse out at 15 to 20ms (50-67hz I think) Any faster and I don't think it will work, but to be entirely positive you might want to try PMing JVN as he actually works for IFI and should be able to answer your question.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #4   Spotlight this post!  
Unread 03-08-2005, 10:54
Hutch Hutch is offline
NOTAG
FRC #0461 (Westside Boiler Invasion)
Team Role: Programmer
 
Join Date: Jul 2005
Location: Indiana
Posts: 69
Hutch will become famous soon enoughHutch will become famous soon enough
Re: Generating Victor compatible PWM's

Great, thanks.
  #5   Spotlight this post!  
Unread 03-08-2005, 13:36
JonA's Avatar
JonA JonA is offline
Embedded Firmware Engineer
no team (Semi-Retired)
Team Role: Engineer
 
Join Date: Dec 2002
Rookie Year: 2002
Location: Milwaukee, WI
Posts: 31
JonA has a spectacular aura aboutJonA has a spectacular aura about
Re: Generating Victor compatible PWM's

I use the same servos on my HC11 powered robots, and just be aware that you will run into issues if you get too far away from the stated period of the signal. The tollerance is usually within a few ms of the proper frequency.
__________________
"That mecanum guy"

- Woodie Flowers Finalist Award Winner: 2010 Minnesota North Star Regional
- Mentor and Founder of 7 FRC Teams since 2003.
- FRC Regional Competition Score Keeper/Field Power Controller, Robot Inspector, Control System Adviser, Judge
- Co-Founder, Alumni: Milwaukee FIRST Support Organization
- Board Member, Game Design Committee, Judge, MVP-FTA: Midwest Vex Programs
- Computer Engineering Alumni '06: MSOE
- Embedded Firmware Engineer: Rockwell Automation
Closed Thread


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
A VERY nice perl script for generating lookup tables. Validius Programming 11 31-03-2005 10:15
pwms for relays reilly Motors 3 18-02-2005 15:02
pwms 13 and 15 in autonomous mode Chris Bright Programming 1 24-02-2004 22:25
Brake mode on pwm's snowdragon General Forum 4 23-02-2004 19:11


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

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