You may first need to turn off the UART functioning as a serial console by following the instructions here. The default setup of the UART is 115200-8-N-1 (115200 baud, 8 data bits, No partity, 1 stop bit and no flow control). What is current port setup? stty -F /dev/ttyAMA0 Transmit String This will send "hello" from the serial […]
Category: IO Pins
IO pin control from the command line
Elevate your permissions to root user to allow IO access sudo -i Setup to control pin as output Substitute 23 in the following commands for your GPIO number (GPIO, not pin number) echo "23" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio23/direction Control Output State echo "1" > /sys/class/gpio/gpio23/value echo "0" > /sys/class/gpio/gpio23/value Setup to read pin […]