Serial communication doesn't work RPI--ARDUINO uart [closed]












1















i want to use serial communication to send data from an arduino nano to a raspberry zero w.



I used this method of connecting the pi to the arduino



I used this code



import serial
port = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=3.0)

while True:
print(port.read())


but it doesn't work, I tried many things but they all didn't work for example:




  • disabled serial login shell using raspi-config

  • tried other wirings

  • added dtoverlay=pi3-disable-bt to config.txt

  • tried searching for the correct port

  • tried this command sudo systemctl disable hciuart

  • tried different baudrates


I use this arduino code



void setup() {
Serial.begin(9600);
}

void loop() {
Serial.print("10,20,30,40,50");
delay(500);
}


could somebody help me?



Thanks










share|improve this question













closed as off-topic by DavidPostill Dec 23 '18 at 16:27


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is not about computer hardware or software, within the scope defined in the help center." – DavidPostill

If this question can be reworded to fit the rules in the help center, please edit the question.














  • This belongs on arduino.stackexchange.com or raspberrypi.stackexchange.com but as written is not a good fit for either of them.

    – DavidPostill
    Dec 23 '18 at 16:29
















1















i want to use serial communication to send data from an arduino nano to a raspberry zero w.



I used this method of connecting the pi to the arduino



I used this code



import serial
port = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=3.0)

while True:
print(port.read())


but it doesn't work, I tried many things but they all didn't work for example:




  • disabled serial login shell using raspi-config

  • tried other wirings

  • added dtoverlay=pi3-disable-bt to config.txt

  • tried searching for the correct port

  • tried this command sudo systemctl disable hciuart

  • tried different baudrates


I use this arduino code



void setup() {
Serial.begin(9600);
}

void loop() {
Serial.print("10,20,30,40,50");
delay(500);
}


could somebody help me?



Thanks










share|improve this question













closed as off-topic by DavidPostill Dec 23 '18 at 16:27


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is not about computer hardware or software, within the scope defined in the help center." – DavidPostill

If this question can be reworded to fit the rules in the help center, please edit the question.














  • This belongs on arduino.stackexchange.com or raspberrypi.stackexchange.com but as written is not a good fit for either of them.

    – DavidPostill
    Dec 23 '18 at 16:29














1












1








1








i want to use serial communication to send data from an arduino nano to a raspberry zero w.



I used this method of connecting the pi to the arduino



I used this code



import serial
port = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=3.0)

while True:
print(port.read())


but it doesn't work, I tried many things but they all didn't work for example:




  • disabled serial login shell using raspi-config

  • tried other wirings

  • added dtoverlay=pi3-disable-bt to config.txt

  • tried searching for the correct port

  • tried this command sudo systemctl disable hciuart

  • tried different baudrates


I use this arduino code



void setup() {
Serial.begin(9600);
}

void loop() {
Serial.print("10,20,30,40,50");
delay(500);
}


could somebody help me?



Thanks










share|improve this question














i want to use serial communication to send data from an arduino nano to a raspberry zero w.



I used this method of connecting the pi to the arduino



I used this code



import serial
port = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=3.0)

while True:
print(port.read())


but it doesn't work, I tried many things but they all didn't work for example:




  • disabled serial login shell using raspi-config

  • tried other wirings

  • added dtoverlay=pi3-disable-bt to config.txt

  • tried searching for the correct port

  • tried this command sudo systemctl disable hciuart

  • tried different baudrates


I use this arduino code



void setup() {
Serial.begin(9600);
}

void loop() {
Serial.print("10,20,30,40,50");
delay(500);
}


could somebody help me?



Thanks







raspberry-pi serial arduino






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 23 '18 at 16:20









user9729726user9729726

61




61




closed as off-topic by DavidPostill Dec 23 '18 at 16:27


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is not about computer hardware or software, within the scope defined in the help center." – DavidPostill

If this question can be reworded to fit the rules in the help center, please edit the question.




closed as off-topic by DavidPostill Dec 23 '18 at 16:27


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is not about computer hardware or software, within the scope defined in the help center." – DavidPostill

If this question can be reworded to fit the rules in the help center, please edit the question.













  • This belongs on arduino.stackexchange.com or raspberrypi.stackexchange.com but as written is not a good fit for either of them.

    – DavidPostill
    Dec 23 '18 at 16:29



















  • This belongs on arduino.stackexchange.com or raspberrypi.stackexchange.com but as written is not a good fit for either of them.

    – DavidPostill
    Dec 23 '18 at 16:29

















This belongs on arduino.stackexchange.com or raspberrypi.stackexchange.com but as written is not a good fit for either of them.

– DavidPostill
Dec 23 '18 at 16:29





This belongs on arduino.stackexchange.com or raspberrypi.stackexchange.com but as written is not a good fit for either of them.

– DavidPostill
Dec 23 '18 at 16:29










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Paul Cézanne

UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

Angular material date-picker (MatDatepicker) auto completes the date on focus out