Questions tagged [usb]

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

Filter by
Sorted by
Tagged with
47 votes
11 answers
151k 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 ...
revive's user avatar
  • 571
27 votes
5 answers
113k 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 ...
user avatar
16 votes
1 answer
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, ...
Mecha's user avatar
  • 391
15 votes
2 answers
51k 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 ...
martin_0004's user avatar
12 votes
1 answer
3k 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 ...
Vinicius Biscolla's user avatar
11 votes
2 answers
30k 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 ...
Zenthirum's user avatar
  • 113
11 votes
1 answer
5k 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 ...
David Cary's user avatar
  • 1,112
9 votes
6 answers
23k 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 ...
Blake's user avatar
  • 213
9 votes
2 answers
5k 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 ...
Sniggerfardimungus's user avatar
8 votes
4 answers
6k 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 ...
StevieD's user avatar
  • 181
8 votes
3 answers
8k 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 ...
jnovacho's user avatar
  • 235
8 votes
4 answers
11k 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 ...
Calin's user avatar
  • 243
7 votes
1 answer
40k 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 ...
jctwood's user avatar
  • 81
7 votes
3 answers
2k 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 ...
George Troulis's user avatar
7 votes
1 answer
7k 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. ...
Siddhartha Sadhukhan's user avatar
6 votes
5 answers
928 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 ...
Ozzah's user avatar
  • 193
6 votes
1 answer
13k 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 ...
SaundersB's user avatar
  • 163
5 votes
4 answers
7k 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 ...
TheKayneGame's user avatar
5 votes
3 answers
18k 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 ...
Merlin's user avatar
  • 65
5 votes
2 answers
19k 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 ...
Thesaurus Rex's user avatar
5 votes
2 answers
993 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 ...
Robert Murphy's user avatar
5 votes
2 answers
34k 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 ...
Joel's user avatar
  • 185
4 votes
5 answers
34k views

Why do I get avrdude: stk500v2_ReceiveMessage(): timeout error when uploading to Arduino Mega?

I have an Arduino Mega clone and I haven't used it for a while. I remember it not working so when I plugged it in and tried uploading the code to it and sure enough it didn't work. So I plugged in an ...
techset's user avatar
  • 59
4 votes
2 answers
3k views

My ESP32-S3 DevkitC-1 has two USB micro ports labeled 'USB' and 'UART'. What are they for?

