Go to Post You know how grandmothers get shirts that say "Ask me about my grandchildren"? I want one that says "Ask me about my robotics team." - MissInformation [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Spotlight this post!  
Unread 08-02-2011, 22:58
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Programming Motors for Arm

Looking up the wiring diagrams for everything is just going to put you in circles.

For Pots you wire 3 cables (pwm cable) into an analog port on the cRIO, one to the power one to the ground and one to the wiper (the wiper is your signal).

For encoders you wire The voltage, a signal, and ground to one female pwm end and the b signal and ground to another pwm. Both of these pwm's go into the dsidecar

LabView wise for pots you read the driver station analog input (1-4) reference example "Potentiometer with Driver Station". If you want the degrees you will have to do some math which involves your potentiometer size (10K or whatever it is) and the voltage given from the analog input port on the cRIO (i think its 5v not sure though).

For encoders you need to open 2 DIO's in the begin (dsidecar ports) and put them into a couple encoder vi's (in the WPI library) which I don't know the whole row so follow the "Encoder Example" example to know for sure.

PID is a mildly complex control system (wiki it thats how I learned it a few weeks ago actually) that will slow down the motor output until it hits the correct values (or goes over in which case it will reverse).

Fun stuff and yet again with such a big post I probably forgot something.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
 


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 20:32.

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