Questions tagged [arduino-leonardo]

An Arduino board based on the ATmega32u4 chip with built in USB HID functionality

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

Can't get keypad to use Keyboard.write on an Arduino Uno

I've tried to use Keypad.h and Keyboard.h libraries to get my Arduino to use my Keypad for Keyboard input. I'll start with working keypad code (which is pretty easy but it's my first post so I want ...
0
votes
1answer
36 views

Does Keyboard.begin() and Keyboard.end() make my code slower?

I'm making an IR Macro keyboard, and about 10% of the code is dedicated to the Keyboard commands, would having Keyboard.begin() and Keyboard.end() in the method responsible for typing make any ...
0
votes
0answers
19 views

Connecting Arduino Uno to Arduino Leonardo

I have an RFID shield connected to my Arduino Uno, but I want it to be able to send keystrokes to the computer when I scan the correct card. I have the Uno set up correctly so that when the card is ...
0
votes
0answers
21 views

How can I query device information on a Leonardo acting as a USB Host?

I have a Leonardo stacked with a USB Host Shield. Is there any way I can query information about any USB devices attached to it? I'm looking for any information I can get about the device, although ...
0
votes
0answers
35 views

help with an outlaw pinewood derby car

So I am trying to create a code for an outlaw pinewood derby car. It is using a brushless esc with reverse for a ducted fan. The car has a push button on the front along with headlight and brake light ...
1
vote
2answers
82 views

What happens to serial output when no-one is listening?

This question probably needs a better title but I'm having trouble thinking of one! Please feel free to edit or suggest one. My target system is a pair of Arduino Leonardos linked by XBee radios. One ...
-1
votes
1answer
48 views

USB Power switch

Can an Arduino power a USB device like a tablet from one of it's pins or do I need a relay? I want to essentially have the Arduino turn on and off a USB charger. Thanks
0
votes
0answers
28 views

How to quit flash mode on HM-10?

I have an HM-10 BLE module connected to Arduino Leonardo. It forwards UART from my computer: #define btSerial Serial1 void setup() { Serial.begin(9600); while (!Serial) { delay(50); ...
0
votes
1answer
41 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, ...
2
votes
2answers
320 views

Multiple Time-Sensitive Tasks

I'm using an Arduino Leonardo and need to perform two time-sensitive tasks like this: // Task 1 - Gets executed once a second (1Hz) // Execution of task needs approx 70ms task1(); //Sending a ...
0
votes
1answer
151 views

Connect Arduino to LiDAR via RS-232

Edit: We're so close! Update at bottom! I'm not sure if this is the right place to ask, but since you helped my so much in the past, I thought it's worth a try. So as I stated in my last question, I'...
-1
votes
1answer
19 views

How do i Connect multiple sensors in one arduino. Which are namely a accelerometer, GPS, microphone and a GSM module [duplicate]

I am a noob in the Arduino world and have only started reading about it. I have zero experience with Arduino some suggestions to increase my level will also be highly appreciated. But I have a lot of ...
0
votes
0answers
52 views

ATMEGA32u4 Arduino Bootloader Issues

I've been struggling with this issue for a few days on and off now.  I made a custom PCB (schematic) for a smaller Arduino Pro Micro and it works - mostly.  The only issue I had was that the pins on ...
0
votes
1answer
38 views

How to connect accelerometer, GPS, microphone and a GSM module to a Arduino? [closed]

I am a noob in the Arduino world and have only started reading about it. I have zero experience with Arduino some suggestions to increase my level will also be highly appreciated. But I have a lot of ...
0
votes
0answers
31 views

Leonardo doesn't have enough memory to run a TFT and handle MIDI messages

So, I got a Leonardo because I plan to build a device to draw MIDI CC curves on a touchscreen TFT to be sent over MIDI to a DAW. I'm in the initial testing stage, and got a basic Paint application to ...
1
vote
0answers
33 views

default in switch doesn't appear to execute

I have a situation where the default case in my switch statement doesn't appear to execute as expected. I wonder if there is some subtlety I'm missing here? Given the following enum: enum ...
0
votes
1answer
55 views

ATMega32u4 SLEEP instruction

I was reading the ATMega34u2 datasheet and trying to figure out Sleep Mode. I know most people recommend using avr/sleep.h library. But I wanted to try out using the registers. I am fairly new to all ...
0
votes
1answer
40 views

How can I clear the memory of my Arduino in this case?

I have made a code using involving HID control. But it seems that I messed up, but I can't upload a new sketch(nor edit the wrong code), because my Arduino is constantly doing things like Ctrl+Alt+...
0
votes
0answers
59 views

RadioHead Library and SPI Device (MAX7219) not working together

I am trying to use the RadioHead Library (receiving a 433Mhz Signal) and an LED Matrix (Max7219 via SPI) on the same Arduino Leonardo. Now either one works fine when only it is connecting. But when ...
0
votes
0answers
34 views

i failed to upload code to my arduino leonardo

processing.app.debug.RunnerException at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:160) at cc.arduino.UploaderUtils.upload(UploaderUtils.java:82) ...
0
votes
1answer
72 views

