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

1
vote
1answer
49 views

How to get started? [closed]

I'm a guy who loves the tech world, but more in particular the Robotic one. I wanna start developing/making my first creations of robots or sort of. I won a little board from Texas Instrument from the ...
1
vote
2answers
529 views

How to send volume +/- on Mac/OSX from Leonardo

I saw this answer but I can't find the analog for Mac. I've tried cycling thru keycodes from 0x01 thru maybe 0x500, and I went thru ascii a few times, also found brightness up/down, and F11, F12, but ...
0
votes
1answer
73 views

Arduino Leonardo bugs and lack of removable microcontroller

Following one of the article from 2013 : Before you start hammering that “add to shopping cart” button, note that the general impression around the web seems to be that the Leonardo still has ...
1
vote
1answer
1k views

Can BUS Shield on Arduino Leonardo - Can't init CAN

I'm hoping to get some help with this as I am unable to get the CAN to Initialize. I have the sparkfun Can-Bus shield: https://www.sparkfun.com/products/13262 and an Arduino Leonardo board. I'm ...
2
votes
1answer
975 views

Keyboard.print() skips keys

I'm playing with the Arduino Leonardo Keyboard.print() command, but I'm facing a annoying problem: When I print a double quote, it will not appear and also will make to disappear the next character (...
1
vote
0answers
235 views

Is my leonardo broken? Is there a way to make it work?

backgrounds I bought arduino leonardo and connect it to Ubuntu 15.04. With arduino IDE 1.0.5(from Ubuntu official repo) running in sudo, the arduino was recognized as /dev/ttyACM0. So I tried to ...
1
vote
0answers
88 views

Pro Micro and LilyPad USB

Is there a difference between Pro Micro 8MHz 3.3V and LilyPad USB bootloaders? Both are based on 32U4 running at 8 MHz.
1
vote
1answer
3k views

Arduino Pro Micro Analog Pinouts

I have the Arduino Pro Micro and I would like to use all the analog pins that I can on it. It currently looks like it has a total of 9 Analog pins that can be used. A0, A1, A2, A3, A6, A7, A8, A9 ...
34
votes
1answer
133k views

How do you use SPI on an Arduino?

With reference to the Arduino Uno, Mega2560, Leonardo and similar boards: How does SPI work? How fast is SPI? How do I connect between a master and a slave? How do I make an SPI slave? Please note: ...
1
vote
0answers
115 views

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 ...
3
votes
1answer
178 views

Two Leonardos on one USB hub - not working properly

I have two Arduino Leonardos here. They do different things, but basically they both emulate a keyboard. Here is an example: const byte SWITCH = 12; void setup () { Keyboard.begin(); pinMode (...
1
vote
1answer
751 views

Loading Leonardo bootloader to Atmega32U4 running at 8 MHz

I am currently using ATMega32U4 running at 16MHz using Leonardo. I can only supply 3.7V (I use LiPo batteries) and everything seems fine but this is not as per specs. To run at 16 MHz, I have to ...
2
votes
1answer
200 views

How to calculate voltage?

I want to check each cell voltage using arduino. and how to calculate dc current using CT Sensor using Arduino?
0
votes
1answer
1k views

Did I break my new Arduino Leonardo Eth by restarting it?

I just bought a new Arduino Leonardo Eth, and, it was working perfectly. I probably uploaded about 30 different sketches, and it did everything as expected. The basic sketch was using the fade demo ...
2
votes
1answer
543 views

Adafruit_NeoPixel define pin for different setups

I am looking for a way of defining multiple pins for my RGB strips. Currently the defined variable is set with the pin within it. This works just fine if I only had one RGB strip connected to the ...
2
votes
0answers
880 views

Using USB on a Leonardo to receive data from PC

I am new to the Leonardo, having only used a duemilanove before, and I am interested in using it's USB capabilities for a project. Basically I need it to be an input and output device, communicating ...
0
votes
1answer
2k views

Burning Arduino Leonardo Bootloader to ATmega32U4 with 8MHz internal clock

Burning question: So, I'm trying to burn the Arduino Leo bootloader onto a ATmega32U4 that's on 3.3V and the internal 8MHz clock. Do I have to modify and rebuild the bootloader to set the fuses ...
1
vote
1answer
84 views

Handling serial streams biggers than the available ram

I need to parse text coming into my MC (Leonardo) over the hardware serial port. The data comes in burst, and the parsing routine manage the data flow with easy when it is less than the serial buffer. ...
1
vote
0answers
41 views

Is serial modem routine written on the Arduino Leonardo bootloader?

I'm starting with Leonardo and I'm a bit confuse about the serial modem function. As you know on boot the Leonardo for the first 8 seconds wait for a program on the USB port and then it goes in serial ...
1
vote
3answers
4k views

Request for member is Non-class type

Im getting this error: iotHook.ino: In function 'void setup()': iotHook:13: error: request for member 'begin' in 'esp', which is of non-class type 'Esp8266()' request for member 'begin' in 'esp', ...
1
vote
1answer
3k views

Can't get Arduino Leonardo working as a USB keyboard in Windows 7

I can't believe I am stumped by this, but this is my issue and I can't see any other solution for this anywhere. I have an official Arduino Leonardo loaded up with the following code: void setup() { ...
1
vote
1answer
719 views

What happens if I don't open the USB serial port of Arduino Pro Micro / Leonardo?

My question is related to this one. My sketch seems to stop responding after some time if I run it with debug enabled and I don't open the serial port/monitor on the computer. Does the UART buffer ...
1
vote
2answers
353 views

Is there any problem about calling if (Serial) many times?

I am trying to debug a problem that I think may be related to the debug code itself and I tried to use theese macros: #define DEBUG_PRINT(x) { if (Serial) { Serial.print(x);} } #define DEBUG_PRINTLN(...
4
votes
1answer
90 views

IR frequency difference

I want to create a device that interfaces with the Light Strike Lasertag system using an Arduino Leonardo. The Light Strike system uses not laser but regular infrared signals. According to a site ...
0
votes
2answers
883 views

Why do only specific arduinos support the keyboard and mouse libraries?

The Arduino website suggests that only three boards are supported for the Mouse and Keyboard library page: Leonardo Micro Due What is special about those boards, that the other boards in the ...
0
votes
2answers
4k views

Can I use analogReadResolution() on an Uno or Leonardo?

I am trying to get a spectrum analyser up and running. I found the following code on Galileo GEN2 Project - Real-Time Audio Spectrum Analyzer1: /* * * Galileo GEN2 Project - Real-Time Audio ...
1
vote
0answers
432 views

Leonardo sketch and bootloader hex file combination

Can I combine Leonardo sketch hex file with the Leonardo bootloader hex file? I would like to program blank Atmega32U4 with one shot.
1
vote
2answers
6k views

Disabling i2c internal pull up resistors

How do you do this? I've been digging around and I can see that I should do this and supply my own external pull up resistors but I don't know exactly how to disable them. The pages I've been reading ...
3
votes
3answers
992 views

Do I need a bubble sort or something easier?

I'm using an Arduino Leonardo and a GPSTiny++ library to parse NMEA strings from my GPS receiver. In this chunk of code I'm averaging all satellite SNR numbers for satellites which are locked (Being ...
4
votes
1answer
665 views

Remove Bootloader on Arduinos

I am trying to move from arduinos to AVR C. Would somebody know how to remove the arduino bootloader from the microcontroller? Is there a different process for the different atmega microcontrollers ...
-1
votes
1answer
683 views

Serial communication not working between two Arduinos unless connected to computer

I have a robot with an Arduino Mega that gets data from a bluetooth module and sends it to an Arduino Leonardo to activate some functions. It all works amazing but only if the boards are connected to ...
0
votes
2answers
681 views

Leonardo and micro: high pitch noise when powered from Vin

I have an issue with several Leonardo and Micro boards. On all of my boards, there is a sawtooth of about 690mV ptp @ 4kHz on the 5V supply when powered from Vin (external power). The frequency ...
0
votes
1answer
432 views

Analog pins all reading same value

I'm trying to read 5 analog inputs, but all the pins are reading the same as pin A0, plus or minus a couple points. I tried using pulldown resistors on all 5 pins and it made no difference. The board ...
0
votes
1answer
663 views

Leonardo Serial1 enable internal pull-up for removable Bluetooth module

I would like to have a serial Bluetooth module thats completely removable, leaving nothing connected to the arduino. My code would freeze up whenever the Bluetooth module was removed. I eventually ...
1
vote
1answer
98 views

Leonardo broken?

My leonardo was working fine until today, when I plug it to my computer all led (RX/TX/L/ON) stays on (Green for on, amber for others) and my computer no longer see a com port. (by the way, do you ...
6
votes
1answer
718 views

Programmatically Upload Arduino Sketch From Android App

I am attempting to build an Android app from which I can can upload a .hex file to my Arduino(Leonardo). I am aware of a few apps in the Google Play store that are capable of this functionality but I ...
-1
votes
1answer
75 views

What is wrong with my 32u4 breakout board from adafruit?

I recently bought the atmega 32u4 breakout board from adafruit. I uploaded a sketch, then it says that there isn't a timer 2 on it and it won't do as I programmed my sketch. how can I fix this?
0
votes
1answer
137 views

Where are the digital and analog pins for the adafruit atmega 32u4 breakout board?

Which pins are the analog and digital pins? I've been searching the internet for an hour and I could get an answer.
1
vote
0answers
55 views

arduino leonardo stops transmitting once hdmi cable is connected to a screen

I am using arduino leonardo for moving mouse pointer with head tracking using MPU6050. It works fine in general. But as soon as I connect an external lcd screen to my laptop via hdmi cable, it stops ...
-1
votes
1answer
393 views

Clone pro micro serial port 'COM4' already in use

So I just got this board I ordered from ebay and tried to play with it for the first time. http://www.ebay.com/itm/Leonardo-Pro-Micro-ATmega32U4-Arduino-IDE-1-0-3-Bootloader-replace-Pro-Mini-/...
0
votes
1answer
2k views

Starting usb on pro micro after deep sleep (ATmega32u4)

I have just started playing with a low power arduino project, and have managed to get the power drain down to about 220uA using powerDown from LowPower. What I would love to be able to do is start ...
3
votes
1answer
3k views

TCCR1A and TCCR2A on Leonardo

I'm trying to use the TTS library for Arduino on an Arduino Micro board, which is based on the Leonardo. When I try to compile my sketch I get some errors; /libraries/TTS/TTS.cpp: In function 'void ...
0
votes
1answer
622 views

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 ...
2
votes
4answers
917 views

Conflicts with USB and external power supply

I want to power an Arduino Leonardo with an external power supply and simultanously communicate via USB. I have read some other threads on this topic, therefore, I know that if one supplies more than ...
1
vote
3answers
706 views

How big of a difference is there between an Arduino Uno and the rest?

Lately I've been fooling around with a project for my Microsoft Sidewinder Force Feedback Pro Joystick. I've found out that there is a project currently for it built for the Teensy 2.0. On the page ...
-9
votes
1answer
4k views

STEPPER MOTOR CONTROLLER Using LEONARDO PRO MICRO

I want to Use LEONARDO PRO MICRO and A4988 Stepper Motor DRIVER to control Nema 17 Stepper Motor. Please let me know how to hookup these together. Please give me a circuit for this type of assembly ...
2
votes
2answers
7k views

Send Keyboard Media Keys with Keyboard Library

I have an Arduino Pro Micro (ATMega32u4) that I want to use as an IR receiver for a media PC and need to send codes like Volume Up, Media Home, Play, etc. But when I look up the scan codes for those ...
2
votes
1answer
179 views

Interfacing Arduino Leonardo with PCA8574AN

I'm trying to interface my Leonardo with a "Mindsensors Magic Wand" - 8 LEDs connected to a PCA8574AN chip. On the manufacturer's page, they say it's compatible with Arduino, however no instructions ...
0
votes
2answers
2k views

Matlab to Arduino communication

I am doing some computations on Matlab and I need to send those values to an Arduino Leonardo through USB serial connection. I need to send 2 variables which can vary from -400 to +400. I'm saying ...
0
votes
1answer
848 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 ...