# Communication with the Arduino Robot

**URL:** <https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410>\
**Category:** General\
**Created:** [30 January 2019 22:33 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410 "2019-01-30T22:33:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sin/32/6104_2.png) [@Sin](https://discourse.nodered.org/u/Sin)\
**Post date:** [30 January 2019 22:33 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410/1 "2019-01-30T22:33:43Z")

</div>

Hello everyone. I'm trying to use the Arduino node from the Node-RED to communicate with the Arduino Robot.  
Arduino Robot: [https://www.arduino.cc/en/Guide/Robot](https://www.arduino.cc/en/Guide/Robot)  
I'm trying to send some signals from the Node-RED to the Arduino Robot. Does anyone know how to do this as the Arduino Robot is different with the Arduino Uno or Arduino Mega. Thank you.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [31 January 2019 08:40 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410/2 "2019-01-31T08:40:58Z")

</div>

Theres no need to open a second thread for the same problem.

In the thread you started last week, you were going to try a suggest @Colin made.  
You haven't come back to say if it worked or not.

> [@Load firmata onto Arduino Robot](https://discourse.nodered.org/t/load-firmata-onto-arduino-robot/7253/14):
>
> Hi Colin. I'll try your method to see whether it can success or not. Thanks for your helping.

With arduino, if you haven't got wifi or a radio on the arduino you have the options of using Firmata or a standard serial connection.

---

<div class="post-metadata">

**Author:** ![Sin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sin/32/6104_2.png) [@Sin](https://discourse.nodered.org/u/Sin)\
**Post date:** [31 January 2019 17:18 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410/3 "2019-01-31T17:18:56Z")

</div>

> [@ukmoose](#):
>
> In the thread you started last week, you were going to try a suggest @Colin made.  
> You haven't come back to say if it worked or not.

Sorry for not uploading the result of the method. BTW, I didn't try that method because I found another way that much simpler to solve the problem. Firstly, the uploading firmata problem is solved by choosing the **Arduino Leonardo** as the board before upload the Standard Firmata sketch. This is because the Arduino has not continued development on the Arduino Robot Control definition since it's been retired for a long time and the **Arduino Leonardo** has the same functionality as **Arduino Robot Control**. Secondly, my **node** installation is broken. Thus, I removed the **node** from my PC and reinstall the **node.js** and **node-red**.

> [@ukmoose](#):
>
> Theres no need to open a second thread for the same problem.

Same problem? I thought the thread I started last week is the problem of upload the sketch onto Arduino Robot? I've successfully uploaded the sketch and now I'm trying to send the signals from the Node-RED to my Arduino Robot with the Arduino nodes in the Node-RED.

> [@ukmoose](#):
>
> With arduino, if you haven't got wifi or a radio on the arduino you have the options of using Firmata or a standard serial connection.

The Arduino Robot won't function with the cable connection and only function with the batteries (without cable connection). Is the Firmata can be used to send the signals wirelessly? Because I will need to send the live signals as well after that.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [31 January 2019 17:49 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410/4 "2019-01-31T17:49:19Z")

</div>

> [@Sin](#):
>
> The Arduino Robot won't function with the cable connection and only function with the batteries (without cable connection). Is the Firmata can be used to send the signals wirelessly?

What wireless capabilities does your arduino Robot have?

---

<div class="post-metadata">

**Author:** ![Sin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sin/32/6104_2.png) [@Sin](https://discourse.nodered.org/u/Sin)\
**Post date:** [31 January 2019 18:05 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410/5 "2019-01-31T18:05:41Z")

</div>

> [@ukmoose](#):
>
> What wireless capabilities does your arduino Robot have?

The wireless capabilities you mean is come along with the Arduino Robot or I need to buy the extra components?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [31 January 2019 18:13 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410/6 "2019-01-31T18:13:32Z")

</div>

If you want to connect to your robot wirelessly what are you going to use?

Depending on what you have chosen depends on how easy it would be to communicate with node-RED.  
Also what do you want to communicate, you say signals but what does that mean? Do you also want to send signals back? If so what type of signals?

---

<div class="post-metadata">

**Author:** ![Sin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sin/32/6104_2.png) [@Sin](https://discourse.nodered.org/u/Sin)\
**Post date:** [31 January 2019 18:17 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410/7 "2019-01-31T18:17:59Z")

</div>

> [@ukmoose](#):
>
> If you want to connect to your robot wirelessly what are you going to use?

I think I probably will use the wifi or bluetooth as the wireless connection.

> [@ukmoose](#):
>
> Depending on what you have chosen depends on how easy it would be to communicate with node-RED.

Which one is easier for communication with node-RED?

> [@ukmoose](#):
>
> Also what do you want to communicate, you say signals but what does that mean? Do you also want to send signals back? If so what type of signals?

My project is using the Emotiv Epoc+ headset to detect the EEG signals (brain signals) and send it to the node-RED. Then, the EEG signals will be sent to the Arduino Robot wirelessly to control the motion of the robot. e.g. move left or right I don't need to send the signals back to node-RED. Just send to the robot will do from the node-RED.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/d351573ec240312220d0e17af82752c59058732d.jpeg)

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [31 January 2019 18:36 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410/8 "2019-01-31T18:36:59Z")

</div>

Then personally I would use MQTT over wifi to communicate and forget about the arduino/firmata nodes.

There are MQTT libraries for the arduino and MQTT nodes for Node-RED.

Good Luck!

---

<div class="post-metadata">

**Author:** ![Sin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sin/32/6104_2.png) [@Sin](https://discourse.nodered.org/u/Sin)\
**Post date:** [31 January 2019 19:04 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410/9 "2019-01-31T19:04:05Z")

</div>

> [@ukmoose](#):
>
> Then personally I would use MQTT over wifi to communicate and forget about the arduino/firmata nodes.
> 
> There are MQTT libraries for the arduino and MQTT nodes for Node-RED.

Thanks for your advice. I'll go to check the information about the MQTT.
