https://www.modmypi.com/shop/slice-of-p ... akout-boad
I have an Xbee module that I'm placing on this breakout.
I have been using a USB breakout board to send serial packets from the Xbee to an Arduino. This was always working just fine by sending a packet to '/dev/ttyUSB0'.
The problem is that now that I have this slice of pi breakout board and I'm not sure what TTY device to use.
This is the current python code I was using:
Code: Select all
import socket
import RPi.GPIO as GPIO
import wiringpi
device = "/dev/ttyUSB0"
message = "hello world"
serial = wiringpi.Serial(ttyDevice, 9600)
serial.puts(message)Is it /dev/ttyAMA0?
According to this tutorial that's what they were using:
http://www.doctormonk.com/2012/06/raspb ... ensor.html
I tried that and it doesn't send any packets to the Arduino.
Any help would be greatly appreciated.