User Tools

Site Tools


robot

Tamiya Bot

root@strawberry

pins located at: /sys/class/gpio

Initialize/Remove a gpio connection:

  • echo <pin number> into “/sys/class/gpio/export” to create a gpio connection with pin <pin number>.
  • echo <pin number> into “/sys/class/gpio/unexport” to remove an existing connection

Using a gpio connection:

  • echo (“in”|“out”) into “/sys/class/gpio/gpio<pin number>/direction” to specify the mode of writing or reading.
  • echo (“1”|“0”) into “/sys/class/gpio/gpio<pin number>/value” to turn (on|off) a port

Test 1:

  • Raspberry Pi + Arduino, GPIO test light blink

  • arduino hookup

  • rasberry hookup

Test 2:

SoftwareSerial to ttyAMA0. Here is the code.

  • Raspberry Pi

  • Arduino

Test 3:

Code for the Servo and Sensor is here.

links:

iRobot

robot.txt · Last modified: 2014/03/06 18:06 by aphelp6