Go to Post "If everything is possible, there is the possibility that something is impossible..." ::sigh:: :) - Kims Robot [more]
Home
Go Back   Chief Delphi > Other > VEX
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-09-2006, 14:01
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
PWM Frequency

Hi,
Well I have another question. The DC motors I asked about in my last thread are originally Sanwa Servo motors. I tried to plug in the servo motor to the pwm port in the controller, but it didn't control the motor properly. How do I know what the frequency of the pwm should be in order to control the motor?
Is there a way to change the controller PWM frequency?
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
Reply With Quote
  #2   Spotlight this post!  
Unread 28-09-2006, 08:59
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: PWM Frequency

Well, i know I have been asking loads of questions recetly, but I hope you are still willing to answer me.
I have a new question.
Is there a way to download programs to the controller using RJ-11 to COM cable instead of the VEX orange cable?

I tried to do that but it didnt work.

Is there a way to do that?

Thanks again,
Guy
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
Reply With Quote
  #3   Spotlight this post!  
Unread 28-09-2006, 11:38
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: PWM Frequency

Quote:
Originally Posted by Guy_E
...Is there a way to download programs to the controller using RJ-11 to COM cable instead of the VEX orange cable?...
Guy,

Yes.

We had an old laptop with a serial port but no USB port and we were successful in programming a VEX controller with it...

If you look at the orange cable, you will see that it comes apart at the DB9 connector. Take it apart at that connector.

One half is a USB to serial converter and the other half is a serial to RJ-11 cable.

The mounting hardware on the DB9 forced us to use a standard (straight through), M-F, DB9, serial extension cable (IFI P/N CABLE-DB9-6FT-MF) between the computer's serial port and the orange cable's DB9.

Make sure that the IFI_Loader software is configured to the proper port. In our case it was COM1.

It worked like a charm...

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #4   Spotlight this post!  
Unread 29-09-2006, 07:46
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: PWM Frequency

Quote:
Originally Posted by Guy_E
Hi,
Well I have another question. The DC motors I asked about in my last thread are originally Sanwa Servo motors. I tried to plug in the servo motor to the pwm port in the controller, but it didn't control the motor properly. How do I know what the frequency of the pwm should be in order to control the motor?
Is there a way to change the controller PWM frequency?
Guy,
I did a search and found a Q&A on an RC forum that the PWM pinout on the Sanwa Servo is different then the HiTec or other manufacturers. You need to check the part data sheet for your Sanwa against the pinout for the other motors.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #5   Spotlight this post!  
Unread 29-09-2006, 08:45
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: PWM Frequency

Quote:
Originally Posted by Mike Betts
Guy,

Yes.

We had an old laptop with a serial port but no USB port and we were successful in programming a VEX controller with it...

If you look at the orange cable, you will see that it comes apart at the DB9 connector. Take it apart at that connector.

One half is a USB to serial converter and the other half is a serial to RJ-11 cable.

The mounting hardware on the DB9 forced us to use a standard (straight through), M-F, DB9, serial extension cable (IFI P/N CABLE-DB9-6FT-MF) between the computer's serial port and the orange cable's DB9.

Make sure that the IFI_Loader software is configured to the proper port. In our case it was COM1.

It worked like a charm...

Mike
When I tried to use my RJ11 to Serial cable, the loader couldn't find the controller. It said "No programming board found". I tried to switch the COM ports, but still it couldn't find anything.

Any suggestions?
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
Reply With Quote
  #6   Spotlight this post!  
Unread 29-09-2006, 11:48
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: PWM Frequency

Quote:
Originally Posted by Guy_E
When I tried to use my RJ11 to Serial cable, the loader couldn't find the controller. It said "No programming board found". I tried to switch the COM ports, but still it couldn't find anything.

Any suggestions?
Guy,

Was the Baud rate set correctly?

Did the VEX controller LEDs indicate that the controller was ready to program when you pushed the program button?

You said that you switched the COM ports... Did you verify the active COM port using the Device Manager?

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...

Last edited by Mike Betts : 29-09-2006 at 11:51.
Reply With Quote
  #7   Spotlight this post!  
Unread 30-09-2006, 03:14
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: PWM Frequency

All the settings were the same as if I were downloading the program using the orange cable (accept the different COM port).
As far as I know, there is no button to push in the VEX controller.
And my serial port is located on COM 1.
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
Reply With Quote
  #8   Spotlight this post!  
Unread 30-09-2006, 03:15
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: PWM Frequency

accept=except (what a stupid mistake)
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
Reply With Quote
  #9   Spotlight this post!  
Unread 30-09-2006, 04:31
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: PWM Frequency

