ARC Pro

Upgrade to ARC Pro

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

#1   — Edited

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...

#2   — Edited

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

PRO
Synthiam
#3   — Edited

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?

#4  

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.

PRO
Synthiam
#5  

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...



while (Serial.Available) {

  byte cmd = Serial.ReadByte();

  if (cmd == 0x01) {

    // Move thing #1 up
   
  } else if (cmd == 0x02) {

    // Move thing #1 down

  } else if (cmd == 0x03) {

     // Move thing #2 up
  } 
}

And to send the data to the arduino from the ezb which triggers the commands ...

on Iotiny...


// instruct arduino to move thing #1 up
UART.sendSerial(d0, 9600, 0x01); 

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


// Init uart #0 for 9600 to sent to arduino
UART.initHardwareUart(0, 9600);

Now, anywhere in code in other controls, you can send the instructions..


// Move thing #1 up
UART.hardwareUartWrite(0, 0x01);

#7  

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....

PRO
Synthiam
#8   — Edited

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