View Full Version : 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?
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
Mike Betts
28-09-2006, 11:38
...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 (http://www.radioshack.com/sm-6-ft-usb-to-serial-port-cable--pi-2036258.html) 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 (http://www.ifirobotics.com/accessories.shtml)) 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
Al Skierkiewicz
29-09-2006, 07:46
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.
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 (http://www.radioshack.com/sm-6-ft-usb-to-serial-port-cable--pi-2036258.html) 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 (http://www.ifirobotics.com/accessories.shtml)) 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?
Mike Betts
29-09-2006, 11:48
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
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.
accept=except (what a stupid mistake)
Mike Betts
30-09-2006, 04:31
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
30-09-2006, 04:36
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
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...
Mike Betts
30-09-2006, 12:46
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 (http://www.vexforum.com/) and ask how to purchase the cable you want.
2. Contact IFI via the VexForum (http://www.vexforum.com/) 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
Thank you very much for your advices.
You have helped me alot!
Anime-niac_2.9
05-10-2006, 17:55
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?
Mike Betts
05-10-2006, 23:20
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?
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.