Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [arduino-leonardo]

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

0
votes
1answer
846 views

Uploading new sketch to Leonardo-type boards when you've changed the HID mode

I have Sparkfun Pro Micro (Leonardo compatible board). I got it because I plan to build my own array of controls for use in flight/racing sims. My starting point is LeoJoy, and I didn't have any ...
1
vote
3answers
2k views

How to generate Chirp Signal using Arduino

i would like to generate Chirp Signal (Frequency Sweep) using Arduino. i have searched a lot in internet but didn't find anything. Basically, any parameters is also ok. But the concept is what i am ...
0
votes
1answer
2k views

Arduino board not recognized by Linux (dmesg, lsusb, etc.)

I just received my first Arduino board which is essentially a Leonardo (ATmega32U4) customized to include a NFC reader (PN532). When I plug it in, the PWR LED comes on steady, the D13 LED flashes a ...
2
votes
1answer
895 views

Does Leonardo need a separate power supply?

I'm currently using an Arduino Uno (R3), but want to switch to Leonardo for the USB-ability. The Uno can work from the USB's 5V. Looking at the Leonardo's schematic it seems the only input to the ...
1
vote
2answers
1k views

Arduino Leonardo on Win 8.1 COM port disappeared

I've been using an Arduino Leonardo on my Windows machine for a few days now without too much trouble but today the COM port disappeared. I've been able to successfully send sketches to the arduino ...
0
votes
1answer
785 views

Leonardo with xbee shield?

I'm trying to get a XBEE shield to operate on an Arduino Leonardo. Usually i use the AltSerialLibrary to emulate an extra serial for the xbee. However since the Leonardo comes with two sets of serial, ...
-1
votes
3answers
269 views

Controlling Arduino from Raspberry Pi

I am trying to control an Arduino Leonardo R3 to run some code when "triggered" from a Raspberry Pi. This would be in a loop so that it can be run multiple times. I have set up the Raspberry Pi and ...
0
votes
1answer
3k views

Mac won't detect Serial Port for Leonardo

EDIT: The problem was the cable I was using (see answer below). I have a MacBook Pro running OS X Yosemite (10.10.1). I connected my Arduino Leonardo to my computer for the first time today (using a ...
0
votes
1answer
75 views

Blend with SD Shield

Building a data logging and transmission system here. I've a RedBearLab Blend with built-in BLE capabilities and a (cheap) SD / Data logging shield that looks very suspiciously like it's copied from ...
2
votes
0answers
159 views

9v adapter burned out Leonardo style board

My first experience with Arduino ended in a tragedy. I bought a Leonardo from ebay and upon arrival, attached it to my laptop. Programmed a simple blink demo with the onboard LED. It started working. ...
1
vote
3answers
3k views

Arduino Leonardo is not recognized by usb cable in Windows 8

My Arduino Leonardo was working properly but for the last two hours when I connect it to a PC via a USB cable, it is reporting something like USB is not recognized and even in device manager it is not ...
-2
votes
1answer
3k views

how to serially communicate the arduino leonardo to pc through hyperterminal

I have connected mc to a pc using USB. I need data on hyperterminal through serial to USB connection, hence I connected TX, RX and gnd pins of the Leonardo to the rs232 pins and one other side of ...
1
vote
1answer
501 views

Arduino hangs after 3-4 minutes on battery power, but not on USB

I have a simple sketch running on a BE Leonardo-compatible board. It reads input from a potentiometer, and outputs to two RGB LEDs which change colour over time - in a different pattern if certain ...
1
vote
0answers
518 views

How do I troubleshoot Seeeduino GPRS shield?

I am trying to receive an SMS message using the code, below, copied from Seeeduino GPRS - Wiki, with no success. Although there are several versions of the Seeeduino GPRS shield, mine is identical to ...
2
votes
3answers
6k views

Explanation please, of hardware and software serial links

I am starting to use a Seeeduino GPRS shield (please see note), which is essentially an Arduino Leonardo that, among other things, can be used as a mobile 'phone for sending and receiving texts. I ...
2
votes
1answer
2k views

Unable to upload sketch to Leonardo

I'm really at my wits end. For a couple of hours I have been programming a custom board that uses everything as on the Arduino Leonardo. A few hours ago I am not able to upload anymore. I get the ...
0
votes
1answer
723 views

How would I establish a serial connection with python without using the serial monitor? [duplicate]

How would I establish a serial connection with python without using the serial monitor? What I want to do is give my python script some input and have the arduino do something (blink for example) I ...
1
vote
0answers
143 views

Talking between Arduino and PC (Java) [closed]

I have to realize a communication between Arduino Leonardo and a demon which runs on a pc. The demon has to tell Arduino informations about the operative system of the machine to which it is linked,...
0
votes
2answers
3k views

Pixy(CMUcam5) robot Distance code

Can anyone help me with the code-ing to allow the robot to stop at a certain distance when the robot is approaching the tracked object. I am trying to implement it as a colour tracking wheel chair. ...
0
votes
1answer
135 views

Over voltage on Arduino and Ardumoto

I am using Arduino Leonardo and Ardumoto to drive 2 12v motors running at 1.3 amps each. I purchased a rechargeable battery of 12V with 5AH I first started by plugging in the battery to the Arduino ...
1
vote
3answers
892 views

How to control android app with arduino

I'm trying to connect Arduino Leonardo to an Android tablet. I would like to make the Arduino send commands (using pushbuttons or a slider for example) to the tablet to switch between pages, to select ...
0
votes
1answer
636 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 ...
2
votes
1answer
4k 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 ...
1
vote
1answer
2k 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 ...
1
vote
5answers
16k 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. ...
1
vote
1answer
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 ...
0
votes
1answer
1k 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[...
2
votes
1answer
829 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 ...
1
vote
0answers
2k 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 ...
2
votes
3answers
6k 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 ...
1
vote
1answer
181 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 ...
8
votes
4answers
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 ...
0
votes
2answers
948 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 ...
1
vote
2answers
3k 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 ...
1
vote
4answers
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 ...
4
votes
1answer
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. ...
1
vote
1answer
5k 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]={... *...
5
votes
2answers
381 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 ...
1
vote
0answers
672 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?...
-1
votes
2answers
68 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.
4
votes
2answers
4k 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....
2
votes
3answers
1k 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 ...
2
votes
2answers
1k 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. ...
2
votes
3answers
786 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 ...
5
votes
1answer
1k 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.
2
votes
1answer
234 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. ...
3
votes
3answers
5k 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 ...
1
vote
1answer
488 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 ...
1
vote
2answers
1k 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....
17
votes
2answers
21k 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 ...