Questions tagged [usb]

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

37
votes
11answers
130k views

Mac OSX Yosemite no serial ports showing for Uno R3

I have a MacBook Pro running OS X Yosemite (10.10.3). I connected my Arduino UNO R3 to my computer for the first time after the Yosemite upgrade - it worked fine before this! When I opened the ...
16
votes
4answers
65k views

First time set up- permission denied to usb port- ubuntu 14.04

I just plugged my arduino in and the light is on, but the blink test failed to upload. here is my error: Arduino: 1.6.7 (Linux), Board: "Arduino/Genuino Uno" Sketch uses 1,030 bytes (3%) of program ...
15
votes
1answer
20k views

Arduino Nano no serial port for MacBook Air 2013

Problem I have an Arduino Nano connected via a USB cable (Type A to Mini Type B) to my MacBook Air (Mid 2013 Model). The PWR LED is on while the arduino is connected. Opening the Arduino software, ...
10
votes
1answer
2k views

Update Dynamically Tkinter Widget Scale from Arduino Ports using python and firmata

I'm having trouble trying to get Arduino digital ports values and set these values into a Python Tkinter Widget Scale. I'm using Python and Arduino with Firmata. I'm able to access my arduino board ...
7
votes
4answers
10k views

ATtiny85. How do I burn a bootloader? What is the process?

I want to use all six I/O pins of an ATtiny85, that means also using the reset pin as an I/O pin, however, I found out that if I disable the RESET pin, I can no longer program the ATtiny using an ISP ...
7
votes
2answers
20k views

Difference between /dev/ttyACM0 and /dev/ttyS0 (Arduino IDE ports under Linux)

I use the Arduino IDE to upload sketches to my Arduino Uno. My OS is Linux Ubuntu 14.04 LTS. The Arduino IDE has two ports by default for communication with the Arduino Uno: /dev/ttyACM0 /dev/ttyS0 ...
6
votes
6answers
11k views

If the USB gives 5v, how can the Arduino supply 5v to the 5v pin? (And another question)

I must not of understood something. Online, I've heard that the Arduino uses 9v typically (average), and that USB's in general supply 5v@500mA. If this is true: How can the Arduino even POWER ITSELF ...
6
votes
1answer
27k views

Arduino Nano not visible in Serial Ports (Mac OS)

I have used by Arduino countless times over the past few years and only after installing an update to Mac OS Sierra did the device stop showing up under the Serial Ports. Now only tty-bluetooth shows ...
6
votes
3answers
3k views

How to stop Arduino from drawing power through USB

I'm working on an embedded project, where I use arduinos as a "sensor shield" for RaspberryPi (I have model B). The problem is, that the RaspberryPi's USB port is not powerfull enough to drive WiFi ...
6
votes
1answer
3k views

Arduino as a real device to computer

Suppose we have a computer mouse , now when we connect it to a computer then computer understands it is a mouse which is been connected to it. Same thing happens for keyboard and many other devices. ...
5
votes
2answers
15k views

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 ...
4
votes
5answers
477 views

Arduino-based mains frequency monitor

I'm looking to put together a simple mains frequency monitor based on the Arduino platform. The mains here are 250 V @ 50 Hz, but obviously these fluctuate slightly, which is the whole point of the ...
4
votes
3answers
2k views

Protecting your computer from stupid (arduino) mistakes

I recently ran way to much voltage through my Arduino and back into my computer via the USB connection. I'm looking for a USB hub with a fuse or some sort of protection to protect my laptop from these ...
4
votes
3answers
1k views

USB and Arduino: Power Arduino, charge LiPo, and transfer data at the same time

I was hoping to design my own Arduino board for a recent project of mine, a portable project that was powered by a 3.7 LiPo battery. Most ideally, I wanted to replace the USB B port with a single USB ...
4
votes
2answers
713 views

Arduino power sources

Is it safe to connect a USB input to an Arduino (Nano) at the same time as an external regulated 5V supply to its 5V pin is connected, assuming the supplies have common grounds ? Will (I hope) the ...
4
votes
2answers
25k views

Connect Arduino via TX RX Pins to Computer's USB Port

