MicroTrac Controller v17.10/Code

From Open Source Ecology
Jump to navigation Jump to search

Goals

  • Establish serial communication over xbee radio
  • Transmit commands from the "remote controller" box to "onboard controller" box.
  • Attempt to run identical arduino control software on both boxes.
    • Will run in onboard mode if jumper set between defined pins.
  • When in onboard mode, transmit GPS location.
  • Boxes will ping each other and will shut down if connection lost.
  • Store radio information in EEPROM. Update on startup.
    • Create a program to define the EEPROM
  • Operate relay switches when "HAND" switch is on


Terms, Pins and Variables

Each Solenoid and corresponding relay switch will be defined by a single alphabet letter.

A - Left Track Forward
B - Left Track Backward
C - Right Track Forward
D - Right Track Backward
E - Arms Up
F - Arms Down
G - Bucket Up
H - Bucket Down

Code Theory

When a switch is thrown, its letter followed by a 1 or 0 will be transmitted over serial.

example: "E1" will engage the solenoid to raise the arms. "E0" will turn off the solenoid and will stop raising the arms.