View Single Post
  #1   Spotlight this post!  
Unread 12-03-2013, 23:34
Crawler Crawler is offline
Registered User
FRC #3749
 
Join Date: Jan 2012
Location: San Diego
Posts: 19
Crawler is a jewel in the roughCrawler is a jewel in the roughCrawler is a jewel in the roughCrawler is a jewel in the rough
arduino victor 884 and a cim

Hello everyone, my goal here is to find a simplified code to get an arduino to run a spike with a cim

so I have looked around for a couple days and sorry but it all seems to come up null. i have seen a lot about servo libraries and endless lines of code just to turn one motor in either direction, here is the ultimate goal i have in mind: hook directly into the potentiometers on my attack 3, and use it to control the speed and direction of 2 cims for a basic drive train. for now i would settle just to see being able to turn it one direction or the other with the code.

So i have the ground wire hooked to ground, the wire on the right hooked to pin 10, I have tried analog and digital but neither give me an easy way to control it. I have the victor itself hooked up to the std. 12v battery through a 40 amp breaker to be safe. I would imagine that the code necessary to turn it either way continuously should be encomppased in less than 6 lines and i think the issue is with the delay, any suggestions?

Thanks,
Nick