Questions tagged [arduino-leonardo]

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

Filter by
Sorted by
Tagged with
-3
votes
0answers
54 views

What is the critical level of memory usage for Arduino Leonardo

Well I have a GSMshield with arduino leonardo and making some codes. Because of out of memory arduino stop to do something. I do not want to be misunderstood, I dont want fix this code, because I am ...
1
vote
0answers
13 views

Leonardo Board stops reading analog input

I'm currently writing software that reads in analog data, writes it into an instance variable array, then returns the address of the array. However, after a few iterations of loop, the program stops ...
1
vote
1answer
56 views

String(int) function stopping the Arduino

Well I am trying make an application with arduino leonardo and GSM Shield. There are conditions if, else if, else .. etc if (smsMetni.indexOf("DURUM") != -1) { Serial.println("SMS ...
0
votes
0answers
20 views

Can the Arduino Leonardo Read 3.3v digital input? [duplicate]

I'm having difficulty finding information about the ATmega32U4 logic levels for the digital input ports. I was wondering if I can hook up the 3.3v output of https://www.amazon.com/dp/B07KBWVJMP/ (HC-...
0
votes
1answer
35 views

Arduino Joystick Library not Recognized by Games (Steam)

I have an Arduino Pro Micro running code that uses the Arduino joystick library to act as a gamepad. I'm just doing testing right now so there's a single button wired up and configured in the code. ...
0
votes
0answers
33 views

leonardo mouse readings

hi there im using arduino uno + usb host shield and i have taken the readings from the usb mouse in this line of code : x = mi->dX; and the x output is the speed of the mouse x coordinates and i ...
0
votes
0answers
23 views

How do i efficiently write this code for PS2 controller to USB convertion sketch for Arduino Pro Micro?

I am really new to coding and building stuff, so forgive me if it is anything offensive.i have been trying to convert my PS2 dualshock controller to USB using arduino. there is a library called ps2x ...
0
votes
0answers
23 views

WIFI Bee ESP8266, MySQL and PHP

I am trying to update a db table using a WIFI Bee. For the life of me, I can't figure out how to connect to and program the WiFi Bee ESP card. I've looked on DFRobot's website and other websites to ...
0
votes
0answers
50 views

avr-g++: error: missing device or architecture after '-mmcu='

Im on Linux Manjaro right now and Im following this tutorial (https://youtu.be/qAM2S27FWAI) on how to use Arduino from the command line. Im currently trying to create a Makefile for my Arduino ...
2
votes
1answer
64 views

Blank project gives errors while uploading Arduino Leonardo on Linux Manjaro

I'm on Linux Manjaro. I plugged my Arduino Leonardo clone (that I know works correctly). And tried to flash a blank project on it: (My IDE version is 1.8.12) void setup() { // put your setup code ...
0
votes
1answer
40 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
1answer
51 views

How can I understand which arduino I need to run some code?

I want to build this project (but any other project would give me the same uncertainty): https://github.com/ltpitt/arduino-n64-controller-library But I cannot understand which arduino I can buy that ...
0
votes
1answer
50 views

Does the MKR WIFI 1010 support the arduino mouse and keyboard controller?

I am working on a project right now that needs to connect to my computer via bluetooth and access the arduino mouse and keyboard library. In my research, I've found that only the Leonardo, Due, and ...
1
vote
1answer
21 views

TLE9879 BLDC shield won't communicate

I just got the TLE9879 BLDC shield, which I connected to an Arduino Leonardo. Compiling the example sketch (bldc_shield_blinky_test) went fine, however, upon flashing it to the board the LED on the ...
0
votes
2answers
62 views

Can a video game potentially detect arduino leonardo?

If I automated an action in a video game through arduino leonardo, can it be detected? Things like autohotkey can be easily detected, however i would expect an arduino would be far more difficult. How ...
0
votes
1answer
31 views

Mouse.move values

I understand that Mouse.move move the mouse from its current position, example: Mouse.move(100, 100); Will move the mouse to 100 pixels right and 100 pixels down. But in reality it will move to ...
0
votes
1answer
62 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 ...
0
votes
1answer
53 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
39 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
25 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
29 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
36 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
96 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
100 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
37 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
53 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
338 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
163 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
22 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
63 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
42 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
38 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
35 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
97 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
50 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
77 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
44 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
87 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 + // ...
1
vote
0answers
211 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
44 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
438 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
221 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
2k 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
118 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
66 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
105 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
302 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
373 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
219 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 ...

1
2 3 4 5
7