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
1 vote
1 answer
760 views

Arduino IDE Unable to detect ZumoMotor.H ( PIXY PET )

recently i trying to make the pixy pet work for my project. (https://learn.adafruit.com/pixy-pet-robot-color-vision-follower-using-pixycam/playing-with-your-pet). I used the given code for the ...
Jeremy Ong Xuan Yu's user avatar
2 votes
1 answer
5k views

USB MIDI HID with the ATmega32u4?

There are existing projects that allow the Uno and other devices using the ATmega8u2 to operate as a USB MIDI HID, such as MocoLUFA. Unfortunately, as far as I am aware, these require uploading new ...
naught101's user avatar
  • 123
1 vote
1 answer
3k views

Confusing Arduino Leonardo PWM

I'm having problems with using Arduino Leonardo PWM outputs (I'm actually using YUN board). I need 4 PWM outputs that generally have the same base frequency of around 10 to 20 Hz or so. I'm using ...
rough neck's user avatar
1 vote
5 answers
21k views

How to connect the INT pin of a MPU 6050?

I am using an Arduino Leonardo together with a GY-521 breakout board (like this one, schematic) for an MPU 6050. I am currently trying to get the DMP Version of the examples from Mr Rowberg to work. ...
Jens's user avatar
  • 133
2 votes
1 answer
1k views

Why is Arduino STINO upload function not working?

I'm using sublime text for editing and modifying my arduino libraries. Sublime text is pretty pretty, useful and embed a very powerfull plugin system. Someone created an Arduino plugin for it. The ...
CopperMaze's user avatar
0 votes
1 answer
2k views

Wrong Mouse.move() output in Arduino Leonardo

