Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

Need Help Communicating with Arduino Leonardo Using Custom Bootloader

I have an Arduino Leonardo that has been flashed with a custom bootloader, and it currently has a sketch on it that I cannot replace or modify because doing so would brick the board. The board works ...
2 votes
2 answers
768 views

How can I stop digital pins from floating at reboot?

I've got a LattePanda 3 Delta, which runs windows on its main processor and an Arduino sketch called StandardFirmata on its coprocessor. It's connected to a lock, which locks at HIGH and unlocks at ...
0 votes
1 answer
53 views

atmega32u4 connect PC

I made a custom PCB with C-type USB and atmega32u4 (arduino leonardo). But my PC doesn't recognize the atmega32u4. Here are my schematic. Why my PC doesn't recognize the pcb in schematic?
2 votes
1 answer
129 views

Can I flash hoodloader2 or HEX files on Arduino Simulators?

I want to make a HID Keyboard out of Arduino UNO, in UNO board the script runs perfectly fine, but the UNO board requires me to flash it every-time I want to put in a new script in it, so can I do the ...
1 vote
2 answers
12k views

Keyboard.h: No such file or directory - Arduino pro micro (leonardo)

I've just bought a new pro-micro and I want to simulate some keyboard inputs with it, the thing is the Arduino IDE (version 2:1.0.5) can't seem to find neither HID.h or Keyboard.h libraries. The steps ...
1 vote
3 answers
3k views

Distance Sensor. Calculating running median and average

I'm trying to smooth out values for my IR distance sensor through running median filtering and a running average. I've tried to do the averaging, but my values don't seem correct and I am confused ...
1 vote
2 answers
875 views

How to debug MIDI input?

I'm trying to receive MIDI messages on a Leonardo. To do that I used the circuit in the diagram below (only the top half for receiving). The only thing I did differently was using an 1N4148 diode ...
-1 votes
1 answer
111 views

Joystick library not reading potentiometer

I am using Joystick Library to make a HOTAS system for flight simulators. When I load the test program I can get all the simulated controller inputs to register in windows. I can also get the value ...
1 vote
1 answer
307 views

Why can the Xbox360 not detect the Arduino Leonardo as keyboard?

Arduino Leonardo as keyboard in the computer works! But not with the Xbox360. The Teensy works perfectly on the PC but how to emulate a keyboard device for the Xbox360. I know the Xbox360 has ...
0 votes
1 answer
2k views

Change USB VID and PID (Leonardo)

I'm new to using electronic boards, and have followed a guide online for printing a 6 DoF (degree of freedom) mouse. I'm stuck on an optional step that requires me to change the PID and VID of a "...
2 votes
2 answers
18k views

Problem with uploading my sketch to my Arduino

I chose the correct COM port but it won't upload. Arduino: 1.8.3 (Windows 10), Board: "Arduino Leonardo" Sketch uses 5252 bytes (18%) of program storage space. Maximum is 28672 bytes. Global ...
-1 votes
1 answer
81 views

Arduino Leonardo Key Detector

I want to make an arduino code on the arduino leonardo that detects when keys are being pressed and to print them to the serial monitor so I can control the arduino with the computer keyboard. I need ...
-2 votes
1 answer
67 views

L LED on Arduino is constantly on and com is not detected

When I connect the Arduino to the computer, the L LED is constantly on and com is not detected. However, when I press the reset button, the L LED starts blinking for about 10 seconds and com appears. ...
-1 votes
2 answers
494 views

Arduino Pro Micro not recognizing INPUT or INPUT_PULLUP

I tried to make a controller box with multiple buttons. Sadly, when I tried to connect the buttons, the Arduino Pro Micro didn't recognize them being pressed. I even tried to connect a wire directly (...
-1 votes
1 answer
45 views

Arduino pin erratic behavior?

I've built a switch key matrix (thus the diode, contextually useful schematics below) and me being me, I realised after that I misunderstood a few things about how button really works, to say the ...
3 votes
5 answers
16k views

Send Keyboard Media Keys with Keyboard Library

I have an Arduino Pro Micro (ATMega32u4) that I want to use as an IR receiver for a media PC and need to send codes like Volume Up, Media Home, Play, etc. But when I look up the scan codes for those ...
2 votes
2 answers
448 views

Generated frequency is not as expected

This code sets a pin HIGH for 1 microsecond and then LOW for 1 microsecond. The expected frequency should be about 500 kHz. When measuring the output the frequency is about 96.4khz. Why ? int del = 1;...
2 votes
1 answer
162 views