I'm new to micro-controllers. I've got an ESP32-S3-DevKitC-1 and I'm trying to do a simple hello world with the Serial. I'm using the Arduino IDE for flashing and serial monitoring. My code is: /** * ...
Spina's user avatar
  • 139
4 votes
1 answer
8k views

Can Arduino Leonardo use USB port and RX TX serial pins at the same time?

Can I use the TX/RX on pins 0, 1 (to a serial slave device) while also having the USB port dedicated PC communication?
101's user avatar
  • 215
4 votes
2 answers
1k 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....
Jeremy Wadhams's user avatar
4 votes
1 answer
507 views

Power Supply Problem with Arduino Yún: Using a long USB cable

I want to use an Arduino Yún as a kind of outdoor weather station. I want to supply the power for the Yún with a 5V USB-Charger. Using a normal USB cable everything works fine. But as the weather ...
bhneuner's user avatar
4 votes
2 answers
829 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 ...
AnoE's user avatar
  • 141
4 votes
1 answer
7k views

Using usb port to communicate with standalone atmega328p circuit

noob here So I managed to get my circuit to be a standalone circuit (as pictured below). I want to use this circuit as an input to a game on my computer. What I want to know is could this micro-usb ...
user19964's user avatar
4 votes
1 answer
3k 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 ...
Dmitry Grigoryev's user avatar
4 votes
2 answers
2k 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 ...
user28055's user avatar
4 votes
2 answers
771 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 ...
John Keane's user avatar
4 votes
1 answer
1k 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;...
Mayank Pal's user avatar
4 votes
0 answers
172 views

Can d2xx connect to an arduino mega 250?

I am trying to replace a device which used a FTDI chip (http://www.ftdichip.com/Drivers/D2XX.htm) to get USB to serial. I need some more code on the chip, so I want to use an arduino mega 2560 instead....
Alex's user avatar
  • 41
3 votes
3 answers
29k views

Powering an Arduino Mega with external USB Power Bank?

I am making a robot with arduino mega r3. I want to power the arduino with a usb power bank. How should I do that?
HARI's user avatar
  • 41
3 votes
3 answers
2k 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 ...
fsaint's user avatar
  • 81
3 votes
1 answer
8k views

My Digispark board won't show up in Ports tab in Arduino IDE (OSX)

I bought a Digistump/Digispark board online and when i received it, I plugged it into my iMac to see if it works. I went to the apple in the top left corner and clicked "About this Mac". Then I ...
Sergei Glimis's user avatar
3 votes
2 answers
8k views

Typing into ESP8266 with a USB keyboard

I need to be able to connect a USB keyboard, like a tiny Xbox keyboard, or a nice wireless one, into an ESP8266-based thing to type passwords into the MCU. Adapting the PS2 lib for AVRs (PS2==USB ...
dandavis's user avatar
  • 1,037
3 votes
2 answers
1k views

Grab keys from an ordinary USB keyboard

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, ...
Rick Sanchez's user avatar
3 votes
1 answer
253 views

Alerting the ATMega32u4 that it's plugged into a computer (via USB)

I need help in writing some code that will allow for the ATMega32u4 to be aware of when it's plugged into a USB port. I'm not really familiar with the ATMega32 or with it's function in Arduino, so I'm ...
Jay's user avatar
  • 135
3 votes
1 answer
10k views

Emulating a generic Mifare USB peripheral device with RFID-RC522

Hardware Dev Board: Arduino Nano V3.0 Module: RFID-RC522 13.56 MHz Cable: USB A - USB Mini B Configuration Physical Code /* * -------------------------------------------------------------------...
voices's user avatar
  • 131
3 votes
1 answer
3k views

Unknown USB Device (Device Descriptor Request Failed) - Win 10

I am posting a possible solution here for any online searches happening upon this exact issue. So I have a third party board (Mega 2560) and I was plagued with my board intermittently working, on ...
Rigknot's user avatar
  • 61
3 votes
1 answer
4k views

Arduino USB and 9V

I'm working on a project for interfacing the Arduino with the Raspberry Pi. I need to be able to exchange serial data between the two using the USB port. My question is, can I do that while having ...
user35288's user avatar
3 votes
2 answers
268 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 ...
hoboBob's user avatar
  • 183
3 votes
1 answer
4k views

Using Arduino Nano as USB Host

I'm pretty new to microcontrollers and Arduino and since I can't find any satisfying information on my problem, I hope that you might answer them: My project is actually quite simple: I just want to ...
user avatar
3 votes
1 answer
284 views

Arduino | external power supply and USB at the same time

Arduino | external power supply and USB at the same time I have got an Arduino Mega 2560 project with many sensor and outputs. Right now I’m supplying it with an external stabilized 5V over the 5V pin ...
stevo's user avatar
  • 51
3 votes
1 answer
3k views

No ttyACM0 nor ttyUSB0

I checked several related posts but couldn't solve my problem. I have Antergos Linux : # uname -a Linux biutitude 4.14.11-1-ARCH #1 SMP PREEMPT Wed Jan 3 07:02:42 UTC 2018 x86_64 GNU/Linux The ...
Biu's user avatar
  • 31
3 votes
1 answer
51k views

Arduino Uno unable to detect usb port on Mac OS Sierra 10.12.5 [closed]

Few weeks ago my Arduino Uno (IDE version 1.8.2) detected the USB port and I was able to do some small IOT projects. I updated my OS to Sierra 10.12.5 and now suddenly the usb serial option has ...
codeinprogress's user avatar
3 votes
2 answers
950 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 ...
Brandonm's user avatar
  • 133
3 votes
1 answer
311 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 ...
joware's user avatar
  • 31

1
2 3 4 5
11