HC-05 can not use lower pins only 8 and higher

#include <Arduino.h> #include <SoftwareSerial.h> char Incoming_value = 0; // SoftwareSerial BTSerial( 10, 11 ); // RX | TX + // SoftwareSerial BTSerial( 9, 10 ); // RX | TX + // ...
0
votes
0answers
108 views

It is possible to revive my Arduino Leonardo (mini beetle) board?

I have this board: It has the atmega32u4 chip. I have updated its code several times, and used it without issues for several months. Today, while updating (using Arduino IDE) it started to throw ...
1
vote
0answers
1k views

Cannot upload to Leonardo after update to macOS Catalina

I'm not sure this is the right site, but I've spent several hours trying to figure out why I suddenly cannot upload to my Leonardo (actually, a "Pro Micro" with a 32u4) after upgrading to macOS ...
0
votes
1answer
35 views

Flash size in boards.txt ATmega 328p 32u4

The ATmega328p and ATmega32u4 microcontroller have 32Kb of flash memory (as datasheet). Bootloader for each microcontroleer has different size (about 512 byte for 328p and 4kb for 32u4). Why in ...
1
vote
2answers
286 views

Arduino I2C Wire.onReceive hangs after a few loops

I have an Arduino Leonardo (master) and a Polulu A-star 328 PB(slave). I intend to use the slave to actuate some servos. I've modified the code from https://www.arduino.cc/en/Tutorial/MasterWriter to ...
0
votes
0answers
148 views

Problem sending IR signal on Arduino Leonardo/Uno (IRRemote library)

I am trying to use my Arduino Leonardo (or Uno!) as a remote with the IRRemote library. The current setup picks up and decodes a signal perfectly, but fails to retransmit it. I have tested the ...
0
votes
2answers
739 views

Which kind of diodes I should use in buttons/keys matrix input? (Making gaming keyboard)

When making matrix input of NxM columns/rows with push buttons, there should be a diode next to each button to prevent "ghosting" and able read many keys pressed together correctly. There is a lot of ...
0
votes
1answer
81 views

Windows 10 does not recognize Arduino Leonardo

Using Arduino Leonardo, IDE 1.8.9, Windows 10. For a short time, when I first got the Leonardo, Windows 10 would recognize the board; I could see it in devices, Windows 10 would make a sound when ...
0
votes
1answer
57 views

Changing ESP-12E NodeMCU to ESP-01S - how to trigger sketch?

I had my sketch up and running with a NodeMCU and a Leonardo Pro Micro and decided I wanted to minimize the footprint of the project and use the smaller ESP-01S board instead. The ESP-01S is ...
0
votes
1answer
74 views

Leonardo soft bricked

