Go to Post The toughest part about that Chairman's Award was the fact that someone was cutting onions in the stands near 558/on the field while it was being read out. At least that was the excuse I'm going to use ;) - esquared [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 13-10-2015, 11:00
AnonymousPencil AnonymousPencil is offline
Registered User
FRC #1660
 
Join Date: Jan 2009
Location: New York
Posts: 5
AnonymousPencil is an unknown quantity at this point
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...
Reply With Quote
  #2   Spotlight this post!  
Unread 13-10-2015, 11:25
zachrobo1's Avatar
zachrobo1 zachrobo1 is offline
Registered User
AKA: Zach Cloud
FRC #1002 (The CircuitRunners)
Team Role: Leadership
 
Join Date: Dec 2013
Rookie Year: 2006
Location: Georgia
Posts: 86
zachrobo1 is a glorious beacon of lightzachrobo1 is a glorious beacon of lightzachrobo1 is a glorious beacon of lightzachrobo1 is a glorious beacon of lightzachrobo1 is a glorious beacon of light
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.
__________________
Team 1002 - Website - Facebook - Twitter - Youtube
Reply With Quote
  #3   Spotlight this post!  
Unread 13-10-2015, 11:32
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,675
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Vex PIC Microcontroller V0.5 to cim Via VictorSp???

Quote:
Originally Posted by AnonymousPencil View Post
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.
__________________
Mentor / Drive Coach: 228 (2016-?)
...2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
---
College Mentor: 2791 (2010-2015)
...2015 TVR Motorola Quality, FLR GM Industrial Design
...2014 FLR Motorola Quality / SFs (with 341, 4930)
...2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
...2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 Minnesota 10,000 Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
Reply With Quote
  #4   Spotlight this post!  
Unread 13-10-2015, 23:55
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
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
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed


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


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

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