This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
robot [2013/11/22 01:49] jgensler8 |
robot [2014/02/08 23:52] djacobs [Tamiya Bot] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======= Tamiya Bot ======= | ||
+ | |||
+ | |||
root@strawberry | root@strawberry | ||
pins located at: /sys/class/gpio | pins located at: /sys/class/gpio | ||
- | echo <pin number> into "/sys/class/gpio/export" to create a gpio connection with pin <pin numebr>. | + | Initialize/Remove a gpio connection: |
- | echo <pin number> into "/sys/class/gpio/unexport" to remove an existing 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 | ||
+ | {{:test_1_rpi_arduino.jpg?200|}} | ||
+ | * arduino hookup | ||
+ | {{:test_1_arduino.jpg?200|}} | ||
+ | * rasberry hookup | ||
+ | {{:test_1_rpi.jpg?200|}} | ||
+ | |||
+ | =====Test 2:===== | ||
+ | **SoftwareSerial to ttyAMA0. Here is the** [[code]]. | ||
+ | * Raspberry Pi | ||
+ | {{:rpi_test_2.jpg?200|}} | ||
+ | * Arduino | ||
+ | {{:2014-01-31_18.22.57.jpg?200|}} | ||
+ | |||
+ | =====Test 3:===== | ||
+ | Code for the Servo and Sensor is [[robotservosensor|here.]] | ||
+ | ======links:====== | ||
+ | * serial connection: http://elinux.org/RPi_Serial_Connection | ||
+ | * RPi gpio chart: http://elinux.org/RPi_Low-level_peripherals#GPIO_hardware_hacking | ||
+ | * ICSP (+other digital charts for Leonardo):http://www.instructables.com/id/Step-by-Step-Guide-to-the-Arduino-Leonardo/ | ||
+ | * SPI R/W from arduino (UNO, in depth) http://www.gammon.com.au/forum/?id=10892 | ||
+ | * ICSP (explanation, more general) http://tronixstuff.com/2011/05/13/tutorial-arduino-and-the-spi-bus/ | ||
- | echo ("in"|"out") into "/sys/class/gpio/gpio<pin number>/direction" to specify the mode of writing or reading. | + | ====== iRobot ====== |
- | echo ("1"|"0") into "/sys/class/gpio/gpio<pin number>/value" to turn (on|off) a port | + | |
+ | [[http://www.irobot.com/hrd_right_rail/create_rr/create_fam/createFam_rr_manuals.html]] | ||