Improving moving mouse loop to optimize speed

Code: #include <Mouse.h> #include <hiduniversal.h> #include "hidmouserptparser.h" #include <USBController.h> USBController controller; USB Usb; HIDUniversal Hid(&Usb); ...
2 votes
3 answers
728 views

DMX on the Arduino without additional driver chip

I recently saw this video where the creator controlled a DMX light via the Arduino. There he used the pins 3 and 4 for the data on the Arduino Duemilanove. As DMX library he used DmxSimple. Based on ...
1 vote
0 answers
112 views

Cannot change fuses on ATmega32U4

I have a custom board based on Arduino Leonardo (ATmega32u4). As usual I used the Arduino IDE to burn the bootloader with my Atmel ICE ISP programmer. This time it failed complaining about some errors ...
67 votes
2 answers
228k views

How do you use SPI on an Arduino?

With reference to the Arduino Uno, Mega2560, Leonardo and similar boards: How does SPI work? How fast is SPI? How do I connect between a master and a slave? How do I make an SPI slave? Please note: ...
1 vote
1 answer
1k views

help with error: cant open device "\\.\COM6":Access is denied

I built a new pc which I use as a flight simulator. On my old PC I had ArduinoIDE for programming a pro micro as well as a teensy 4.1 using the teensyduino library. I installed all the necessary ...
10 votes
3 answers
10k views

Upload code on Arduino Leonardo using command line

I'm trying to upload a compiled .hex file on an Arduino Leonardo, using the terminal. Uploading a sample code using the Arduino IDE works well, and from the Arduino IDE I got the upload command ...
0 votes
2 answers
5k views

Sending a digital signal from one Arduino to another to trigger an event

I am wanting to send a digital signal from one Arduino to another. The goal is for one Arduino send a HIGH signal to a pin on the receiving Arduino. While the pin is HIGH, do function I initially ...
1 vote
4 answers
1k views

How to control Android app with Arduino

I'm trying to connect Arduino Leonardo to an Android tablet. I would like to make the Arduino send commands (using pushbuttons or a slider for example) to the tablet to switch between pages, to select ...
0 votes
0 answers
238 views

Atmega32u4: Reduce power consumption while keeping USB active

I have a USB powered board, that should consume as little power when idle as possible, while keeping the USB connection alive. The device only sends data to the host, doesn't receive any, so the ...
2 votes
1 answer
588 views

Multiple Arduinos, same name - Windows 10 Game Controllers

I am making some SimPit panels and SimRacing devices, and I've run into an annoying issue. I have multiple Arduinos (Leonardos and ProMicros) that show up as the same "Controller Names" (...
0 votes
2 answers
2k views

Recovering from lost USB connection (Leonardo to Raspberry Pi)

I have several Arduino Leonardos connected to a Raspberry Pi (running Ubuntu) via USB. They appear as /dev/ttyACM0, /dev/ttyACM1, etc. Occasionally, one will disappear and even pressing the Arduino'...
1 vote
2 answers
1k views

Arduino Leonardo on Win 8.1 COM port disappeared

I've been using an Arduino Leonardo on my Windows machine for a few days now without too much trouble but today the COM port disappeared. I've been able to successfully send sketches to the arduino ...
1 vote
0 answers
522 views

Arduino lagging or buggy with delays and serial print?

I got a strange issue with my Arduino Leonardo (clone). It seems to be laggy or buggy, I don't know what the issue is. I get issues when I use "long" delays. Below sketch is working fine. ...
-1 votes
1 answer
218 views

Unreliable communication with low baudrate on Leonardo

I am using an Arduino Leonardo (more precisely this product), to communicate with servo-motors) using RS485. Everything works fine as long as I don't go below a baud rate or 115200bps. If I go below, ...
0 votes
0 answers
165 views

Disable USB support for mega32u4

I have a custom Leonardo board (mega32u4-based) that does not use at all the USB features. When I build my sketch (vscode and platformio) I read: Compiling .pio/build/leonardo/FrameworkArduino/CDC.cpp....
0 votes
2 answers
1k views

Arduino Leonardo/Pro Micro sleep and USB

I am using an Arduino Pro Micro (basically a Leonardo in a smaller form factor) in a mobile application where power consumption is really important. To reduce power consumption, I put the Arduino to ...
-1 votes
1 answer
98 views

Is it legal to "simulate" Yubikey OTP autentication with an Arduino in own product? [closed]