I want to avoid using the big USB B connector to program my Arduino Mega. Since there are those RX TX Pins I thought, it would be possible, to connect my USB - Wires from my PC directly to those RX TX ...
4
votes
2answers
217 views

Avoid a Pro Micro waking up a PC?

I have an Arduino Pro Micro mimicking as a HID, connected to a PC. The PC BIOS is configured to wake from keyboard events - it is switched on by hitting a key on the regular keyboard. This is a ...
4
votes
1answer
756 views

Arduino Uno as keyboard

I am trying to make Arduino Uno to act as a keyboard. I have successfully flashed the USB-HID firmware in it using this link also and programmed it like this. uint8_t buf[8] = { 0 }; int inpin1 = 7;...
4
votes
2answers
2k views

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 ...
3
votes
3answers
779 views

Arduino Leonardo as keyboard for an iPad

I'm trying to make a Arduino Leonardo as a Keyboard for an iPad. I was successful with an Arduino UNO. However I'm hoping to use an ATmega 32U4 because of the better HID functionalities and smaller ...
3
votes
4answers
3k views

External 5V Power and USB Serial

I have a Chinese Arduino nano clone, but I don't know if it's possible to connect the Arduino to external (5v) power and have a USB serial connection ongoing. I'm trying to make a PC controlled LED ...
3
votes
3answers
10k views

Can I simply unplug the Arduino usb if serial communication is active?

So, after the sketch is uploaded, and I want to turn the Arduino off while it is running a sketch, all I have to do is unplug it. Should be safe as long as nothing is uploading. But I wonder, if I use ...
3
votes
2answers
5k views

CH340 max serial speed

With an Arduino-like board using a CH340 USB Serial chip, I'd like to send text lines as fast as possible to a Raspberry Pi through USB using the Serial.println() function. The problem is that when I ...
3
votes
1answer
2k views

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 ...
3
votes
2answers
137 views

Capacitors in DC circuits

I have a question about capacitors in DC (digital) circuits. The picture below is an edited schematic of the Arduino Uno R3. The DTR line is connected to the reset input of the Atmega328 by a 0.1uF ...
3
votes
2answers
606 views

How can a USB keyboard emulator (TrinketKeyboard) type Unicode characters?

I've got an Adafruit Trinket microcontroller set up using this USB keyboard tutorial, and it works great. I'd like to set up my project to type a shruggie ( ¯\_(ツ)_/¯ ) when I press a hardware button....
3
votes
1answer
2k views

Is it OK to Serial.print(message), when the USB cable is not connected to a host PC?

Often I put a bunch of Serial.print( F("debugging messages") ) in my Arduino sketch. Normally those messages go up a USB cable to a host PC so those messages can be seen on the serial monitor. I ...
3
votes
2answers
517 views

Molex power with USB serial Communication from the same PSU

Before I begin I just want to apologize for my mediocre understanding of things electrical and arduino. I know there are a lot of topics similar to this but I'm confused by the term external PSU ...
3
votes
1answer
335 views

What USB to UART chip provides highest data rates with Arduino boards?

Checking out online stores for a USB/TTL adapter, I came across a wide range of products, and I'm having a hard time selecting the one which would achieve the highest data rate. I was comparing ...
3
votes
2answers
587 views

Is my Arduino possibly broken?

