Questions tagged [arduino-leonardo]

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

328 questions
4
votes
1 answer

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 try to upload a new sketch that fixes the issue, I…
user36797
4
votes
3 answers

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 can see from this link. The issue is that after…
Isra
  • 95
  • 3
  • 11
4
votes
1 answer

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 is 28,672 bytes. Global variables use 148 bytes…
3
votes
1 answer

Can the Leonardo Arduino be used as a USB HOST for CDC Com devices?

I am trying to connect a CDC communication device to the Leonardo USB port and have communication with it via the TTL com port. Basically I want to echo to the TTL port whatever is transmitted over USB and vice-versa. ASCII data is transmitted out…
AA9GG
  • 31
  • 2
3
votes
0 answers

Using Leonardo and getting absolute x,y Mouse values

Trying to modify the native mouse methods so that it can use absolute, rather than the relative values it currently uses. This is so it can function as a touch screen pointer, and NOT a mouse. Am using this modified HID.cpp file…
Bachalo
  • 251
  • 4
  • 12
3
votes
3 answers

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 way to do it?
Thomas S.
  • 566
  • 2
  • 8
  • 20
3
votes
1 answer

Arduino Leonardo runs unusually hot

I have a genuine (purchased from Adafruit) Arduino Leonardo that I have had for 2 years and I have not had any issues with. However, I have always noticed that it seems to be running suspiciously hot for a low power microcontroller, sometimes even…
3871968
  • 308
  • 1
  • 2
  • 10
3
votes
3 answers

How Do I Properly Ground my Arduino Leonardo using Capacitive Sensor?

Hi we are using Arduino Leonardo with some electric paint and Capacitive Sensor Libraries. We have a lot of variance in our Serial output from our sensors, we believe if we grounded the Arduino we would have more concrete values. On the Capacitive…
user1354
  • 31
  • 2
2
votes
1 answer

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 somehting like 150 pixels right and/or 150 pixels…
Owow
  • 123
  • 2
2
votes
0 answers

Arduino leonardo + OV7670 non-FIFO

I want to transfer image to PC via Arduino leonardo. OV7670 is non-FIFO, and no SD card connected. I followed this blog and this youtube video.using this code. when uplaod, I got errors below: Arduino: 1.8.5 (Windows 10), Board: "Arduino…
2
votes
0 answers

can this piece of a camera flash send an input signal to my arduino?

I have a piece of a broken camera flash (an old Yongnuo one) that has a single pin that tells the flash when to fire. The pin looks like this : (I guess the ring is the return/ground?) The other side of the piece looks like this: If my guess isn't…
ajlowndes
  • 121
  • 2
1
vote
1 answer

Overriding main function in Leonardo

I've trying to write my code in plain C++ dropping out the Arduino's IDE. Although I've succeed in compiling the code, whenever I try to upload it to the board it doesn't run, seems that it stucks at some unknown point. After that, everytime I try…
fjrg76
  • 31
  • 4
1
vote
1 answer

Leonardo keypresses not working with OBS

I am using an Arduino Leonardo to have hotkeys for OBS but they don't work when the OBS Studio window is not focused. I have the Leonardo press Ctrl + Alt + Shift + F7 when I press a button connected to the Leonardo. On OBS I have Ctrl + Alt + Shift…
Ryan Vogel
  • 23
  • 4
1
vote
0 answers

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 LED's. My goal is to push the front button 5…
1
vote
3 answers

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 about how I would do the median filtering. I am also…
eateat
  • 19
  • 1
  • 3
1
2 3