Datasheet

26 | Page
reset_off
The following script will release the Arduino reset and thus make that the Arduino chip runs. It
only works if the GertDuino is plugged in to the Raspberry Pi and the reset jumper is in place.
#!/usr/bin/sudo bash
# Set GPIO pin 8, high releasing Arduino reset
sudo echo "8" >/sys/class/gpio/export
sudo echo "out" >/sys/class/gpio/gpio8/direction
sudo echo "1" >/sys/class/gpio/gpio8/value
sudo echo "8" >/sys/class/gpio/unexport
reset_on
The following script will assert the Arduino reset and thus make that the Arduino chip stops, is
held in reset. It only works if the GertDuino is plugged in to the Raspberry Pi and the reset
jumper is in place.
#!/usr/bin/sudo bash
# Set GPIO pin 8, low activating Arduino reset
sudo echo "8" >/sys/class/gpio/export
sudo echo "out" >/sys/class/gpio/gpio8/direction
sudo echo "0" >/sys/class/gpio/gpio8/value
sudo echo "8" >/sys/class/gpio/unexport
10 Appendix A : GertDuino Schematic