ARC Pro

Upgrade to ARC Pro

With Synthiam ARC Pro, you're not just programming a robot; you're shaping the future of automation, one innovative idea at a time.

PRO
Canada
#1  

You can use the Arduino Uno board with ARC to control servos and other components. First, you will need to upload the EZB firmware to the Arduino Uno board. You can find the tutorial to program the EZB firmware on the Synthiam website. Once you have uploaded the firmware, you can connect the Arduino Uno board to your computer using a USB cable and open ARC.

In ARC, you can use the servo Control skill to control your servos. You can also use other skills and controls to program your robot, such as the Movement Panel, Scripting, and Auto Position.

If you need more specific help with your project, please provide more details about what you are trying to accomplish and what components you are using.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
#2   — Edited

@Athena Could this be done over wifi with the use of an ESP8266 Module?

PRO
Synthiam
#3  

FYI, Athena won't respond if you edit the post and add her name. Otherwise, because this is a forum and each post is chronologically ordered, there would be no way for her to edit and replace her previous statements. So you'd have to ask again if you missed tagging her the first time.

But I can answer this. You can use an ESP32 or ESP8266 as a UART to WIFI bridge. Everything that comes over the wifi TCP socket would be forwarded to the UART for the Arduino connection - and vice versa in reverse. There are many open-source projects for making the ESP32 or ESP8266 in wifi uart bridge mode.

Once you get a wifi uart bridge on your device, configure it to listen on port 23, which is what ARC uses by default. Then, you can connect the UART from the ESP to the Arduino Tx0 and Rx0 pins. Put the regular EZB firmware on the arduino and voila

#4   — Edited

Call me a noob, but how would i go about implementing this. im using an arduino uno i had laying around with an esp32 cam. Seems to connect and then promptly disconnect from what i can see in the serial monitor of the arduiono ide. Thanks for all the help

#5  

So i got everything hooked up here with the esp32cam and the arduino uno. Loaded up your firmware from this page https://synthiam.com/Firmware/ESP32-Cam-Arduino-Relay-XFXISYJTEYQ and got the connection to the wifi showing in the serial as well as the ip. But when i try to access from ARC it shows the "Client ezb connected from 0.0.255.0" and then promptly shows "EZB Client disconnected Waiting for ezb client..."

PRO
Synthiam
#6   — Edited

Connect the Arduino TX0 to the ESP32Cam's RX port and the Arduino's RX0 to the ESP32Cam's TX port.

Make sure you have installed the appropriate ezb firmware on the uno as well

#7  

User-inserted image

This tutorial all worked well with the exception that i cannot for the life of me get this uno to connect to arc. Baud rates are set. Boxes are checked. Even shows on the board some activity quickly but something is not quite right here. I followed this tutorial to the tee

#8  

DJ Sures, while i appreciate the response, i did follow the instructions here. All went well with the exception that when i attempt to connect from ARC it seems to connect for a super brief moment and then disconnect as you can see in the serial monitor in the ide. So there is in fact a connection being made but it is super quick and promptly disconnects

User-inserted image

#9  

connects and disconnects 5 seconds later every time

PRO
Synthiam
#10  

I moved all your comments into this thread to keep things organized. It was making me dizzy:)

It connects and disconnects because the ESP32 RELAY firmware is a relay. It acts as a passthrough to the connected arduino. The ESP32 relay firmware on its own will not do anything with a connection from ARC. The relay will forward and receive all data from the wifi to the RX and TX ports of the ESP32

So you'll need the Arduino UNO firmware on the Arduino. Then connect the arduino's TX0 to the ESP32's RX0. And then connect the arduino's RX0 to the esp32's TX0

Once the ESP32 and Arduino are connected, you can use ARC to connect to the ESP32 relay.

PRO
Synthiam
#11  

I’m on a long drive and it’s the weekend so the office is closed for anyone else to respond. But I’ll draw a quick diagram tonight or tomrorow for you that might clear things up

#12  

Dj Sures, you're the man. I appreciate that. I do have the esp connected the way your describing I believe with the TX and rx pins as well as the 5v and ground pins. The first thing I did was compile and load the ezb firmware onto the uno.. then I hooked up esp32 and flashed the corresponding esp32 with arduino relay firmware. Before I flashed the esp32 firmware tho I was able to connect to the uno thru the com port. I'm missing something here..

#13  

I have again verified that with just the uno connected via serial cable ARC will connect via COM port as an ez-b. Once i connect the ESP32 and attempt connection via wifi it will not connect. Again, if i view the serial monitor in ide i can see the connecting and disconnecting from ez-b client but there is seemingly no acknowledgement of the ezb uno board.

User-inserted image

User-inserted image

#14  

In looking thru the EZ-B Uno firmware i see that the primary communication interface defined as : serial. Could this be causing an issue? Or not because it should effectively identify the communication thru those terminals AS serial?

User-inserted image

PRO
Synthiam
#15   — Edited

Serial is the Serial0 which is the tx0 and rx0 ports - so that is correct. Do not change that

My internet isn't turned on yet so I have to use my phone. In your photo, it looks like the RX and TX lines are connected incorrectly. It looks as if you have TX0 of the Arduino connected to TX0 of the ESP32.

Connect the arduino's TX0 to the ESP32's RX0. And then connect the arduino's RX0 to the esp32's TX0

Also, check the esp32 firmware to make sure the baudrate matches the arduino, which is 57600. That’s something I’m unsure what value is set on the esp32

Again, ARC is notconnecting to anything. It is attempting to make a connection through the ESP32. The ESP32 is unable to relay data to the Arduino. Therefore, ARC disconnects because it does not receive any data. The ESP32 is not dropping the connection. ARC is dropping the connection because no data is coming through the ESP32 from the Arduino. I wrote more detail about this in a previous response you want to scroll up and reread. Lots to type on a phone screen haha

#16  

The pins on this particular esp32 are not marked with the same nomenclature but I did swap those connections in hopes that would solve it. It did not. I did change the line in the firmware that sets baud for communication to arduino from 115200 to 57600. This also did not connect. Seems all functions with the relay connection from ARC but there is absolutely no communication to the uno after that and so it disconnects as you've explained multiple times.

PRO
Synthiam
#17   — Edited

Okay that’s good - the arduino connected at 57600 matched between both devices. Good start

ensuring the tx and rx are connected correctly is also mandatory. If you’re unsure of the pinouts, find a reliable source to check. The tx must be connected to rx. The rx must be connected to tx. I sound like a broken record but it’s absolutely imperative:)

lastly, you cannot power the Arduino off usb with the connection to the esp32. If you power it off usb, you will be using the built in serial for debugging and not ARC connection through the esp32