Team Sub-Groups‎ > ‎Programming‎ > ‎

19 Nov 2014 Programming Discussion: Basics of Robot Control

posted Nov 19, 2014, 9:40 PM by Rob Owings   [ updated Oct 4, 2015, 12:05 AM by Jeffrey Kangas ]
cRio Basics: The brain takes power and outputs digital and analog signals to actuators and accepts input from analog or digital sensors.
Sensors: Gyro, Ultrasonic, Accelerometer, encoder, counter
Actuators: Motors, servo, relay, solenoid, compressor

Digital is pulsed on output to get more range than a simple on/off 1 or 0. PWM signals out control motors, servos.  Digital outs control Relays, solenoids, and compressor by switching on or off.
Analog is a continuous spectrum of variable voltage.  Sensors such as gyros, ultrasonics, or accelerometers are analog... encoders and counters are digital inputs.

This may seem very foreign if it is new.  The best way to learn is to practice, practice, practice.  Get the simulator to work.

Here's a list of the items on the simulation robot (straight out of the tutorials found on the front page of labview when it opens - #10):

Arcade Robot with Arm
        Actuators on the simulated robot
  1. Left Motor
    • Digital Module = Digital Module 1
    • PWM Channel = PWM 1
  2. Right Motor
    • Digital Module = Digital Module 1
    • PWM Channel = PWM 2
  3. Camera Servo
    • Digital Module = Digital Module 1
    • PWM Channel = PWM 5
    • Angular Range = 170
  4. Arm Servo
    • Digital Module = Digital Module 1
    • PWM Channel = PWM 6
    • Angular Range = 170
  5. Gripper Servo
    • Digital Module = Digital Module 1
    • PWM Channel = PWM 7
    • Angular Range = 170
        Sensors on the simulated robot
  1. Encoder on Right Motor
    • Digital Module = Digital Module 1
    • A Channel = DIO 3
    • B Channel = DIO 4
  2. Encoder on Left Motor
    • Digital Module = Digital Module 1
    • A Channel = DIO 5
    • B Channel = DIO 6
  3. Gyro
    • Analog Module = Analog Module 1
    • Analog Channel = AI 1
  4. Ultrasonic
    • Ping Digital Module = Digital Module 1
    • Ping DIO Channel = DIO 1
    • Echo Digital Module = Digital Module 1
    • Echo DIO Channel = DIO 2
  5. AXIS M1011 Camera 
Ċ
Jeffrey Kangas,
Nov 19, 2014, 9:40 PM
Ċ
Jeffrey Kangas,
Nov 19, 2014, 9:40 PM
Ċ
Jeffrey Kangas,
Nov 19, 2014, 9:40 PM
ć
Jeffrey Kangas,
Nov 19, 2014, 9:40 PM
Comments