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
14k views

Sending data via bluetooth

I am trying to both send and receive data using bluetooth module. Receiving data works fine with this code: void setup() { Serial1.begin(9600); Serial.begin(9600); } void loop() { if ...
Krzysztof Majewski's user avatar
0 votes
1 answer
361 views

Real Time Clock Module Reset

I just had a pretty simple question about the RTC Clock Modules, more specifically the DS3231 RTC. Once calibrated and running on my Arduino if I were to unplug it and plug it back in, will the time ...
tyler a's user avatar
  • 73
1 vote
3 answers
8k views

Converting char array to int

I'm trying to use nRF24L01 module to send a messages between 2 arduinos Transmiter code: const char text[] = "Hello World"; radio.write(&text, sizeof(text)); delay(1000); Reciver code: ...
Anna K's user avatar
  • 113
1 vote
2 answers
103 views

Port Not Being Found [closed]

Hey everyone I know this is a pretty common question, and I have read/tried almost everything on all the other posts here and on the arduino.cc forums, but I have been unable to fix my problem. ...
tyler a's user avatar
  • 73
2 votes
7 answers
6k views

How accurate is arduino time keeping?

I want to use my arduino to turn a light off for 16 hours and on for 8 hours. I know the general code, just using delays and the relay shield code as well. I want to know how accurate this will be? ( ...
Peter's user avatar
  • 21
10 votes
3 answers
10k views

Upload code on Arduino Leonardo using command line

I'm trying to upload a compiled .hex file on an Arduino Leonardo, using the terminal. Uploading a sample code using the Arduino IDE works well, and from the Arduino IDE I got the upload command ...
Alex's user avatar
  • 315
1 vote
2 answers
714 views

AVRDUDE Error (Arduino Leonardo)

I, like many others, have encountered the avrdude error. However, I am not sure how to go about fixing mine after looking at numerous forums, etc. avrdude: verification error, first mismatch at byte ...
tyler a's user avatar
  • 73
0 votes
1 answer
74 views

Arduino Wireless SD Shield

Is it possible to use the Wireless SD shield without the wireless function, or XBEE Module? I do not need it to be wireless it simply was cheaper than any other I could find, so I was wondering if it ...
tyler a's user avatar
  • 73
0 votes
1 answer
334 views

Peristaltic Pump Project

I am designing a peristaltic pump and need some advice for parts. I am using an Arduino Leonardo and also have an UNO and am planning on adding a temperature and pH sensor as well. I have two ...
tyler a's user avatar
  • 73
2 votes
0 answers
96 views

Arduino Leonardo based h keyboard

I just want to configure my laptops keyboard buttons a,s,d,f,g,h and j. I wrote this code and it works for only a but I couldn't configure other buttons. Code is: #include "Keyboard.h" const int ...
Alican Aykac's user avatar
2 votes
1 answer
2k views

Serial Communication to WPF (Windows Presentation Foundation) giving me odd results. How do I clear up the Strings I am receiving?

I'm trying to make a voltage/temp logger that will post to SQL. I'm using a WPF to make kind of a UI for people to measure the voltage of a cell, and take the temp of the battery acid in the battery. ...
Mason Younger's user avatar
2 votes
0 answers
164 views

Cannot connect device with nRF8001 Bluetooth LE to Windows 10 PC

I've built a device using an IMUduino board, which is supposed to be similar to Arduino Leonardo board with a nRF8001 bluetooth. I was able to connect my device to an Android phone using the nRF UART ...
Finfa811's user avatar
  • 121
1 vote
2 answers
26k views

Press the Windows key using "keyboard.press();"

Is it possible to allow an Arduino Leonardo to simulate pressing the Windows key using the keyboard.press(......); command? If so, what is the required value?
KHS's user avatar
  • 41
2 votes
2 answers
2k views

How can I set 4 Arduino Leonardo PWM-ports between 200Hz and 1kHz?

I've noticed that I can set D9, D10, and D11 to around the timer 1 can be set to ~244Hz. However I need 4 ports that are between 200-1000Hz but I have been unable to figure out how to find the last ...
jonas nielsen's user avatar
3 votes
1 answer
371 views

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 ...
3871968's user avatar
  • 308
5 votes
2 answers
169 views

Practicality of recording speech

Is it practical to record speech with the Leonardo? I want to record speech via a MEMS microphone and stream it over a serial connection to a Raspberry Pi for speech-to-text processing. This article ...
Cerin's user avatar
  • 1,648
2 votes
0 answers
188 views

master slave control of 2wd robots using xbee

Hi there I just need to ask you how I can send command from master robot to slave to follow using XBee. I have configured both the XBee in AT mode, but I totally don't have the clue how the program. ...
Pranay Sable's user avatar
1 vote
1 answer
515 views

Keyboard input arduino speed

I have an Arduino clone of a Leonardo and I was just wondering how many keyboard commands I can send to the computer per second via USB. I'm not talking about the delay between send and receive (...
Bradman175's user avatar
0 votes
1 answer
235 views

Trying to start a timer to change lights when a button is pressed

I am trying to setup a series of lights (traffic lights) that change based on a timer that begins when a button is pressed. The goal is to use the lights to track how long its been since you pressed ...
Chris's user avatar
  • 1
0 votes
1 answer
274 views

How to combine Leonardo with Ultrasonic sensor?

I am working on an Arduino project that replaces the computer mouse. I want to do this in combination with an ultrasonic sensor. I found some nice examples on youtube, but they didn't post the code. ...
080792's user avatar
  • 1
1 vote
2 answers
856 views

Arduino Leonardo Pro Mini will not begin sketch when connected to BIOS not an OS

I have an Arduino Leonardo that I am using to emulate a Keyboard using the keyboard.press function with the Keyboard.h libraries. I have gotten the Keyboard.press function to work on my windows and ...
grant's user avatar
  • 21
3 votes
0 answers
328 views

Arduino IDE programs Leonardo but cannot open serial terminal

I'm using Arduino: 1.6.7 (Mac OS X 10.11.3), Board: "Arduino Leonardo". When I try to program my code, it works without problems. When I want to open the built-in Serial Monitor or Serial Plotter, ...
Thomas's user avatar
  • 143
2 votes
1 answer
494 views

ATmega32U4 (Leonardo/Pro Micro) bootloader, 8K rather than 4K?

Recently hit the dreaded 0x7000 / 28k~ AVRDUDE+LUFA limit. It states everywhere this is because the bootloader uses 4KB, thus reducing the 32KB to 28KB. Makes sense, except... Blank sketches on the ...
Malachi's user avatar
  • 311
0 votes
1 answer
128 views

arduino flexbot drone connected in a wrong way

I have an arduino flexbot, I was making some test and accidentally I connected the battery in the opposite way. The drone turned on the six motors when I connected the battery, but any led turned on ...
Alexander Leon VI's user avatar
0 votes
2 answers
1k views

How to diagnose unresponsive Leonardo serial port?

I was using an Arduino Leonardo (in the form of an RPI hat) to control a single DC motor via a motor controller. I have it wired to set Phase and Enable to control motor speed and direction, and I ...
Cerin's user avatar
  • 1,648
0 votes
2 answers
2k views

Recovering from lost USB connection (Leonardo to Raspberry Pi)

I have several Arduino Leonardos connected to a Raspberry Pi (running Ubuntu) via USB. They appear as /dev/ttyACM0, /dev/ttyACM1, etc. Occasionally, one will disappear and even pressing the Arduino'...
Cerin's user avatar
  • 1,648
2 votes
2 answers
1k views

Pinout for Leonardo USB

According to the docs, the Arduino Leonardo uses digital pins 0 and 1 for the USB D- and D+ lines. However, which is which? e.g. is D0=D+ or is D1=D+? To save space in a very tight project, I want to ...
Cerin's user avatar
  • 1,648
2 votes
1 answer
2k views

RF24 tranceivers: trouble with two way communication

I am using RF24 modules with my two Arduinos Leonardo with the RF24 library. My goal is to be able to press a button on the first Arduino which will light up an LED on the second Arduino, and be able ...
gommb's user avatar
  • 121
2 votes
1 answer
3k views

How to send a pitch bend MIDI message using arcore?

I'm new to MIDI and started playing with an Arduino Leonardo and arcore. Based on the example code, I can easily send noteOn/noteOff/controlChange messages, but I can't seem to send a pitch bend ...
George Profenza's user avatar
0 votes
1 answer
736 views

Different behavior than in simulator: 5V pin works instead of GND. Why is that?

I use this simulator to check if what I want to do works. This is how it looks like: I've recently realised that I've connected my RGB LED to 5V pin instead of GND like on schema. It worked perfectly ...
Piotrek's user avatar
  • 103
2 votes
2 answers
269 views

How to learn electronics/programming with Arduino? [closed]

I want to learn core and mechanics of microcontrollers with Arduino, and I don't really know where to find good source of knowledge. Every Arduino related tutorial is about very basic stuff like ...
Kacper's user avatar
  • 123
1 vote
1 answer
70 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 ...
FET's user avatar
  • 129
1 vote
2 answers
947 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 ...
Stop Slandering Monica Cellio's user avatar
0 votes
1 answer
96 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 ...
Bartłomiej Szałach's user avatar
1 vote
2 answers
3k 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 ...
calcazar's user avatar
  • 113
2 votes
2 answers
2k 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 (...
0x2b3bfa0's user avatar
  • 167
2 votes
0 answers
311 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 ...
user14100's user avatar
2 votes
0 answers
549 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.
Jawa's user avatar
  • 31
1 vote
1 answer
14k 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 ...
StealthRT's user avatar
  • 259
67 votes
2 answers
226k 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: ...
Nick Gammon's user avatar
  • 38.4k
2 votes
0 answers
154 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 ...
ajlowndes's user avatar
  • 121
2 votes
1 answer
268 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 (...
Nick Gammon's user avatar
  • 38.4k
1 vote
1 answer
1k 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 ...
Jawa's user avatar
  • 31
2 votes
1 answer
354 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?
ANKIT JAIN's user avatar
0 votes
1 answer
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 ...
William Hilsum's user avatar
2 votes
1 answer
809 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 ...
StealthRT's user avatar
  • 259
3 votes
0 answers
2k 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 ...
BytesGuy's user avatar
  • 131
0 votes
1 answer
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 ...
BlackJester's user avatar
1 vote
1 answer
96 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. ...
DomingoSL's user avatar
  • 167
2 votes
0 answers
83 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 ...
DomingoSL's user avatar
  • 167

1
3 4
5
6 7