Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [usb]

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

0
votes
0answers
36 views

Uploading my code gets an error : permission denied on Ubuntu 16.04

I have faced this problem for few years ago and I solved it on Ubuntu 14.04 but I don't know why my solution doesn't work right now on Ubuntu 16.04 The Error : avrdude: ser_open(): can't open ...
0
votes
0answers
38 views

USB Host can't understand how to send and get data

I need my Arduino to communicate with a USB device. The Arduino will be the host, so I need USB Host library, but I can't understand how to start coding. On the documentation of the device I see: I'...
1
vote
2answers
30 views

Leonardo - always on power, status remains between computer reboots?

I'm looking for two answer here. Is it possible to power a Leonardo to be always on, separate from the power from the USB host - I've tried with a full size Leonardo and a power adapter but for some ...
0
votes
0answers
25 views

Have terminal bash script act as virtual “button” for Leonardo?

I've searched quite a lot for this and tried to piece bits of code together but with no luck so far. All i'm looking to do is have a command I can run in terminal/bash script on the Mac trigger some ...
0
votes
1answer
21 views

USB Communication between Arduino Nano and UHF Reader module

I am working on a project that requires a UHF reader development kit that can communicate using either RS232 or by USB. Via USB and a Serial terminal, I have been able to send commands to the reader ...
0
votes
1answer
51 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
0answers
54 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 /* * -------------------------------------------------------------------...
1
vote
0answers
68 views

Connect old USB webcam to USB Host Shield 2.0 Arduino Uno / Mega

Does anybody know how to interface an old USB webcam with the USB Host Shield 2.0 connected to an Arduino (Uno or Mega 2560 or other models - excluding Yun). I've got the USB Host Shield set up ...
0
votes
1answer
32 views

Does NodeMCU have some protection against wrong connections that could kill a computer USB?

I know some computer USB could handle some bad connection (by blocking the port, which need to reboot the computer). But I wonder if a NodeMCU 8266 offers some protection.
0
votes
1answer
75 views

Teensy 2.0 usb xinput device

So I came across a library that lets you turn your TeensyLC/3.X into an xinput device. I only have a 2.0 on hand. I spend the past few hours messing around with the LC example to see if I could hack ...
0
votes
1answer
46 views

Arduino baud rate 8 times too high?

I'm having a strange issue where in order to get the expected serial output on my serial monitor, I have to set the baud rate on my serial monitor to be 8 times higher than the rate that i set in my ...
1
vote
3answers
35 views

Do I need the Ground and 5 V pin connect to Led?

I am building an ambilight. So I bought a 3 pin LED Strip which I power with the USB hub from my TV. Next step is to connect it to the Arduino Nano. Is it OK when I only use the dataport from the ...
0
votes
2answers
99 views

arduino usb host shield and sd card [closed]

when I use the sd card on the mega or the arduino uno it works. Everything is fine. However, when I use it in combination with the USB shield host it doesn't work. I know the usb shield host works ...
0
votes
1answer
45 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 ...
1
vote
1answer
89 views

Is there a board that can act as both a USB host and client for HID devices?

Trying to build an arduino-based Mouse/Keyboard enhancer. This will let me do things like press certain keyboard or mouse shortcuts on the input side, then do something custom on the output side. ...
0
votes
1answer
173 views

ATTINY85 with RGB LED

I'm trying to DIY about a dozen BlinkSticks (discontinued, Adafruit) pictured here I'm thinking to use a Digispark ATTINY85 to control a single RGB LED to show the status of some program running ...
0
votes
1answer
86 views

CH340G and CP2102 devices not recognized with Thinkpad L380

I have three different devices, none of them gets recognized on my new Thinkpad L380 running Windows 10: Arduino Nano Clone with CH340G chip (USB2Serial) NodeMCU (Lolin V3) with CH 340G chip (...
0
votes
1answer
235 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() { ...
0
votes
0answers
14 views

Receiving volume change from Mac to 32u4 [duplicate]

I'm looking to make an audio interface using an arduino micro, and I can already change the volume using the arduino, but I would like to also receive the current value from the computer to the ...
2
votes
1answer
475 views

Install Arduino IDE in Raspberry Pi 3 model B

I am trying to install Arduino IDE in my Raspberry Pi model 3 but it is unable to locate file path. I use the following steps sudo apt-get update && sudo apt-get install arduino and in ...
1
vote
1answer
48 views

7-12V Power supply + USB

Im connecting a servo to my Arduino Uno Rev.3. The general recommendation is to put a 7V -12V power supply for servos as far as I understand. However I’d like to combine it with an USB to a computer ...
0
votes
1answer
48 views

Can a DHT11+ESP8266 be powered by a Adafruit USB LiPo charger directly?

I have rigged up a small DHT11+ESP8266 combo which I'm currently powering from the 3.3v from an Ardruino. I've ordered a 3.7v LiPo battery and have a Adafruit usb micro LiPo charger, however, the ...
2
votes
1answer
157 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 ...
1
vote
2answers
53 views

Arduino Uno won't upload code and overheats

We are using an Arduino Uno R3 connected via USB to a computer. The main problem is that we can't upload any code to the board. We get this error in the Arduino IDE console: avrdude: ser_open(): ...
-1
votes
1answer
142 views

Arduino controlled by USB gamepad

I want to control my Arduino with USB gamepad. I know that exists library for USB keyboard for Arduino but I don't know any library for usb gamepad. I have PS3 styled gamepad. I dont want to use ...
0
votes
1answer
52 views

How to upload program to custom arduino board without USB FTDI and making it read only? [duplicate]

If I was to mass produce a microcontroller board I have designed based around the atmega328 (very similar to an arduino uno) but for one embedded task where I want one program only to be stored on it. ...
1
vote
1answer
272 views

How to interface USB to custom Arduino Uno Schematic and programming atmega?

I'm fairly new to designing schematics and working with the atmega on its own and I'm designing an arduino schematic on eagle. Ive gotten to the stage where I need to incorporate a TTL USB interface ...
0
votes
0answers
35 views

Can I trigger a program that didn't exist on the PC to run in the background as soon as i connect any USB enabled uC like SAMD21?

People usually trigger programs already there on their PCs when they connect their uC. There are already things like uC that can inject keystrokes. I was thinking of something even more ambitious - I ...
1
vote
1answer
144 views

Wake up a PC from an Uno

I want to wake up a PC via a USB-connected Arduino. When using a Pro Micro (Leonardo) I can do it, as its HID interface can wake up a PC. That is, in the Device Manager, under "Keyboards", the ...
1
vote
1answer
79 views

How arduino boards eliminate the need to press buttons to flash?

I've come across many Arduino shields for various boards like the Uno, ESP8266, and ESP32 which sometimes have a button for flashing and other times they do not because the flashing is automatic. ...
0
votes
1answer
184 views

How to convert USB to PS/2? [closed]

Objective: To get my USB keyboard to interface with an Arduino Uno board. Constraints: I can't afford a USB host shield for now for Arduino. Currently available is a keyboard with PS/2 connector. ...
0
votes
0answers
47 views

Mini USB Host 2.0 and MKR1000

I have a MKR1000 board mounted on top of the MKRMotorCarrier and connected to an IMU Shield that uses GND-3V-SDA-SCL pins, which leaves the MKR1000 available with RX, DAC0/A0, SCK, MOSI, GND, TX, MISO,...
1
vote
2answers
58 views

Reconstruct uint32_t from char array to RTC.set

I am currently experimenting with a Digistump ATTiny85. Since it has no Serial, I use the basic DigiUSB library for communication. The RTC library used is this one: https://github.com/JChristensen/...
0
votes
1answer
62 views

Arduino and AVR Serial Communication over USB

I have a Arduino Uno Rev3 and I would like to use a AVR development toolchain to write a program that performs serial communication over USB. Doing this using the Arduino IDE is fairly simple: void ...
0
votes
2answers
399 views

USB Mouse Passthrough

I am currently doing research for a project of mine. My goal is simple: I want to pass input from a physical mouse, to a microcomputer to process the input and modify, and send the input in the form ...
0
votes
2answers
128 views

Using Teensy 3.5 (Arduino) to produce USB and Hardware MIDI messages simultaneously. Help?

Currently trying to get a teensy 3.5 to spam a series of notes in a loop over USB and hardware serial, which I am pretty sure it can do. I have a MIDI circuit set up as per the specifications here: ...
0
votes
1answer
85 views

USB host shield help [closed]

Hello, I apologise for being such a noob but can someone help with this. I am having trouble working with this. When I insert the arduino's pins into my new usb host shield , there is no indication ...
2
votes
1answer
76 views

Long term connection between Arduino and computer

I am looking to make indicator lights for my computer to indicate things such as system load, IO usage, et cetera, using an Arduino and NeoPixels. I would like to just plug it into my computer, and ...
1
vote
2answers
401 views

wire up usb to pins rather than on board usb socket

I have an uno r3 clone in an enclosure and one of these usb ports on the enclosure. It's pretty tight in there so I was wondering if there was a way to bypass the usb port on the board and plug it in ...
1
vote
1answer
115 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
3answers
78 views

Why call a USB connection a serial connection?

Does anyone know why Arduino calls a USB connection a serial? When I hear a serial connection I automatically think of a male pin connection and not a USB connection. Also not sure if this a Linux ...
0
votes
1answer
145 views

USB upload to Pro Micro (32u4)

My project is based around the ATMEGA32u4 microcontroller. I followed the Arduino Pro Micro schematic to design my own board layout and build a custom PCB, soldered on the components. Then I used ...
0
votes
1answer
124 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
2answers
173 views

External power vs usb power

I built a sample of my project on a breadboard using little 700mh leds and other components that easily ran off my computers usb. Now I’m building my project to full size. This includes 12 7w leds, ...
0
votes
1answer
178 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 ...
1
vote
1answer
283 views

Sending data to Arduino Via Nodejs: Arduino does not echo back the data

I have the following sketch that runs in a arduino UNO: /* * Copyright 2018 Dimitrios Desyllas * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
-2
votes
1answer
67 views

USB reset fails on arduino due because of 5v on digital pins

I have the signal channels of four 5v magnetic encoders connected directly to the digital pins of the arduino due. I am aware that this is not allowed according to the specification which says that ...
4
votes
1answer
60 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 ...
2
votes
1answer
44 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 ...
1
vote
1answer
67 views

How do I detect the Computer's operating system? [closed]

I'm working on an emoji keyboard and it requires different input depending on the OS it's connected to. I've written the relevant methods using Arudion's default Keyboard library and can manually set ...