I have a digital camera with a USB port for image dowload from the camera SD card.

I will like to be able to capture this image files store in the camera SD card using the Arduino TX TR lines (serial) then transmit this image file to the computer from the USB connection from Arduino to Computer.

The reason need this scenario responds to that the camera dissables the shutter when sensing a USB cable conneted to computer. I do not knwo why this happens but I suspect is an underdeveloped feature of the camera.

Basically, I will like to use Arduino as a USB hub for external devices but at the same time to power down the line when no longer need the device using the Arduino TX and TX line . This will give tha camera a sense that the camera is been unplugged.


simulate this circuit – Schematic created using CircuitLab


You cannot. The TX and RX lines are UART. UART is not USB. USB is a very complicated protocol, and you need a proper understanding of how it works. It's not a simple serial protocol like UART.

Add to that the fact that the Arduino can in no way handle the amount of data involved in video, and you're already on a non-starter.

  • Having this said, can you suggest a way to use Arduino to cut off the V data line transmition from the computer to the camera? I need to fake the same as unplugging the USB. Apr 22 '19 at 21:54
  • What is the "V" transmission line? USB has D+ and D-, and they are both required all the time for communication.
    – Majenko
    Apr 22 '19 at 21:56
  • 1
    @JoseEnriqueCalderon The closest you could possibly get would be to have the Arduino control a relay which disconnects both the D+ and D- lines from your computer, performing the same task as physically unplugging the camera. That means no communication in either direction.
    – Majenko
    Apr 22 '19 at 22:13
  • 1
    If you want to read data from USB so connect an Arduino to an USB port, you must use an Arduino Leonardo. Arduinos don't have a "full USB", except the Leonardo.
    – Peter
    Apr 22 '19 at 23:09
  • @peter , Please, I will like you to post this as an answear and in any way elaborate a simple sketch or diagram. Thanks Apr 23 '19 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.