Skip to main content

Questions tagged [arduino-leonardo]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
16k views

Simple Multiple RX/TX SoftwareSerial?

In this project I will be using multiple ESP8266 WiFi modules (4) connected by software serial to an Arduino Leonardo Micro (1 UART). I plan to rotate between all 4 (starting with 2): Open port, write,...
WaffleFPV's user avatar
4 votes
1 answer
2k views

How do I prevent Arduino from running on startup?

I just uploaded a sketch to my Arduino Leonardo, which presses a key on the keyboard. The code was unfortunately bugged and now as soon as the Arduino is powered on, the key is being pressed. When I ...
user avatar
4 votes
1 answer
2k views

Arduino Leonardo(Atmega32u4) - Detecting if USB is connected to a computer?

The closest thing I can find is if(Serial) but that only returns true if there's a serial port open. The function I want, ideally, should: Return true if plugged into a computer Return false if ...
Stephen's user avatar
  • 43
2 votes
0 answers
594 views

PS2 Keyboard and sending keystrokes between a Leonardo and several pro micros

I am working on a project where I am taking the the key presses from a PS/2 keyboard and passing them to several pro micro boards so I can type the same commands on multiple computers at the same time....
landres's user avatar
  • 21
0 votes
2 answers
2k views

Pressing reset button restarts program only seconds latter

I am wondering why after pressing the reset button on my Arduino, the latest program loaded runs but only after about 5seconds. The same thing happen when I run my arduino from the computer using the ...
user35199's user avatar
0 votes
1 answer
119 views

Trigger countdown with 433MHz transmission

I would like to use an arduino to read 433 MHz transmission from multiple Soil Moisture Sensors. Since I can never be sure all transmissions reach the receiver I'd like to set a countdown from the ...
Peter S's user avatar
  • 125
-1 votes
1 answer
368 views

Which Arduinos have a true serial port?

After driving myself insane with an unreliable Leonardo, I narrowed down the problem to its serial port. Namely, it's not a true serial port, but some sort of simulated monstrosity that can't be ...
Cerin's user avatar
  • 1,648
1 vote
1 answer
2k views

Unable to upload code to Leonardo

I was using Arduino-Makefile to upload code to a Leonardo via its standard make upload. However, it became "stuck" and unresponsive, as Leonardo's sometimes do. I tried power cycling it, and ...
Cerin's user avatar
  • 1,648
-1 votes
1 answer
67 views

Taking pictures with a small Arduino

I'm trying to make a time lapse video of a crystal patch in a small space. I need some way of taking a picture every hour or so within an area no greater than 35mm, the smaller the better. Something ...
David Robie's user avatar
0 votes
2 answers
2k views

Arduino Leonardo as USB Keyboard with WiFi module

I have two PCs: the first is connected to the Arduino via WiFi, this will instruct the Arduino what keys to send, and the second PC is connected to the Arduino via USB that will act as a USB Keyboard ...
Kentokun's user avatar
5 votes
4 answers
4k views

Library to set internal analog gain of the Arduino?

My original question was if there is a library that covers the internal comparator and differential and gain modes for the Arduino Uno, Mega 2560, Leonardo, Due, Zero, M0. The answer is obvious: "No". ...
Jot's user avatar
  • 3,246
-2 votes
2 answers
629 views

Conversion of Arrays into Matrix? [closed]