I found the following Github Repo that makes it possible to build your own Yubikey with an Arduino Leonardo device. https://github.com/pagong/arduino-yksim Pretty cool. However I am wondering if using ...
0 votes
1 answer
500 views

Different meanings of pid and vid in boards.txt

Let's see the leonardo section in boards.txt: leonardo.name=Arduino Leonardo leonardo.vid.0=0x2341 leonardo.pid.0=0x0036 leonardo.vid.1=0x2341 leonardo.pid.1=0x8036 leonardo.vid.2=0x2A03 leonardo.pid....
-1 votes
1 answer
1k views

Can't read JSON data from client (webpage) with Arduino Leonardo ETH

I'm reading a digital pin and count how many times that pin is enable, after that the data is sent in JSON format. All is working well till here. But I want to introduce a value from webpage to ...
1 vote
1 answer
595 views

Can't type backslash (\) with Keyboard library

I'm trying to make a macro keyboard, where I can press a single button and it will open programs for me. I'm trying to type this, for example: "c:\windows" but it gets typed out like this: ...
0 votes
1 answer
140 views

LiquidCrystal issue with HD44780 display

Here my sample code for an Arduino Leonardo-based custom board: #include <LiquidCrystal.h> const int rs = 3, en = 0, d4 = 4, d5 = 30, d6 = 12, d7 = 6; LiquidCrystal lcd(rs, en, d4, d5, d6, d7); ...
2 votes
1 answer
162 views

Question regarding using Arduino and MIDI

I'm using an Arduino Leonardo for sending MIDI In and Out messages to Ableton Live. Components include a Potentiometer, a Capacitive Touch Sensor, and a DC Motor, which I'm powering with a L298N Motor ...
4 votes
1 answer
1k views

Leonardo-based tachometer?

I'm new here. I'm not a native speaker, so pardon my English. I just received my Arduino Leonardo today. I tried some basic calculations and stuff like blinking and LCD interfacing. Its interesting. ...
1 vote
0 answers
45 views

Porting Arduino for ATMEGA16U2 [duplicate]

I have a bunch of ATMEGA16U2 in my drawer and I need to make a small production of custom boards with Arduino-based firmware. After a Google search I learn the ATMEGA16U2 is often hosted on the ...
0 votes
1 answer
202 views

Leonardo with hm-10 doesn't work

I have a hm-10 module attached to Arduino Leonardo board, I'm using a bluetooth terminal app to send some text. The problem is I can send data from the Serial monitor to my phone but when I send from ...
2 votes
0 answers
322 views

Stand alone Atmega328p-au

I'm trying to make a standalone arduino board with an OLED display using an Atmega328p. I never tried to make such a board using SMD components. I've soldered everything together except the OLED ...
1 vote
0 answers
469 views

Gamepad connection using Pro Micro(ATMEGA32u4 + HC-05

I have been working on making a HID compatible Gamepad using Pro Micro and HC-05 module. I have successfully configured the class of HC-05 module to appear as an Input device(A gamepad) on my PC ...
1 vote
2 answers
602 views

Keypad as game input device?

I have been trying to get a button matrix to work but im not experienced enough in programming. I Have tried to read up but i don't know how to execute so some help would be greatly appreciated. I ...
1 vote
0 answers
565 views

ATMega32u4 - Sending and receiving data through TX and RX

Hi everyone, first time here on the forum, so, apologies if I'm doing anything incorrectly. Long story short, I built a device that takes voltages in and transform them into midi data. I used an ...
2 votes
1 answer
98 views

arduino leonardo stops transmitting once hdmi cable is connected to a screen

I am using arduino leonardo for moving mouse pointer with head tracking using MPU6050. It works fine in general. But as soon as I connect an external lcd screen to my laptop via hdmi cable, it stops ...
3 votes
3 answers
10k views

Leonardo: disable TX- and RX-LED

I have the (more or less) Leonardo-compatible board Olimexino-32u4. Both, the TX- and RX-LED are permanently on. To reduce power-consumption, I want to disable them by software. What is the reliable ...
1 vote
1 answer
294 views

Ways to turn a knob with a stepper motor and an ATMEGA32u4

Hey all I am wondering what would be the best items to purchase for me to be able to turn this know (continuous) below: As I mentioned above, I would need the stepper motor to have a continuous ...
1 vote
1 answer
10k views

Arduino stopped working: avrdude: ser_open(): can't set com-state

I'm playing with my first Arduino device (Arduino Leonardo). It worked fine but at some point it failed. I'm getting this error: avrdude: ser_open(): can't set com-state for "\.\COM6" An ...

1
2 3 4 5
7