We work in groups on a project at school. We had to build an electric scheme with an Arduino to make a small car moving. We got the parts from our school, except the Arduino (we had to buy it ...
3
votes
1answer
3k views

Arduino clone CH340G (ATmega328P), MIDI over USB

I just bought my first Arduino compatible device, and I am greatly enjoying it. I finally could not resist the urge after going to an Arduino meetup, where someone showed me their Teensy connected to ...
3
votes
1answer
1k views

USB mouse/keyboard passthrough feasible?

I'm looking to achieve the following: USB HID Mouse (or Keyboard) -> [ Arduino device ] -> PC | `-> Internet ...
3
votes
1answer
77 views

Arduino Uno R1 I soldered resistor but I cannot DFU program atmega8u2

I have an Arduino R1 board (the very first one) and I managed to solder the resistor into Arduino's Atmega8u2 (I went to a specialist in order to do that). Then I reset atmega8u2 and by wiring the ...
3
votes
1answer
1k views

Custom board with ATMega32u4 having USB issues

I built a custom arduino based board (speciffically based off of Sparkfun's Pro Micro 3.3V 8Mhz and their Qduino mini boards) that uses the ATMega32u4-RC. The board I built integrated an acceleromter ...
3
votes
1answer
6k views

Can an Arduino emulate a USB mass storage device?

Question: Can I connect an Arduino's USB port to the USB port of another embedded device that is expecting a USB thumb/flash device? Or, can I connect a USB module to this embedded device, with the ...
3
votes
1answer
204 views

How to reprogram Arduino if USB port is already in use?

I'm developing a keyboard emulator using Digispark Pro (based on Arduino) which uses USB port as the keyboard interface. I haven't programmed it yet because I doubt how should I recognize the chip to ...
3
votes
1answer
254 views

Attempt stacking 'CAN-BUS' and 'USB Host' Shields on Mega 2560

I've run into a case of 'In theory it works, but in reality'.... I'm using the CAN-BUS Shield V1.2 from Seeed studio. Many things are written in broken english, so I'm starting to wonder if I can ...
3
votes
1answer
97 views

Identify connected PC per Arduino

Question: Is there a way to collect any data (e.g. MAC addresses, installed devices, driver versions, etc.) from a PC by simply connecting an Arduino via USB to it, so that this PC can be clearly ...
3
votes
1answer
856 views

Arduino program does not start when plugged in

I am having trouble with my Arduino Mega with getting the program to start when the Arduino is plugged into a computer via USB. All that happens is the LED turns on and stays on. The device does not ...
3
votes
1answer
1k views

Uploading sketch to ESP8266

I'm managing to upload a sketch to the ESP8266 01. I have been researching on internet but I'm not able to get it. I have installed the libraries for Arduino IDE and my circuit is the ESP powered by ...
3
votes
1answer
183 views

Two Leonardos on one USB hub - not working properly

I have two Arduino Leonardos here. They do different things, but basically they both emulate a keyboard. Here is an example: const byte SWITCH = 12; void setup () { Keyboard.begin(); pinMode (...
3
votes
2answers
402 views

Interfacing Logitech Joystick to Arduino and interrupt a while loop

I am working on a project of a robot arm. The joints are made of servo motor. The basic function can be describe as: The robot arm (the servos) were moved manually by the Logitech joystick. The user ...
2
votes
2answers
610 views

Pinout for Leonardo USB

According to the docs, the Arduino Leonardo uses digital pins 0 and 1 for the USB D- and D+ lines. However, which is which? e.g. is D0=D+ or is D1=D+? To save space in a very tight project, I want to ...
2
votes
2answers
257 views

Substitute for FTDI board?

I am thinking forward to buy a set of Arduino pro mini. I have a very low budget and I can't think of buying a FTDI board. Is there any substitute for the FTDI board that is compatible with these ...
2
votes
4answers
160 views

Can an Arduino Micro receive commands from another microcontroller when hardwired together?

I plan to build functioning reaction wheels, controlled by an Arduino Micro. Ideally, I'd like to have the reaction wheels, and the micro, be a single unit which would receive external commands from ...
2
votes
1answer
171 views

How can I detect which baudrate a virtual COM port is set to?

I would like my software running on Leonardo to behave differently depending on the baudrate of the USB Serial set by the PC. For example, I want to make a smart USB to UART converter which performs ...
2
votes
2answers
189 views

Why is there already text in the serial monitor before the Arduino initializes?

I have encountered this several times before and I would like it if someone was able to give an explanation. In almost any sketch that I've ever created with Serial communication involved, I notice ...
2
votes
2answers
476 views

Grab keys from an ordinary USB kyboard

Arduino USB I want to write an Arduino Sketch (if there is no other possibility it can also be plain c) , to grab keyboard inputs from my ordinary USB keyboard. Preferably without expensive hardware, ...
2
votes
3answers
1k views

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 ...
2
votes
1answer
92 views

Arduino project feasibility

Question completely rewritten Trying to assess an Arduino project feasibility. New to Arduino... but did a lot of controller programming (assembly), Roboteq (C) and Phidgets (C++) , using various ...