I'm using my Arduino Leonardo as a Mouse but I'm experimenting a strange behaviour. I put my mouse at (-1, -1) (absolute) coordinates and then I execute this code: Move.move(com[curr_cmd_id].x, com[...
Cob013's user avatar
  • 101
2 votes
1 answer
1k views

I2C seems to stop working when I attach an AF motor shield

I have a cheap MPU 6050 chip that communicates over 3.3V I2C. I can talk to it just fine on my Leonardo. If I add an additional Adafruit Motor shield (the old one), my MPU 6050 demo sketch hangs ...
Jens's user avatar
  • 133
3 votes
0 answers
4k views

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 ...
Bachalo's user avatar
  • 251
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 ...
Thomas S.'s user avatar
  • 566
1 vote
1 answer
212 views

Arduino Controlling through C#

i would like to measure some signals from arduino and send it to a pc using USART and display the results in a c# winform application. Does anyone have such a project example ? Besides, i want to send ...
user3213767's user avatar
8 votes
4 answers
2k views

Leonardo (32u4): ways to brick it programmatically

When the Leonardo was introduced, I think, I've read some articles about being cautious to do some things, that could cause it to not load any new sketches any more, so one has to rewrite the ...
Thomas S.'s user avatar
  • 566
1 vote
2 answers
1k views

Leonardo (32u4): Timer0 problems with CTC mode

I want to use timer 0 to generate a rectangular signal on OC0A (D11) without the use of Arduino specific functions (that use timers for themselves). When I toggle D11 manually using a loop, I hear a ...
Thomas S.'s user avatar
  • 566
2 votes
2 answers
4k views

Problem loading sketch to Leonardo

Today I got Arduino Leonardo to replace my Uno. I've tried running one of sketches I use on the Uno, but with no luck. When I start the upload, RX LED on the Leonardo flashes few times, and after ...
Kaidan Alenko's user avatar
1 vote
4 answers
2k views

What's wrong with my undetected, unresponsive Arduino Robot?

I was wondering if someone could try and solve a major problem I've been having with a brand new Arduino Robot (similar to an Arduino Leonardo). Any input would be very much appreciated! I've been ...
jonnolly's user avatar
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. ...
x0x's user avatar
  • 149
1 vote
1 answer
9k views

Why PIN3 stays at 1v3 in a IR emitter project?

Here is my very simple IR emitter circuit. OSI5FU5111C-40 is an infrared LED. I am using the IRremote library from here in this simple sketch, #include <IRremote.h> unsigned int raw[100]={... *...
Znatz's user avatar
  • 113
5 votes
2 answers
464 views

Arduino Leonardo timing Inconsistency

I've got a question regarding the use of Millis() on a Leonardo Arduino. I'm currently using it to time 4 seconds elapsed while sending a serial message every second. These messages play a sound. On ...
Karoly S's user avatar
  • 281
2 votes
0 answers
892 views

Teensy USB Core on Leonardo

The USB Serial speed on the teensy is WAY faster then on the Leonardo. Looks like because they have greatly improved the USB code. Has anyone had any luck using the Teensy core libraries on a Leonardo?...
Adam Haile's user avatar
0 votes
2 answers
85 views

Keyboardmessage on Arduino UNO

Can an Arduino UNO and Arduino Leonardo do the same things? Some of the examples in the Arduino software say to use Leonardo e.g. KeyboardMessage.
usingla's user avatar
  • 11
4 votes
2 answers
5k views

Uploading Sketches from Windows Command Line

The resources I've found regarding the Command Line interface seem to be out of date so I was hoping to find someone with experience using it. I'm currently running Arduino 1.5.6-r2 BETA on Windows 8....
Karoly S's user avatar
  • 281
2 votes
3 answers
2k views

Power small hobby motor using Vin pin on Arduino and 9V battery, safe?

I want to power a small motor with a 9V battery and control it with PWM using an Arduino Leonardo. I know I can power the motor separately, but this introduces the problem of needing a battery to ...
Steve's user avatar
  • 23
3 votes
2 answers
2k views

portd not writing on digital ports 5 and 7

I try to build a function generator (preferably a sine) with an R-2R ladder and a Arduino Leonardo by Borderless Electronics. For performance reasons one should use portd instead of digitalWrite. ...
stebu92's user avatar
  • 133
3 votes
3 answers
1k views

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 ...
user1354's user avatar
5 votes
1 answer
2k views

Can I speed up the Leonardo bootloader?

Inspired by an example question before beta, can I make the Leonardo bootloader take less that 8 seconds to run? It is very slow and I want to speed it up somehow.
TheDoctor's user avatar
  • 3,479
2 votes
1 answer
346 views

Arduino Uno and Leonardo SPI clock can't be measured

I want to measure the SPI clock (pin 13) using the Arduino example code for the SPI library (very simple example). Basically independent from the loop function, the clock should be fired continuously. ...
user3213767's user avatar
6 votes
3 answers
14k views

How can I filter out noise from ADC lines without delay or signal change?

I'm working on a project with a joystick and I'm trying to keep everything a simple and low latency as possible. I am reading the pots with the onboard 10bit ADC on the ATmega 32u4 but may be ...
user862's user avatar
  • 71
1 vote
1 answer
725 views

How do I use a i2c port expander to read buttons with pull ups and inverting the resulting uint16_t?

I am using a mcp23017 to read button presses for my joystick project and am using the internal pullup to minimize complications. Is there a way to invert all the bits in the uint16_t so i can send the ...
user862's user avatar
  • 71
2 votes
2 answers
2k views

Serial.read has garbled data after a Serial.write

I'm using the Serial1 of the Arduino Leonardo to send and receive data with another MCU. The following code will always retrieve garbled data: byte streamReadResponse; Serial1.begin(115200); Serial1....
Roberto's user avatar
  • 141
22 votes
2 answers
27k views

Why do some pins have a different PWM frequency?

According to the Arduino reference for analogWrite(), the PWM frequency on most pins is ~490 Hz. However, it's ~980 Hz for pins 5 and 6 on the Uno, and for pins 3 and 11 on the Leonardo. Why are ...
Peter Bloomfield's user avatar
10 votes
4 answers
9k views

How to really shrink a sketch

I want to make a sketch that is as small as possible, for test purposes. The problem is, when i compile the BareMinimum sketch (with an empty setup and loop), i get 466 bytes for the Uno and a ...
TheDoctor's user avatar
  • 3,479

1
3 4 5 6
7