Thumbnail

Serial Toolbox

by Avatarptp

Provides two different features: An EZB Uart Serial Parser, SerialTcpBridge (Connect EZ-Robot Camera via USB)

Requires ARC v3 (Updated 4/30/2022)

How to add the Serial Toolbox robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Misc category tab.
  5. Press the Serial Toolbox icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the Serial Toolbox robot skill.

How to use the Serial Toolbox robot skill

Provides two different features: An EZB Uart Serial Parser, SerialTcpBridge (Connect EZ-Robot Camera via USB)

Version 2

New Feature: EZB Uart Serial Parser

User-inserted image

Results:

User-inserted image

//TODO: Improve details

This plugin requires:

  1. Extra hardware

1.1) Teensy 3.2 Micro-controller

https://www.pjrc.com/store/teensy32.html

http://www.robotshop.com/en/teensy-32-usb-microcontroller-development-board.html

1.2) JST 2.0 PH 6-Pin Male Connector

https://www.digikey.com/product-detail/en/jst-sales-america-inc/B6B-PH-K-S(LF)(SN)/455-1708-ND/926615

1.3 ) JST 2.0 PH 6-Pin Female Connector with cable (Optional)

  1. Extra Knowledge: One time only, needed to program the micro-controller

2.1) Arduino IDE 1.6 or higher

https://www.arduino.cc/en/Main/Software

2.2) Teensy (Micro-Controller) driver & add-on for Arduino IDE

https://www.pjrc.com/teensy/loader_win10.html

  1. Target Audience

DIY users with hardware experience.

Teensy Setup (One time only)

Firmware code:


void setup() {
  Serial.begin(3333333);

  Serial1.begin(3333333);
  Serial1.attachRts(2);
  Serial1.attachCts(18);
}

void loop() {
  if (Serial1.available() > 0) {
    byte b = Serial1.read();
    Serial.write(b);
  }
  
  while (Serial.available() > 0) 
  {
    byte b = Serial.read();
    Serial1.write(b);
  }
}

Wiring:

User-inserted image

How to use

  1. Download and Install this plugin

  2. Connect Teensy usb port (MicroB) to your Desktop/Mini PC usb port

  3. Start ARC

add the plugin to your project:

User-inserted image

configure the usb serial port (teensy):

User-inserted image

connect/disconnect:

User-inserted image

setup the camera url:

User-inserted image

Notes: 2424 is the default TCP Port The url port must be equal to the plugin Configuration's Local port.

Ez-Script: connects the usb camera and then starts the camera control.

User-inserted image

Disclaimer

The information contained here is for general information purposes only. The information is provided by PTP (Forum Member) and while I try to keep the information up to date and correct, I make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained here for any purpose. Any reliance you place on such information is therefore strictly at your own risk. In no event will we be liable for any loss or damage including without limitation, indirect or consequential loss or damage.


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

#1  

@DJ,

is there any way you could make this plugin work with ARC?  Currently ut does not work with ARC.

Thanks in advance.

PRO
Synthiam
#2  

The camera device supports the cameras over usb com ports already. Why would you need this robot skill?

PRO
Synthiam
#4   — Edited

You want to use the camera port on the EZ-Robot EZ-B v4/2 with a camera?

  1. Plug the camera connector into the camera port on the EZ-Robot EZ-B v4.

  2. Load the Camera Device robot skill

  3. Select the IP Address of the EZ-B v4

  4. Press the START button

More information on the camera device here: https://synthiam.com/Support/Skills/Camera/Camera-Device?id=16120

#5  

I my have not explained myself.  I want to use the camera port for a usb  connected to my pc.  So I don’t have to use wifi.  I have a ezb camera in my InMoov’s eye and need it to connect to a USB port too.

Hope this makes sense.  Thanks for answering my dumb question.

#7  

I know how to connect a Ezb v 4 to my pc via usb.  My question is how can I connect my Ezb camera that was connected to my ezb 4 camera port that I’m now using a usb connected via my pc.

I used to be able to use a usb connected to my ezb camera before the software became ARC.  This is why I was hoping you could update the still IOIOI.

or can I use the setup the will was using usb to serial.

thank you

#8  

Thank you for updating to v3.  You the man DJ!

#9  

To PTP,  its been a long while since we seen you on Synthiam.   I want to again thank you for all your time making this Skill and helping me get the Teensy 3.2 working for me.  I really appreciate it! Hope to see you back. That said, I only had one Teensy 3.2 and did not know how to program that chip..  Anyway I found a link posted by Fxrtst which I used and got my other EZB camera working,  Link below and a picture how to set it up and the USB cable part needed... I believe you could us an Arduino mega also,. but I have not tried that yet.

https://synthiam.com/Community/Questions/Usb-To-Serial-Connection-Camera-Option-3975/comments

User-inserted image

@DJ.  If you think I should not have posted this please delete or move. PS. @Fxrtst thank you for the information.

#11  

@DJ.  The other camera is an EZB Camera.  Maybe I should been Clearer as to type of camera I was referring.

Thanks

#13  

Thanks DJ. I guess I’m always doing it the hard way.;)

PRO
Synthiam
#14  

The uart USB adapter is required for a com connection. I’m not confident that it’ll work though because that cameras wasn’t designed for a uart usb connection. Only one person has had success and it wasn’t reliable.