I was uploading a sketch to my Arduino Leonardo and I pressed the reset button accidentally while it was still uploading. Now the board does not get recognized by my computer. Is there something that ...
2
votes
3answers
227 views

Using Servo on Timer3 on a Leonardo

I would like to use the Radiohead library and control a servo from the same Leonardo board. Now the Radiohead library occupies timer1 and therefore cant be used together with the servo library. (It ...
0
votes
1answer
246 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 ...
0
votes
0answers
190 views

How can I send AT commands to HM-10 module from my android phone?

Earlier today, I was able to connect flawlessly to my HM-10 module via the Arduino serial monitor. I think I then changed some settings without thinking and now I can no longer connect to it. No ...
0
votes
3answers
761 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 ...
2
votes
0answers
62 views

Why would using the += operator on an unsigned long crash my sketch? [closed]

I wrote a simple Timer class that's designed to work even in the face of the 49 day wrap of the millis() counter. I wanted a library that I could easily re-use and I could never remember the right way ...
-1
votes
1answer
29 views

Light Sensor - how to wait for specific setting then continue on Leonardo?

I have an analog light sensor working on my Micro Pro Leonardo board. I want to reach a part of my code which include keyboard presses where it monitors to see when an LED flashes and then continues ...
-2
votes
1answer
87 views

Using two leds with one push button [closed]

How can I make the code of this project where I will press one time a button, to turn on the first led (and turn off second led) and when other one press to turn on second led (and turn off the first ...
0
votes
0answers
28 views

Trying to install amforth on Leonardo board

Just got a Arduino Leonardo (with headers) dropped in my lap this week. I've tried experimenting with the Arduino C++ IDE and find it awkward. I have some previous experience with Forth and would like ...
0
votes
0answers
162 views

Leonardo - send key command after HID connection with computer established automatically?

Have confirmed that the BootKeyboard programming on the Leonardo is able to launch the macOS recovery partition or boot screen. The problem I've got is that this only works if you send it after the ...
1
vote
1answer
134 views

How to trigger NodeMCU sketch from Arduino Leonardo Micro Pro?

So this is probably a very simple question. I have my NodeMCU set up and working where it connects to wifi and sends a push notification. Currently it does that automatically when connected to power. ...
0
votes
0answers
110 views

Arduino IDE 1.8.8 built in 1.2.1 Temboo Library?

I am weirded about the built-in "latest Temboo library" with the latest Arduino IDE; when a previous older code says to download the latest Temboo version < 2? (which I found this: https://temboo....
2
votes
0answers
290 views

TRIAC Pulse driver for Spot Welder (help needed with programming)

I have designed and built a transformer driver board for my spot welder. It is powered from mains electricity (230 V) and consists of the following segments: triac drive and protection, zero cross ...
0
votes
2answers
2k 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 ...
0
votes
0answers
85 views

Arduino Leonardo board - not running or appearing a USB on external power

I've got an Leonardo board, it seems to be official, in that it has the Arduino branding and Made In Italy on the bottom. However I cannot get anything to run with external power supply. Everything ...
0
votes
0answers
48 views

Question about controlling servos with PWM while being able to accurately read the current from a sensor

Hi I am hoping to design a custom board ATMEGA32u4 with practically a Arduino leonardo bootloader. I plan to control up to 12 servos while being able to read back the current sensor voltage of an ...
1
vote
2answers
65 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
73 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 ...
2
votes
1answer
362 views

Triggering a soft reset (Arduino Leonardo)

I want to trigger a soft reset on my Arduino Leonardo, and after some searching settled on using the watchdog timer, as it seemed to be the easiest and cleanest way to do it. However, I don't think ...
1
vote
2answers
279 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;...
0
votes
2answers
80 views

Is there a way to traverse a filesystem and read files with an arduino?

I recently got into arduino and I want to set up something big. My project will need the arduino to be able to get into a specific directory of a windows (later may change to linux but for now windows)...

1
2 3 4 5 6