
Steve Thurston
Australia
Asked

Connecting EZ-B Or Iotiny To Arduino
Are there any Tutorials on how to connect EZ-B or IoTiny to Arduino uno or Mega ?
I'm not finding any results that make sense to me on Google or on Synthiam forum.
Thanks Steve
Related Hardware EZ-B v4
Are you asking how to connect them physically? What do you want to do? I mean what data do you want to send and or receive? More info is needed.... FYI the ioTiny does not have a uart port (it can only send data "soft" serially) so communication with the arduino will be one way only...
Hi Dunning-Kruger
I'm only new to Arduino and EZ-Robot, so my understanding on how they work on their own let alone together is very limited ATM :=)
I did see the Iotiny has a sig and EZ-B has RX/TX, I thought that in itself was going to be a push to EZ-B.
Project is an R2D2 type robot, that has a head that can turn right around.
Controls via PS4 Gamepad, Android app, voice and face recog.
Head will be running IoTiny or EZ-B with LEDs, Servos, Sensors, Speaker and Camera
Body running an Arduino Uno or Mega running LEDs, Servos, and Motors somehow.
My thinking is wifi from PC running the ARC/ARC software to IoTiny or EZ-B then that talking back and forth to the Uno or Mega, or am I supposed to keep the 2 separate and have 2 wifi connections, 1 to EZ-B and 1 to Arduino, is that the reason for the 4 connections in ARC?
Thanks Steve
When we talked before, you were going to have a laptop in the robot. Has that detail changed? Or maybe i'm confusing you with another user. If i am, will your robot have a laptop inside of it?
Hi DJ
Mine was always going to be a mini pc outside (wireless), but there is a guy in droids forum that tried putting it inside the bot. It didnt work, he said it killed the batteries to quick.
He went with some other system Ive never heard of.
My unit is too small for even the nuc inside.
My droid will never leave the livingroom.
Okay - so you'll control it over WiFi.
Then my recommendation is to have either an EZB or IoTiny inside the droid and connect to it remotely via wifi from a PC. The arduino can be programmed to move the motors and monitor the limit switches.
Your question is, how to have the IoTiny or EZ-B send instructions to the Arduino.
The answer is via hardware UART on the EZ-B v4, or digital pin software serial on the IoTiny. Never use software UART on the EZ-B v4 unless you really really really must, because it's not reliable on the EZ-B v4 for some reason.
Anyway, your arduino will simply have a piece of code that listens for commands being sent. First, you have to make a list of what those commands will be, and what byte is being sent to trigger the command. This is how you create a protocol
0x01 means move thing #1 up 0x02 means move thing #1 down 0x03 means move thing #2 up .... etc
I forget my arduino code but on the Arduino will be something like...
And to send the data to the arduino from the ezb which triggers the commands ...
on Iotiny...
on EZB v4 with hardware uart #0...
first we must initialize the UART somewhere. Do this in the connection control, so it initializes when the ezb connects
Now, anywhere in code in other controls, you can send the instructions..
Some other links for assistance...
2) https://synthiam.com/Community/Questions/Uart-Connecting-To-An-Arduino-3016
Have you considered a Latte Panda? Can't get much smaller than that.... Anyway the newer models are pretty pricey but the original ones have no problem (at least the older ARC builds anyway) running arc..... FYI.... I have a 4g gen 1 model but have not tried it with ARC yet....
Oh yes - the lattepanda is pretty amazing. I support that decision!!
I can say ARC would run faster than ARC on a lattepanada, because of the efficiency updates