# Raspberry pi arduino connection speed problem

**URL:** <https://discourse.nodered.org/t/raspberry-pi-arduino-connection-speed-problem/26817>\
**Category:** Hardware\
**Created:** [17 May 2020 18:39 UTC](https://discourse.nodered.org/t/raspberry-pi-arduino-connection-speed-problem/26817 "2020-05-17T18:39:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![feconkar](https://avatars.discourse-cdn.com/v4/letter/f/13edae/32.png) [@feconkar](https://discourse.nodered.org/u/feconkar)\
**Post date:** [17 May 2020 18:39 UTC](https://discourse.nodered.org/t/raspberry-pi-arduino-connection-speed-problem/26817/1 "2020-05-17T18:39:26Z")

</div>

hi

I am trying to read a potentiometer data over firmata with node-red. potentiometer connects to analog pin of arduino and arduino is connect to raspberry pi over usb.

Program runs good and i can get the data from arduino but connection lost very often. Connection establish after 1 second but it cuts off so often.

What can i do to correct this?

The transfer rate is so high and i don't need a speed like this. Can i decrease the connection speed? Do i adjust the firmata for connection speed?

Thanks

---

<div class="post-metadata">

**Author:** ![Brew](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brew/32/19776_2.png) [@Brew](https://discourse.nodered.org/u/Brew)\
**Post date:** [18 May 2020 15:26 UTC](https://discourse.nodered.org/t/raspberry-pi-arduino-connection-speed-problem/26817/2 "2020-05-18T15:26:16Z")

</div>

Hi there I've not tried your setup but I would say yes, drop the speed, you're not sending a lot of data so slow it right down see if it's more stable.

---

<div class="post-metadata">

**Author:** ![feconkar](https://avatars.discourse-cdn.com/v4/letter/f/13edae/32.png) [@feconkar](https://discourse.nodered.org/u/feconkar)\
**Post date:** [20 May 2020 06:38 UTC](https://discourse.nodered.org/t/raspberry-pi-arduino-connection-speed-problem/26817/3 "2020-05-20T06:38:37Z")

</div>

thanks alot, i have learned how to change baud rate at firmata

"Firmata.begin(57600);"

editing this will give me a lower baud rate,

but how can i change it in node-red site?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2020 08:32 UTC](https://discourse.nodered.org/t/raspberry-pi-arduino-connection-speed-problem/26817/4 "2020-05-20T08:32:17Z")

</div>

well what are you using in node-red to read the data? i.e. what node (full name please node-red-contrib-xxxx?)  
have you looked at that node's options?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [20 May 2020 09:04 UTC](https://discourse.nodered.org/t/raspberry-pi-arduino-connection-speed-problem/26817/5 "2020-05-20T09:04:57Z")

</div>

the Firmata node expects the default firmata install on the Arduino so no you can't easily change the Node-RED end.

---

<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:** [19 July 2020 09:04 UTC](https://discourse.nodered.org/t/raspberry-pi-arduino-connection-speed-problem/26817/6 "2020-07-19T09:04:57Z")

</div>

Closed on 19 July 2020 09:04 UTC

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