Problem connecting Arduino with USB-B adapter

Hello,

The circuit and code of my film-paper-processor project Prototype is almost concluded. The 1st version of the code works as expected thanks to the help of many of you (I will share the code in github when finished, perhaps is useful for someone like me). This circuit is mounted in a frame as you can see picture below:

Now I have a trivial problem. How to create a permanent external USB port (out of the frame using the blue USB cable connected to the A-Uno). In other words, is it possible to make an extension as depicted in OPTION II that works?

The development Option I works (see picture). The Arduino IDE detects the port and then I can update the code. For the operation, however, this option is not practical.

For this reason I built the Option II using a "Cliff XLR Adaptor USB 2.0A Female to USB 2.0A Adapter Installation CP30208N CP30208N". The adaptor is new, BUT, unfortunately, this option does not work. The Arduino IDE Output indicates:

...
Using Port                    : /dev/cu.usbmodem11101
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "/dev/cu.usbmodem11101": No such file or directory

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

I tested with two USB cables (one of the the Arduino USB Type-C Cable 2-in1). In both cases, I get the same error.

The only alternative is that the adapter (polarity ?) is not working. To test this hypothesis, I plugged the Arduino USB Type-C Cable to the adapter and then to a flash stick. It does not connect to the Mac. The adapter is the problem. The question is why?

Could someone please let me know why this happen and how to solve it? Or should buy another kind of adapter? Or is this component out of order?

I hope someone can provide a hint.

Thanks

L

Do you need this to reprogram the Arduino?

With a second Arduino you can use the ISCP port

yes, I need this for updating the arduino, if I need to change some parameters, or if I improve the code, do that I do not need to disassemble the front of the apparatus

With a custom-made cable (easy to make, you need a 10µF capacitor) and a second Arduino you do not need a USB port.

Mr. Gammon comes again to the rescue: https://www.gammon.com.au/bootloader

I don't get it. Perhaps I need to reformulate my problem. I am trying to built an extension of the blue USB cable that is connected to the A-Uno. The issue is how to make an extension to a USB cable. The one I make does work.

With your 'Option II' you are using a cable USB_A-plug to USB_A-plug between your module and the PC ?
Are those "null" (like "null modem") ?
Better get the ohmmeter and beep it out.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.