me-no-dev / RasPiArduino

Arduino Framework for RaspberryPI
333 stars 75 forks source link

Serial Communication #108

Open RandyL97 opened 4 years ago

RandyL97 commented 4 years ago

Hi, I've been using RaspiAdrduino on a Raspberry Pi Zero and PI4 without a hitch, until recently. My problem stems from the serial library as far as I can tell based off the troubleshooting I've done. All I need to do is send ASCII commands to a separate board that sends back info in ASCII. With no success, I decided to test the serial port using a USB to Serial cable, from the Raspberry PI to my PC, I just ran a simple "Hello World" script outputting to serial. When viewing the serial monitor with the correct baud, I get a jumbled mess of random characters. My first thought was that my cable was bad so I decided to test it using minicom on my PI, I sent text from the serial monitor(Arduino) to the PI and vice versa. Everything worked, which leads me to believe that the issue lies in the arduino code, maybe I'm not initializing something properly. I've looked into the github issue section and can't seem to find anyone with a similar issue and I don't know how else to troubleshoot this. Please let me know if there is anything you would like me to send over that might further help you understand this issue.  Thank you for your time.