I'm going through problem in Arduino code. I have three Arrays and want to convert them into a matrix. I have tried hard but couldn't solve issue. float lb1[24]={1580,480,1580,1580,580,1950,3125,...
Hafeez Ahmad Fii Zue's user avatar
0 votes
1 answer
228 views

Yun UBoot Prompt Not Showing

I have a Geeetech Iduino Yun Shield. I accidentally flashed the wrong firmware image (not the sysupgrade) to the board. I then tried using the Yun UBoot Reflash method. However, when I open the ...
Agi Hammerthief's user avatar
4 votes
3 answers
837 views

Moving wiring.c functions from timer0 to timer1

I am using an Arduino Leonardo (ATmega32U4) and need to use timer0 for PWM. Since by default in the wiring.c file the functions micros() and millis() use timer0, I decided that, since timer1 isn't ...
aflyingcougar's user avatar
4 votes
1 answer
8k views

Can Arduino Leonardo use USB port and RX TX serial pins at the same time?

Can I use the TX/RX on pins 0, 1 (to a serial slave device) while also having the USB port dedicated PC communication?
101's user avatar
  • 215
1 vote
1 answer
640 views

Directly read analog voltage using PWM duty cycle timer registers

I'm outputting an analog voltage by setting an 8-bit duty cycle using analogWrite. Once set, I'd like a way to read back this duty cycle. I've managed to read the duty cycle back from the OCR4D ...
101's user avatar
  • 215
2 votes
0 answers
578 views

NEO 6M doenst provide coordinates

I do a school project (CanSat) it's an international project. But my problem is my GPS. I tried 2 different codes. Both they say the GPS is connected. They GPS led doesn't provide any light. wiring: ...
Hp school member's user avatar
1 vote
1 answer
284 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 ...
StealthRT's user avatar
  • 259
0 votes
1 answer
202 views

POE with Arduino Leonardo Eth

I recently purchased a Leonardo Eth and a 5v POE module in an attempt to have a POE micro-controller. I installed the module in the holes closest to the Ethernet jack side of the board, but when I ...
Eric Johnson's user avatar
2 votes
7 answers
20k views

Better cycling through the RGB colors

I have been trying to achieve a way to tap into the 16 million colors RGB provides for this LED strip. I thought of using LEDS.setBrightness(); but I have not been successful in my attempts. I have ...
Oddacon's user avatar
  • 185
0 votes
1 answer
111 views

Reading multiple cases on Serial

I am using a Leonardo board and am testing the APIs in the Serial type. The board is talking to a screen using serial. The pseudo code is as follows (I show code relevant to Serial): void setup(void)...
Jake's user avatar
  • 101
1 vote
2 answers
1k views

Encoders for precise robot turns

So I recently purchased: DFRobot Wheel Encoders DFRobot 3PA and 4WD Rovers (2pk) Romeo V2 Arduino Controller I was doing a bit of research online and I'm trying to figure out how to use the ...
user367640's user avatar
1 vote
1 answer
1k views

WS2812B strip stopped responding to control

I have a WS2812B LED strip (A clone of the Adafruit one I assume, it's from China via eBay) of 60 LEDs. When I got it, it was all fine - I could load the FastLED examples and they would work perfectly....
Taz's user avatar
  • 111
4 votes
3 answers
4k views

Getting a fixed sampling rate

Ultimately I will move to a generic smart phone for this project. I'm trying to read 4 analog inputs from my arduino with a fixed 1kHz sampling frequency. I managed to set it to read at 1kHz as you ...
Isra's user avatar
  • 95
2 votes
3 answers
1k views

Arduino analog input protection

I've been trying to find a way to protect my analog input pins (for my Leonardo and Pro micro). I'm basically using them to read an amplified piezo sensor output. The output is amplified because I'm ...
Isra's user avatar
  • 95
1 vote
4 answers
3k views

Delay between multiple analogReads

I'm trying to read 4 analog inputs (1kHz speed). I changed the prescaler to 16 for my Arduino Leonardo according to this link. I then tried to read the analog pins and I used the following code to ...
Isra's user avatar
  • 95
1 vote
1 answer
766 views

Arduino and GPS module Neo 6m

I have an Arduino Leonardo and a GPS module "NEO 6M" Pinout: PPS->free rxd->11 txd->10 gnd->gnd vcc->5v I'm running this code: #include "SoftwareSerial.h" ...
Francesco Valla's user avatar
1 vote
1 answer
70 views

Arduino Leonardo clone voltage question

I'm planning my first Arduino project which involves a MPU-6050 accelerometer(3.3V) and a RGB led(5V). I've found this Arduino Clone but i'm not sure if it has 3.3V and 5V outputs that I can use. The ...
Paul Etscheit's user avatar
0 votes
1 answer
388 views

why leonardo bootloader is bigger than UNO?

Apparently leonardo and UNO are very similar boards. However, despite that both have the same flash memory size, Leonardo bootloader is considerably bigger than UNO bootloader (4KB vs 0.5KB). what ...
dsncode's user avatar
  • 131
4 votes
1 answer
14k views

How to convert Arduino example sketch to a complete c++ project?

I'm experimenting something new with my Arduino Leonardo. I removed its original bootloader and flashed it with LUFA mass storage example with added functionalities(now its a firmware). I'm trying to ...
Isuru's user avatar
  • 151
0 votes
1 answer
65 views

Arduino Leonardo model differences

I was thinking of buying another Arduino, and the Leonardo looks appropriate. However I am confused! The Comparative Tables seems to show 2 different Leonardos. (This table is very difficult to read ...
Milliways's user avatar
  • 1,645
0 votes
2 answers
217 views

Using Arduino libraries for adding more functionalities to a bootloader

I have a short question to ask before putting time for research. I have an Arduino Leonardo with the LUFA mass storage bootloader flashed. Now what I need to do is to add more functionalities to the ...
Isuru's user avatar
  • 151
0 votes
1 answer
210 views

Problem with uploading LUFA MassStorage .hex file to Leonardo

I have been trying to make my Leonardo board to work as a USB device. So I started with compiling the open source LUFA USB library demo "MassStorage" for the Leonardo board settings. Since I'm using ...
Isuru's user avatar
  • 151
0 votes
1 answer
661 views

Arduino leonardo. Encoder mouse movement

I want to connect my sensonrs to an arduino leonardo. The principal idea is use it like a scratch (like dj hero or beatmania??), if I move the scratsh up, the mouse will go up ( y Axis ), and if it ...
Luster's user avatar
  • 3
0 votes
1 answer
201 views

Keyboard.println missing characters when I print long strings

The topic is pretty straight forward: When I use Keyboard.println(), it sends short (up to 30-ish) strings just fine, but when I get up around 100 characters there are random characters missing. "...
xTakk's user avatar
  • 1
1 vote
1 answer
1k views

ard-reset-arduino resetting Leonardo/Micro via USB works on OSX, fails on Ubuntu

I'm trying to program a Leonardo (actually a Micro ATmega32U4) via the command line using USB. Schematically, I'm doing ard-reset-arduino followed by a sleep 1 and an avrdude command. This works ...
fearless_fool's user avatar
1 vote
1 answer
659 views

Arduino Leonardo - disabling the debugger port

My Sketch program is working perfectly as a specialized keyboard application on the Leonardo. I want to disable the development tools drivers from the USB, (COM PORT) leaving only the HID Keyboard ...
DuckPaddle's user avatar
0 votes
1 answer
662 views

RF24 communication between Leonardo and Micro not responding

I have Arduino Leonardo and Micro. I can't manage them to communicate via nRF24L01. I made a receiver and sender sketch to test it and can't see any respond. I tested the same code on two arduino nano ...
ErnestW's user avatar
  • 109
1 vote
1 answer
51 views

Combining arduino leonardo code with water alarm code

I need to create something for a school assignment, but I'm stuck at the moment. I have one code, which makes the Arduino Leonardo press space button on my laptop, which works. I have another code, ...
Mathijs's user avatar
  • 11
0 votes
1 answer
1k views

Atmega32u4 external 8MHz clock

Does anyone know how to configure the Atmega32u4 to run using an external 8MHz oscillator ? I needs to still be responsive to the Arduino IDE Thanks
hoboBob's user avatar
  • 183
1 vote
1 answer
405 views

Keyboard key press listener

Is there a way to make a listener for a key press to begin a loop? Example: I press the Tab key on my keyboard and the programmed loop begins running. Essentially creating a keyboard hotkey.
user3439024's user avatar
3 votes
1 answer
1k views

Arduino Leonardo - Using ICSP pins for serial

I'd like to know if it's possible to use the ICSP header pins on the Leonardo as GPIO pins, for example for software serial, and how to address them. I've a project which needs all available I/O pins, ...
Christian Rodriguez's user avatar
-1 votes
1 answer
285 views

"Exit(0);" caused uninterruptible uninterruptible loop on 32u4 board

I bought this 32u4 board on Amazon (https://www.amazon.it/gp/product/B019SXN84E/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1) that should be recognised as an Arduino Leonardo by the Arduino IDE. At ...
mrcmlnr's user avatar
2 votes
0 answers
126 views

Multi Agent Systems

In my project work, I have 3 robots with their own Arduino boards. Each robot has Infra Red Sensors, whose values I can read using its corresponding Arduino. The main thing however is that each robot ...
Craig's user avatar
  • 21
4 votes
1 answer
2k views

Wrong microcontroller found on Arduino Leonardo

When I try to upload a sketch on this brand new Arduino Leonardo, I get this error: Arduino: 1.6.11 (Linux), Board: "Arduino Leonardo" Sketch uses 4,134 bytes (14%) of program storage space. Maximum ...
Riccardo Cagnasso's user avatar
3 votes
1 answer
3k views

What's Leonardo 5V pin current limit?

I'd like to know how much current can supply the 5V pin and the 3.3V pin on an Arduino Leonardo board. I've been lead not to trust the specs on Arduino's website. And, as an added question, can the 5V ...
Christian Rodriguez's user avatar
2 votes
2 answers
2k views

Powering ESP8266 from Leonardo's 3.3v pin

I'm new to Arduino, and I'm trying to connect my Leonardo via WiFi using a ESP8266 module. What I want to know is if I can power it directly from the onboard 3.3V pin like in the image: Or do I need ...
Christian Rodriguez's user avatar
2 votes
0 answers
2k views

Arduino Leonardo isn't detected by Linux Mint on serial port /dev/ttyACM0

I'm working on Linux Mint 18 Sarah (earlier Ubuntu 16.04 LTS) system. I've installed Arduino IDE using command sudo apt-get install arduino and I've added me dialout group using sudo usermod -aG ...
hubot's user avatar
  • 121
-2 votes
1 answer
252 views

Use a 2.8" TFT with my Leonardo

for 2.8" diagonal color touchscreen TFT: Readme states: "Works with any classic Arduino '328. Solder closed three jumpers to use the ICSP header for use with Leonardo or Mega" What should I solder? ...
Dick_H's user avatar
  • 7
6 votes
2 answers
11k views

A question about resistance measurement with arduino

Lately I was asking myself about the possibility of measuring a potentiometer resistance with Arduino. My questions are: Is it possible? If it's possible, what kind of restriction does the Arduino ...
Julio Orozco's user avatar

1 2 3
4
5
7