# Issue communicating over serial with Arduino

**URL:** <https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895>\
**Category:** General\
**Tags:** raspberry-pi\
**Created:** [23 June 2024 21:29 UTC](https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895 "2024-06-23T21:29:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAMemory](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@RAMemory](https://discourse.nodered.org/u/RAMemory)\
**Post date:** [23 June 2024 21:29 UTC](https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895/1 "2024-06-23T21:29:44Z")

</div>

Hello,  
Hopefully this is ok to post here... I currently have node red running on a RPI 3B+ installed using the 'Venus OS Large image' from Victron (Camper van electrics). I want to be able to use an Arduino to do some water valve controlling and it needs to know the status of the water tanks from the rpi.

For some testing I am trying to send simple serial strings from the Arduino Uno to the rpi but it only receives some messages and the rest is full of symbols. there should be a message every 2.5 seconds saying "Data: " with a random number afterwards but it doesn't seem to work. My baud rates are the same at 9600.  
Any help is appreciated!

 ![Screenshot 2024-06-22 at 23.21.46](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/d/5d8022b5f7f71a17c823e8263207ff61eb1f0267.jpeg)

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [24 June 2024 11:38 UTC](https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895/2 "2024-06-24T11:38:11Z")

</div>

How did you connect the Arduino to your pi?  
Over usb or some jumper wires to TXD0/RXD0.  
For the last one keep in mind that most Arduino's are 5V and the raspberry 3.3V.  
Also for connection with the jumpers, have a look at this

> **[Configuring The GPIO Serial Port On Raspbian Jessie and Stretch Including Pi...](https://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3-4/)**
>
> The Raspberry Pi GPIO serial port configuration has changed under Jessie / Stretch / Buster and also with the Raspberry PI 3 / 4. How to set it up.

---

<div class="post-metadata">

**Author:** ![RAMemory](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@RAMemory](https://discourse.nodered.org/u/RAMemory)\
**Post date:** [24 June 2024 12:16 UTC](https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895/3 "2024-06-24T12:16:10Z")

</div>

Thank you for the reply.  
Originally I tried using the serial pins using a logic converter for the voltage difference. I managed to get a handfull of messages sent through from the pi to the arduino using software serial (I wasn’t sure how else I could see the arduino serial monitor while using the serial pins). But then it stopped and I never got it working again.

I then switched to using the USB directly from arduino to raspberry pi and this is where I am now.

Interestingly I did read somewhere else about the Bluetooth interfering with the rpi serial but I couldn’t cd into the \boot folder… it didn’t seem to exist but it was late into the evening by that point. I’ll have a read of that article and give it a go.  
Thanks again

---

<div class="post-metadata">

**Author:** ![RAMemory](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@RAMemory](https://discourse.nodered.org/u/RAMemory)\
**Post date:** [24 June 2024 21:35 UTC](https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895/4 "2024-06-24T21:35:32Z")

</div>

Hello, unfortunately I've had no luck. editing the boot doesn't seem to make a difference. the boot file already had the code from the link you sent through... for now I have been using the usb on the pi for the Arduino which seems to be port ACM0 which shouldn't be affected by the onboard bluetooth. If you have any more ideas id be happy to try them. Ive added some images below that show my basic setup.  
Cheers

 ![Screenshot 2024-06-24 at 22.32.51](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/9/69837007f0188fbc0b6ca342018290a9847d140e.jpeg)  
 ![Screenshot 2024-06-24 at 22.33.38](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/9/49f89cff474a9fb181a4ac4ca6abae95f9809aec.jpeg)

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [25 June 2024 10:50 UTC](https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895/5 "2024-06-25T10:50:23Z")

</div>

In your previous post you mentioned that the Arduino is connect over USB to the pi, **ttyACM0** is not an usb serial interface that you selected in the serial port node.  
Usb interface should look like **ttyUSB0**  
Use the magnification glass in the node to find the correct port.

---

<div class="post-metadata">

**Author:** ![RAMemory](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@RAMemory](https://discourse.nodered.org/u/RAMemory)\
**Post date:** [25 June 2024 11:25 UTC](https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895/6 "2024-06-25T11:25:53Z")

</div>

That is interesting. When I plug it in via usb the I get ACM0, AMA0 and s0. Then when I go via the GPIO ACM0 disappears and the other 2 remain. USB does not show up in any case. I don’t understand why it occasionally receives the message… unless VenusOS is taking the USB or something?

---

<div class="post-metadata">

**Author:** ![RAMemory](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@RAMemory](https://discourse.nodered.org/u/RAMemory)\
**Post date:** [26 June 2024 21:00 UTC](https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895/7 "2024-06-26T21:00:14Z")

</div>

I believe after a lot of google searching late into the night I have found my answer and it now (so far) is working. It is because the boot software (VenusOS) firstly uses the USB ports as a console interface so it dumps all its logs into there, confusing things. Then it only 'recognises' a set few USB types which are manually set in some configs deep in the OS. I have done a short write up [here](https://community.victronenergy.com/questions/299406/node-red-serial-comms-issue-arduino-rpi.html?childToView=301239#answer-301239) on the Victron / VenusOS forum with my findings. Thanks @edje11 for your help. it made me delve deeper into the usb itself not working rather than the serial interface which helped me find a GitHub post which fixed it.  
Thanks again!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 July 2024 21:01 UTC](https://discourse.nodered.org/t/issue-communicating-over-serial-with-arduino/88895/8 "2024-07-10T21:01:04Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
