Problem with serial port on Rpi3


#1

Hello. my first port here…

I just installed my Arduberry on a Rpi3
! have a simple script for monitor 2 sensors but i cannot get it to work.

The Arduino IDE shows only serial port ttySO, but 1 read everywhere i must be on, ttyAMA0

I found a python script to test the serial port here:
http://www.instructables.com/id/Read-and-write-from-serial-port-with-Raspberry-Pi/
But that shows only empty screens.

How can i get the serial port working?


#2

Sorry for the followup post, but i can not edit my post.

i found http://raspberrypi.stackexchange.com/questions/935/how-do-i-get-the-data-from-the-serial-port

import serial
serialport = serial.Serial("/dev/ttyS0", 9600, timeout=0.5)
serialport.write("What you want to send")
response = serialport.readlines(None)
print response

But that show a empty screen to…


#3

Hey nono123,
Are you using the Dexter Industries Raspbian for Robots image/SD card or are you using a normal Jessie. Can you post a screenshot of what you are getting.

-karan


#4

Thamks for your reply, but it is working now.
Strange thing was only why it was on ttySO


#5

Glad to hear that it works for you.

We have updated the image too. So it should work now. We have added a symbolic link between ttyAMA0 and ttyS0, and for some reason Arduino IDE just uses ttyS0.

-Karan