Questions tagged [usb]

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

0
votes
1answer
685 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 /* * -------------------------------------------------------------------...
0
votes
3answers
172 views

Why Arduino Mega 2560 throw error when i try to upload example

I'm try to connect my Arduino Mega 2560 to PC, but I think it's not easy as I imagine. I spent a lot's of time to install USB driver. Here is a screenshot: When I try to upload blink example, Arduino ...
-1
votes
0answers
31 views

Make Leonardo appear as UK or US English keyboard to Mac? [closed]

I'm using a Micro Pro Leonardo, it's a Chinese clone (3.3volt version). For some reason I believe the Macs I run it on see it as a Chinese keyboard and that makes some of the inputs incorrect as ...
1
vote
1answer
44 views

Arduino USB host + RS232

I'd like to get a word of advice regarding the subject. Basically there's a COM port based device which I need to connect to an Android tablet via USB. The tablet will be exchanging data packages with ...
1
vote
0answers
51 views

I want to modify setup, to also keep the serial USB port opens so I can send strings via a Raspberry Pi

I am trying to modify the original code from these guys GRA & AFCH, who have made an Arduino Sketch Program that runs a Arduino powered Nixie Clock. Here is the link to their Firmware file:...
2
votes
1answer
68 views

Flashing ATmega8U2 using another Arduino

I have an Anduino Uno R1 and the ATmega8U2 on. It does not respond correctly. How can I use another Arduino Uno R3 in order to reinstall the correct firmware? What I want to avoid it to solder the ...
0
votes
0answers
20 views

Possible to live-control an Arduino microcontroller from any Linux IoT board?

I'm working on a home project that centers around a non-Arduino Ubuntu IoT board but I'd like to add an ATmega32U4 chip for USB HID. I'm thinking about using an Arduino Micro. The signals to the ...
0
votes
1answer
26 views

Communicating with Arduino Mega 2560 Serial ports through x2 RS232

I am trying to driver a stepper motor using an Arduino Mega 2560. There will ideally be two RS232 signals being read into / written from the Arduino, each using male USB 3.0 connectors; one of these ...
0
votes
2answers
814 views

Switching between SPI Devices when one is an SD card

I'm using a USB Barcode scanner connected via a USB shield, I'm able to get the readings from the barcode using this example, After getting this readings, I'd like to save it to an SD card but the SD ...
0
votes
0answers
36 views

Can't open serial monitor on Ubuntu (Teensy 3.2)

I am running a simple blink/hello world program on Teensy 3.2. The code is compiling and running fine but I can't see the serial output. When I try to open the serial monitor it gives me "Board at ...
0
votes
1answer
69 views

No ttyACM0 with Pro Micro on Ubuntu 18.04

I am trying to determine the dev path of a USB keyboard running an Arduino Pro Micro on my Ubuntu 18.04 system. The files /dev/ttyACM0 and /dev/ttyUSB0 do not exist. When I run dmesg I get: [ 410....
0
votes
2answers
39 views

Sharing serial output from one to many arduinos (plus a computer) via USB hub

I am trying to send rotary encoder output from an UNO to seven Trinket M0s and a computer via a (powered) USB hub. Currently the UNO → Laptop bit works great, serial monitoring works via the hub ...
1
vote
0answers
322 views

Cannot upload to otherwise working bootloaded ATmega328P via RS232: “programmer is not responding”

I have an ATmega328P on a breadboard with the following circuitry around it: The ISP is a Tiny AVR Programmer. The RS232 to USB converter is this thing. Following is the test program I use: void ...
0
votes
0answers
27 views

OSCOKIRQ failed to assert with USB HOST and SD card

I am having an issue using a MAX 3421 EE based Arduino USB Host shield and an SD card shield. From my understanding, they should both function as long as they are using different CS/SS pins and only ...
0
votes
1answer
52 views

Sketch starts and keeps counting on external power supply but not usb

Thank you for the add, total newbie here (electronics and arduino) on his first project. Trying to make a counter for a hay baler with two HAL effect sensors, (pin 5 & 6) and outputting to an I2C ...
0
votes
1answer
26 views

Reducing static on button reading

I have a very simple code for a controller I'm working on for a robot. void setup() { // put your setup code here, to run once: pinMode(3,INPUT); Serial.begin(9600); } void loop() { // put ...
2
votes
0answers
271 views

Arduino IDE programs Leonardo but cannot open serial terminal

I'm using Arduino: 1.6.7 (Mac OS X 10.11.3), Board: "Arduino Leonardo". When I try to program my code, it works without problems. When I want to open the built-in Serial Monitor or Serial Plotter, ...
2
votes
1answer
692 views

Unable to upload sketch after bootloader has been flashed on Arduino Micro

I have created my own custom Arduino Micro, but I am experiencing problems when I attempt to upload an sketch via USB in Arduino IDE. Here is how I program the Arduino Micro: avrdude -c ...
0
votes
1answer
46 views

Cannot connect through /dev/ttyACM0 (Ubuntu 18.04)

I am using an Arduino UNO which worked fine until today. My system: Ubuntu 18.04 Now, the IDE can no longer connect to it: Cannot do any sketch upload Cannot ask for board info No USB ports shown in ...
2
votes
2answers
267 views

Arduino with multiple buttons - will power be an issue?

I have a spare Arduino Uno lying around, which I figured I could attempt to turn into a game controller. First clear issue, that immediately popped up, was that there are not enough digital input pins ...
0
votes
2answers
134 views

NodeMCU burned, did I something fundamental wrong?

I have a NodeMCU where I connected a LED strip (WS2812b, which operates at 5V). NodeMCU is powered via USB 5V. The used power adapter can supply 2.5A max. I don't have a separate power supply for ...
0
votes
1answer
813 views

Adafruit Gemma unrecognised USB device on Windows 10

I have a V2 Adafruit Gemma from the Gemma starter pack, and I'm running Windows 10 Home (version 10.0.14393), on a 64-bit laptop. Following the Introducing Gemma guide I've installed the Adafruit ...
0
votes
0answers
43 views

Compare barcode scanner string with existed string

I have a project which is reading barcode scanner result then compare with an existed string. I have used the library USB host shield in order to read data from barcode scanner then I would like to ...
0
votes
1answer
217 views

Using an Arduino as a Human Interface Device that sends analog inputs

I would like to have an arduino board act as a human interface device that can send analog inputs like joysticks. As it currently stands I see two aproaches to this issue: Use the arduino hid ...
1
vote
1answer
3k views

SerialUSB on Arduino Due

I'm starting fiddling with a Due but I can't seem to be able to communicate over USB with it. Here is my code: int bauds = 9600; void setup() { SerialUSB.begin(bauds); } void loop() { if (...
0
votes
1answer
20 views

Is there a simple (permissive license) Leonardo driver for a USB-to-USART bridge to substitute an FTDI chip?

I'm making an ESP32 development board and I'm thinking about putting an Arduino Leonardo chip between the USB port and the ESP32's USART pins to act as a USB/USART converter instead of the FTDI chip ...
0
votes
0answers
38 views

Controlling keyboard LEDs with USB Host Shield

I've got a USB keyboard connected to my Arduino Uno with a USB Host Shield. I'm reading keystrokes using this example from the USB Host Shield library. I need to toggle the LEDs in the keyboard (that ...
2
votes
1answer
370 views

Get USB host controller serial number or ID using Teensy or other HID devices

I have a Teensy board and would like to know if there's a way to get a serial number (or any other kind of ID that is preferably unique) of the host controller that I plug my Teensy into. E.g. can I ...
0
votes
1answer
44 views

Programming the serial description

Is it possible to program a custom description so that my python program can know exactly what USB port to connect to for that specific programming? It should be able to find any board with that ...
0
votes
1answer
62 views

Why does attaching Nokia 5110 LCD make my otherwise fine MKR1000 disconnect USB after 15 secs?

This problem just started after 3 days of working on a project. I am using Arduino IDE in Windows 10. When I go to upload "Blink," everything works fine. I connect the USB (sometimes I have to ...
0
votes
2answers
206 views

3.3 V Pro Micro clones flashing LEDs after 1200 bit/s touch

I have several Pro Micro clones. This morning I uploaded a sketch into one of them (that was previously unprogrammed, so it stayed in bootloader mode) and when I wanted to upload the sketch a second ...
1
vote
1answer
241 views

USBasp problem: could not upload sketches to Arduino clone with PL2303 USB-to-UART chip

I'm trying to upload sketch to a Gizduino board (these boards have PL2303 chip for USB-to-Serial communication; other than that they are entirely similar with Arduino Uno). I have installed the ...
0
votes
1answer
1k views

Arduino force feedback vibration gamepad

I'm projecting a gamepad with Arduino Micro. I'm using the Arduino Joystick Library. I'm building this gamepad for racing games so I need to catch signal like hit_the_wall, hit_another_car. I wonder ...
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 ...
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
1answer
563 views

Serial communication mac to Digispark ATtiny85

I want to use the Arduino IDE serial monitor with my Digispark ATtiny85 over USB. I can without problems upload this code(Digispark CDC example): #include <DigiCDC.h> void setup() { ...
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 ...
1
vote
1answer
127 views

Arduino Nano /Uno USB is not getting recognized

I have multiple Unos and Nano and recently due to some bad configuration the USBs are not getting recognised on my Mac Air Laptop. These were working models for almost 1-2 years. I used it to control ...
0
votes
1answer
30 views

Can I daisychain multiple Arduino Nanos to a single USB port (specialized purpose)

I need to have several Nanos on one USB port. They will have separate power, so power constraints won't be a concern. I need them all to go through the same serial port. They will never get anything ...
2
votes
2answers
39 views

Ensure board is always on the same port?

I want to make a VB.NET program to communicate over serial with the board, but I need to be sure it knows which port. Instead of programming in more advanced methods of verification, for this project ...
0
votes
0answers
62 views

Sending Data to an endpoint with Arduino USB Host Shield

I'm currently working with a Logitect G502 mouse and would like change the LED colors through Arduino USB host shield. Mouse has 2 different interfaces. Interface-0 is a HID-mouse and Interface-1 is ...
-1
votes
1answer
44 views

Is it possible to send data from device (e.g. MPU6050) to Arduino through cut/hacked USB cable?

So I understand the USB cable consists of VCC, GND and Data+, Data-. Is it possible to connect an MPU-6050 gyro to these 4 pins, especially data+/-, and still receive them normally through the SCL/...
0
votes
0answers
36 views

How to modify current driver files in USB_Host_Shield2.0 on github for Arduino Mega ADK USB driver for Epson LQ-310 printer?

At the moment, I am engaged in a project in which I have to drive Epson LQ-310 printer with Arduino Mega ADK (USB Host). There is already a library USB_Host_Shield_2.0 on Github which includes usb ...
-1
votes
2answers
211 views

How do I change pin assignments for the LUFA AVRISPMkII?

I just managed to get Dean Camera's LUFA AVRISP clone working on my Arduino Pro Micro, when to my dismay I found that to use PDI for my XMega, I need to have PD5 exposed for the clock source! The Pro ...
0
votes
3answers
54 views

Is it possible to upload an arduino sketch through the serial port (RX) instead of USB

In another words, is it possible to develop a custom bootloader so sketches can be uploaded via serial connection made using the RX/TX pins and not via the USB connector (I am using Pro Micro boards)? ...
0
votes
1answer
113 views

Wemos D1 mini not being shown when connected to macbook [closed]

I have multiple Wemos d1 mini lying around, but can't seem to get them connected to my macbook, to they do not show up in my /dev/tty? I tried updating the driver, both using home-brew and installing ...
0
votes
1answer
111 views

Arduino Uno: external power supply +5V and serial communication with pc over USB

I have connected to my Arduino Uno outputs relay module. Relay module has 16 relays (5VDC) which are controlled by transoptors pins (HIGH from Arduino = specific relay is off). Link to relay module ...
1
vote
1answer
39 views

How ro re-enable 32u4 USB controller after sleep mode?

I've run into quite the problem with my 32u4, I can't get it to reconnect to the computer upon wakeup from a sleep mode! So I have an Arduino Pro Micro featuring the 32u4, and I'm also designing a ...
0
votes
0answers
31 views

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
vote
3answers
1k views

Arduino crashed my computer when I plug in the USB cable

I have a 2008 Mac that hardly ever crashes. But from time to time (not always) it crashes (the whole computer shuts down as if the power has been cut off) when I plug in an Arduino via USB. What ...