Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Vex PIC Microcontroller V0.5 to cim Via VictorSp??? (http://www.chiefdelphi.com/forums/showthread.php?t=138552)

AnonymousPencil 13-10-2015 11:00

Vex PIC Microcontroller V0.5 to cim Via VictorSp???
 
I am working on a small project. I am currently running two cim motors via VictorSp:

http://www.vexrobotics.com/217-9090.html

Using an Arduino Uno:

https://www.arduino.cc/en/Main/ArduinoBoardUno

but I want to b able to control my motors with a reciever. Is it possible to connect the Victors directly to the Vex controller:

http://www.vexrobotics.com/276-2170.html

since they are pwm ports? If so, can I just program the Victors as I would motors? That way I can just use one of the vex recievers to control my motors...

zachrobo1 13-10-2015 11:25

Re: Vex PIC Microcontroller V0.5 to cim Via VictorSp???
 
Are you using an Arduino to control this or a Vex PIC? It wasn't exactly clear.

Either way, this is pretty simple to do. On the Victor's PWM cable, your ground (black) cable will need to go into the Arduino's ground pin (on the PIC, it will be the outermost pin in the motor breakout). Then, the signal cable (white) will need to go into a PWM-supported pin on the Arduino (on the PIC, the innermost pin). You shouldn't need to do anything with the red +5V pin in the center.

Programming wise, in RobotC it should be the same as programming the 393 motors (-127 to 127) while if you are programming it on Arduino you would need to call analogwrite with a value from 0-255.

Chris is me 13-10-2015 11:32

Re: Vex PIC Microcontroller V0.5 to cim Via VictorSp???
 
Quote:

Originally Posted by AnonymousPencil (Post 1499816)
I want to b able to control my motors with a reciever. Is it possible to connect the Victors directly to the Vex controller:
since they are pwm ports? If so, can I just program the Victors as I would motors? That way I can just use one of the vex recievers to control my motors...

This definitely worked with the original Victors. I haven't tried it with an SP but there's no reason this wouldn't work. I would calibrate the speed controller just to be sure, but yes this should work.

BBray_T1296 13-10-2015 23:55

Re: Vex PIC Microcontroller V0.5 to cim Via VictorSp???
 
The only way I could see this not working is if the PIC supplies >5vdc through the PWM line. The old motors those powered ran solely off of the power from the pwm, so the PIC's circuitry may have been designed to pump 7.2V or otherwise down the line, which would be damaging to the Victor SP.

I looked for a few minutes but did not find anything indicating what was being sent besides pulse ranges


All times are GMT -5. The time now is 00:39.

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