Quote:
Originally Posted by Guy_E
All the settings were the same as if I were downloading the program using the orange cable (accept the different COM port).
As far as I know, there is no button to push in the VEX controller.
And my serial port is located on COM 1.
Guy,

When you used the orange USB to RJ11 cable to program the VEX controller, you have to press the button on the cable to do it...

When the orange cable is taken apart at its DB9 connector, the program button is between the DB9 and the RJ11 connectors.

Also, insure that COM1 is set to 115K baud in the Device Manager so that it agrees with the IFI loader.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #10   Spotlight this post!  
Unread 30-09-2006, 04:36
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: PWM Frequency

Quote:
Originally Posted by Guy_E
accept=except (what a stupid mistake)
Guy,

Your English is quite acceptable (considering your country of origin).

I take no exception to small mistakes. ;-)

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #11   Spotlight this post!  
Unread 30-09-2006, 06:55
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: PWM Frequency

Quote:
Originally Posted by Mike Betts
Guy,

When you used the orange USB to RJ11 cable to program the VEX controller, you have to press the button on the cable to do it...

When the orange cable is taken apart at its DB9 connector, the program button is between the DB9 and the RJ11 connectors.

Also, insure that COM1 is set to 115K baud in the Device Manager so that it agrees with the IFI loader.

Mike
I think you didn't understand my question. I have a cable, which has nothing to do with the VEX orange cable.

The cable is RJ11 to serial and I want to use it instead of the orange cable.
The reason I want to do it is because I have 2 VEX controllers, and only one cable and I need two (one is not mine). In order to buy a cable I need to buy the entire programming kit which costs about 100$. I want to save my money and use my own cable.

I hope Im clear now...
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
Reply With Quote
  #12   Spotlight this post!  
Unread 30-09-2006, 12:46
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: PWM Frequency

Quote:
Originally Posted by Guy_E
I think you didn't understand my question. I have a cable, which has nothing to do with the VEX orange cable.

The cable is RJ11 to serial and I want to use it instead of the orange cable.
The reason I want to do it is because I have 2 VEX controllers, and only one cable and I need two (one is not mine). In order to buy a cable I need to buy the entire programming kit which costs about 100$. I want to save my money and use my own cable.

I hope Im clear now...
Guy,

OK... There are three paths which you may follow...

1. Contact IFI via the VexForum and ask how to purchase the cable you want.

2. Contact IFI via the VexForum and ask for a schematic for the DB9 to RJ11 cable (with programming button) and modify your cable appropriately.

3. Take the orange cable which you already have. Using an ohm-meter, trace out each of the RJ11 pins back to the DB9 and determine which pins go where on the DB9 (at least 2 pins should connect). Then determine which pins get shorted out when the programming button is pressed (most likely the 2 unused by the DB9) and modify your cable appropriately.

Best of luck...

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #13   Spotlight this post!  
Unread 30-09-2006, 13:15
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: PWM Frequency

Thank you very much for your advices.
You have helped me alot!
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
Reply With Quote
  #14   Spotlight this post!  
Unread 05-10-2006, 17:55
Anime-niac_2.9's Avatar
Anime-niac_2.9 Anime-niac_2.9 is offline
Japanese-crap freak(NOTE AVATAR)
AKA: Alex Abenoja, A-Squared, & Anime
FRC #0599 (Robodox)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Northridge, California
Posts: 88
Anime-niac_2.9 will become famous soon enough
Re: PWM Frequency

This may seem a bit off topic than what you guys are talking about, but how exactly can you program the vex controller with MPLab?
__________________
THE ROBODOX FORUM

Reading: Suzumiya Haruhi no Yuutsu by Tanigawa Nagaru
Religion: Haruhiism
Reply With Quote
  #15   Spotlight this post!  
Unread 05-10-2006, 23:20
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: PWM Frequency

Quote:
Originally Posted by Anime-niac_2.9
This may seem a bit off topic than what you guys are talking about, but how exactly can you program the vex controller with MPLab?
Exactly the same as the FRC robots. Put another way, If you can program a FRC robot, you can program a FVC robot.

The FVC controller has exactly the same uC as the 2004 and 2005 FRC controllers. The differences due to the hardware "glue" around the uC are almost invisible to most users. In most cases, if you choose your I/O correctly, you can cut and paste your FRC code into a FVC, compile and run.

Do you have a specific question?
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
Reply


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
camera update frequency Rickertsen2 Programming 2 14-02-2006 23:07
Max Encoder/Interrupt Frequency? duane Programming 5 23-01-2006 20:43
control loop frequency. Rickertsen2 Programming 1 12-01-2006 08:38
digital output frequency Barth Programming 8 06-03-2005 21:58
Frequency of Offseason Meetings Yan Wang General Forum 13 24-09-2003 11:40


All times are GMT -5. The time now is 21:18.

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