Questions tagged [usb]
Widely used standard for connecting computers to other devices, such as printers and keyboards.
543
questions
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 ...
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 ...
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, ...
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
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
/**
* ...
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?
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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;...
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....
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?
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 ...
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 ...
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 ...
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, ...
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 ...
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
/*
* -------------------------------------------------------------------...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 ...