Questions tagged [usb]

Widely used standard for connecting computers to other devices, such as printers and keyboards.

USB (Universal Serial Bus) can be used for connecting a wide range of devices to a host computer. On Arduino boards, a USB connection is commonly used for providing a power supply, loading programs (sketches) into Flash memory, and for sending/receiving other data via serial.

In some cases, such as the Arduino Micro, the microcontroller can be programmed to mimic a USB input device such as a mouse or keyboard.

544 questions
11
votes
2 answers

Can the Arduino interface with USB devices without the USB host shield?

I'm looking to connect various USB-devices to an Arduino Uno (specifically, a gamepad and a webcam, but I'm interested in the general case). Is this possible without using the USB host shield, since the Uno has a USB port and USB-to-serial…
Zenthirum
  • 113
  • 1
  • 1
  • 5
9
votes
2 answers

What's the smallest (cheap) USB Host solution for Arduino?

I'm building a project that will connect to users' phones (Android at first, but iPhone too, if there's enough interest) via USB. Of course, this means that I need a USB host in the project. The total size of the device has to be about the size of…
2
votes
0 answers

Can the USB interface IC be identified via code alone?

I know that the master controller can be found in verbose upload output in IDE, but I have a few boards from different manufacturers and my smartphone camera is apparently insufficient to take a legible picture. Is there something I can do from the…
2
votes
3 answers

Why must I detach the Arduino from the computer when making adjustment to the circuit?

I am new to Arduino and am reading Learn Electronics with Arduino: An Illustrated Beginner's Guide to Physical Computing. On page 118, it says: Remember, whenever you make adjustments to a circuit, your Arduino should not be attached to your…
dayuloli
  • 123
  • 4
2
votes
0 answers

arduino usb host shield hard drive

Greeting to all, i have a mega2560( NOT AN ADK ), and usb host shield 2.0, and the following a) 1 pendrive( 8GB) formatted as fat32 b) 1 300GB usb hard drive formatted as fat32 c) 1 1TB usb hard drive also formatted as fat32 i know, there is a limit…
surv
  • 21
  • 1
2
votes
2 answers

Can I make a USB Device with only data output

This is about how USB ports/devices work Lets say i have a USB port on my computer If I have an arduino board or something similar, am I able to connect output to Data+ and sort of make my own USB keyboard. What I aim to achieve is send without…
Friedpanseller
  • 123
  • 1
  • 4
2
votes
1 answer

Change select pin of USB Host library

TL;DR With regards to the USB host library: Which is the correct file to modify the Arduino pin used for the USB Host slave select (SS) line? I would like to add USB host functionality, to a particular Arduino setup, whilst, also, being able to…
Greenonline
  • 2,938
  • 7
  • 32
  • 48
2
votes
0 answers

Split arduino run mode depending on active USB connection

Ok, so i have a unit that i want to add information to the EEPROM, using the USB port, such as SSID for wifi shields. Then i want to disconnect the USB cable, plugin a battery and then it should run its normal loop. So something like: IF usb-cable …
Magic-Mouse
  • 604
  • 7
  • 23
2
votes
1 answer

How to change the usb name of Atmel 32u4?

I want to change my Arduino Leonardo's name that Windows shows me when it's plugged in. I know that i have to change its firmware to change the name but I cant find firmware for it on the Internet. On Arduino Mega, I have changed it with a…
cracken
2
votes
3 answers

How to make an Arduino USB programming circuit?

I am designing a PCB in which I am using the MCU used in Arduino UNO which is Atmega328P and some other components as per my project requirements. I have almost designed the circuit but I am confused with the USB programming part. I want my MCU to…
Aircraft
  • 293
  • 1
  • 9
1
vote
1 answer

Getting a strange symbol when pressing buttons in a USB keyboard connected to the Arduino GIGA R1

I am using the following code: #include "USBHostGiga.h" //REDIRECT_STDOUT_TO(Serial) Keyboard keyb; HostSerial ser; void setup() { // put your setup code here, to run once: Serial.begin(115200); while (!Serial); pinMode(PA_15, OUTPUT); …
John
  • 13
  • 2
1
vote
1 answer

Problem with my usb plug

First of all, we connected our usb plug to arduino board (starter kit). After that, we completed Project 1 successfully (circuit with led and switch.) We tried unplug the usb cable, but it was very difficult, we had to pull very hard, but we…
zch
  • 11
  • 2
1
vote
0 answers

Arduino GPIB control

I want to control a scientific instrument with an Arduino through GPIB. I have a USB-GPIB adapter, so I would want to do it through the USB. There are tutorials on the Internet on how to connect Arduino to a GPIB instrument through pins, but I did…
Mr_Tusk
  • 11
  • 1
1
vote
1 answer

Why does Arduino use USB A-B plug, instead of A to micro USB plug?

I understand that A-B plug used to be common but they could have switched to micro without issues. My questions: Why does Arduino use USB A-B plug, instead of A to micro USB plug? What are the challenged Arduino would be facing if they switched to…
Phil
  • 455
  • 2
  • 4
  • 12
1
vote
0 answers

Connecting STM32F103C through USB as well as external power supply

What will happen if I connect a STM32F103C board to a USB as well as an external power supply? Will it work? Does the STM32 decide which power source to consider?
1
2 3