• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

How to send data from Arduino to Rasp Pi Python

Q&A Forum › Category: Arduino › How to send data from Arduino to Rasp Pi Python
0 Vote Up Vote Down
Ron asked 5 years ago
Question Tags: Code
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Ron.
Can you be a little more specific?
Depending on the data you want to send, and on your project, one method might be more suitable than the other.
Regards,
Sara

0 Vote Up Vote Down
Ron answered 5 years ago

Normally it is very simple however it has stopped working for me. I have an Arduino sketch that transmits simple data “Hello RPi”. I test it and it is sending the text. At the Python program I use data = ser.readline(), etc.. Nothing is received and printed!
Don’t bother trying to analyze this. Must be a hardware problem but I have tried two Arduinos and two different Rasp Pi boards. IT USED TO WORK!! I will try again and try to come up with a more specific question. So just wait for a more specific question before answering. Thank you for responding.

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Ron.
Double-check the code you’re using. Sometimes we make small changes to the code without noticing and then, it stops working.
If it used to work, there must be a small change responsible for the problem, or maybe some sort of hardware problem.
Regards,
Sara

0 Vote Up Vote Down
Ron answered 5 years ago

I finally found my problem. Selecting the “ttyAMAO” is the problem (I’m sending Arduino output to RasPi Python). For whatever reason, the system keeps changing the “tty–” device that will work. A few minutes later, if I have halted the program, the system again changes the allowable devices. Very frustrating! I need to learn more about why this happens.

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
Unfortunately, I don’t know why that happens.
At least, now you know the source of the issue and you know what you should be looking for.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.