Asked — Edited

Usb To Serial Connection Camera Option

With the option to use the EZB in serial to USB you lose the option for the camera since the connections use the camera port. Is it possible to add another EZB like the IO Tiny to connect the camera too, then hard wire both EZBs together? I can't use Wi-Fi on either EZB.

There is a very specific reason I want to use the EZB camera and not a usb webcam, but i still need the EZB wired to the computer.

Edit: Please visit post #37 for the update on the usb/serial cable I used, new wiring diagram and notes


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

PRO
USA
#25  

Here is my epic fail today...maybe you can shed some light.

Here is how I have my camera, EZB and cable connected. I tried with and without the CTS and RTS connected :

User-inserted image

Here is how the com port is set up for the cable and in the camera connection:

User-inserted image

I get this error:

Camera Initialized: COM22:4000000 @ 320x240 UART Camera Error: System.TimeoutException: The operation has timed out. at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count, Int32 timeout) at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count) at System.IO.Ports.SerialPort.Read(Byte[] buffer, Int32 offset, Int32 count) at EZ_B.UARTVideo.MjorDt1ipt(Int32 , Object ) Camera Disabled

PRO
Synthiam
#26  

The ezrobot camera uses 3,333,333 baud. There is no point to enter that though, because the default is 3,333,333 if the baudrate is not entered.

Simply enter COM22 in the address, leave out the baudrate.

You cannot enter a baud rate that is not the correct baudrate.

Unless you have a camera specified to use 4,000,000 baud rate, you cannot use that baud rate.

The settings window of the com device has nothing to do with the baud rate that the application is using. Ignore the settings window for the com device. Close it down and never open it again. The only software that you need is ARC.

PRO
USA
#27  

Removed the baud rate and get the same:

Camera Initialized: com22 @ 320x240 UART Camera Error: System.TimeoutException: The operation has timed out. at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count, Int32 timeout) at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count) at System.IO.Ports.SerialPort.Read(Byte[] buffer, Int32 offset, Int32 count) at EZ_B.UARTVideo.MjorDt1ipt(Int32 , Object ) Camera Disabled

Perhaps this cable isn't going to be compatible.

PRO
USA
#28  

I see you have a green wire going to the CTS. its going to camera to...?

User-inserted image

PRO
Synthiam
#29  

Do not connect any RTS or CTS - it's not needed, as mentioned above. For safe measure, you could connect the camera's RTS line to GND.

Please connect TX to RX Please connect RX to TX

I would recommend trying your camera with the ez-b to ensure it still works after providing it 5v. It may be damaged.

Next, you can specify the baud rate of 3,333,333 in the Serial Terminal (PC) to verify that data is indeed being transmitted to the computer over the USB UART cable.

PRO
USA
#30  

OK so tx to rx and rx to tx are connected correctly, no RTC or CTS connected. Terminal shows a connection at 3,333,333. I changed computers and cameras to make sure com ports working and camera working. I'm now on com 3:

User-inserted image

On New computer and camera I get this error:

Camera Initialized: COM3 @ 320x240 UART Camera Error: System.UnauthorizedAccessException: Access to the port 'com3' is denied. at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str) at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace) at System.IO.Ports.SerialPort.Open() at EZ_B.UARTVideo.MjorDt1ipt(Int32 , Object ) Camera Disabled

PRO
Synthiam
#31  

Denied because you're still connected to the camera using the terminal program. You can only access a COM port with one program at a time.

PRO
USA
#32  

.....well never trust a cable guide from china. The online image of the PL2023 wiring is incorrect. The TX and RX are mismarked. At the last minute I decided to try changing the TX and RX wires and Bingo I have a steady and fast frame rate!

Thank you for hanging in there with me.