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
2answers
26 views

Keyboard.h: No such file or directory - Arduino pro micro (leonardo)

I've just bought a new pro-micro and I want to simulate some keyboard inputs with it, the thing is the Arduino IDE (version 2:1.0.5) can't seem to find neither HID.h or Keyboard.h libraries. The steps ...
0
votes
0answers
38 views

Arduino Leonardo board - not running or appearing a USB on external power

I've got an Leonardo board, it seems to be official, in that it has the Arduino branding and Made In Italy on the bottom. However I cannot get anything to run with external power supply. Everything ...
1
vote
2answers
30 views

Leonardo - always on power, status remains between computer reboots?

I'm looking for two answer here. Is it possible to power a Leonardo to be always on, separate from the power from the USB host - I've tried with a full size Leonardo and a power adapter but for some ...
0
votes
0answers
22 views

Question about controlling servos with PWM while being able to accurately read the current from a sensor

Hi I am hoping to design a custom board ATMEGA32u4 with practically a Arduino leonardo bootloader. I plan to control up to 12 servos while being able to read back the current sensor voltage of an ...
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
0answers
25 views

Have terminal bash script act as virtual “button” for Leonardo?

I've searched quite a lot for this and tried to piece bits of code together but with no luck so far. All i'm looking to do is have a command I can run in terminal/bash script on the Mac trigger some ...
1
vote
1answer
208 views

DAC using Arduino Leonardo

I am as new to Arduino as it can get. To start off, I am trying to build a DAC using an Arduino Leonardo. I have a digital signal coming from my dual differential comparator. I want to convert this to ...
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. ...
0
votes
1answer
1k views

arduino leonardo avrdude: butterfly_recv(): programmer is not responding

I am having issues uploading new code to an Arduino Leonardo board. This happens after uploading a previous buggy code (e.g. array out of range indexing error). Once I fixed the buggy code, I can ...
0
votes
2answers
348 views

Encoders for precise robot turns

So I recently purchased: DFRobot Wheel Encoders DFRobot 3PA and 4WD Rovers (2pk) Romeo V2 Arduino Controller I was doing a bit of research online and I'm trying to figure out how to use the ...
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 ...
1
vote
1answer
362 views

Timer0 overflow interrupt not working

I try to use the Timer0 of an Arduino Leonardo (ATmega32u) to trigger an interrupt at regular intervals, using plain avr-gcc (not the arduino library). I try to blink the built-in LED as test, but it ...
3
votes
2answers
82 views

Stacking 3 of the same shields on top of each other and instructing them in sync

Context: I have an audio track separated into individual channels grouped by frequency and speaker location. I need to play all three of these channels simultaneously and perform instructions like ...
2
votes
3answers
319 views

Moving wiring.c functions from timer0 to timer1

I am using an Arduino Leonardo (ATmega32U4) and need to use timer0 for PWM. Since by default in the wiring.c file the functions micros() and millis() use timer0, I decided that, since timer1 isn't ...
0
votes
2answers
114 views

Do serial ports on Arduino UNO / Leonardo initialize differently?

What are the differences in serial communication between PC <---> Arduino UNO (ATMEGA328p) and PC <---> Arduino Leonardo (ATMEGA32u4)? I am asking because of a problem related to using these ...
2
votes
1answer
41 views

Triggering a soft reset (Arduino Leonardo)

I want to trigger a soft reset on my Arduino Leonardo, and after some searching settled on using the watchdog timer, as it seemed to be the easiest and cleanest way to do it. However, I don't think ...
1
vote
2answers
10k views

press 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?
1
vote
2answers
223 views

Generated frequency is not as expected

This code sets a pin HIGH for 1 microsecond and then LOW for 1 microsecond. The expected frequency should be about 500 kHz. When measuring the output the frequency is about 96.4khz. Why ? int del = 1;...
0
votes
2answers
40 views

Is there a way to traverse a filesystem and read files with an arduino?

I recently got into arduino and I want to set up something big. My project will need the arduino to be able to get into a specific directory of a windows (later may change to linux but for now windows)...
1
vote
1answer
88 views

Is there a board that can act as both a USB host and client for HID devices?

Trying to build an arduino-based Mouse/Keyboard enhancer. This will let me do things like press certain keyboard or mouse shortcuts on the input side, then do something custom on the output side. ...
0
votes
0answers
19 views

OV7670 doesn't respond with Arduino Leonardo [duplicate]

I'm trying to talk to FIFO-less OV7670 module using Arduino Leonardo. I assembled the circuit by analogy with CumputerNerd's projeject with UNO: in my case, I connected: XCLK ---------------- pin ...
1
vote
1answer
38 views

Help with AlphaNumeric array

I have a Leonardo board and I want to set up my pins to input in one shot using a for loop but the problem is with the analog pins I can't see how to set up a mixed alphanumeric array it gives me some ...
0
votes
2answers
29 views

Leonardo Problem

I have boiled this down to a very simple piece of code: int testKey; void setup() { Serial.begin(9600); } void loop() { Serial.println("Input Source ID "); //Ask me the number while (Serial....
0
votes
0answers
99 views

Arduino pro micro might be bricked

I bought an Arduino pro micro (looks like this) from a Chinese seller over E-Bay, for its HID interface. I installed the Arduino software on my Linux machine (Kali Linux), and started writing a USB ...
1
vote
1answer
3k views

Can Arduino Leonardo use USB port and RX TX serial pins at the same time?

Can I use the TX/RX on pins 0, 1 (to a serial slave device) while also having the USB port dedicated PC communication?
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
2answers
146 views

Sending a digital signal from one Arduino to another to trigger an event

I am wanting to send a digital signal from one Arduino to another. The goal is for one Arduino send a HIGH signal to a pin on the receiving Arduino. While the pin is HIGH, do function I initially ...
0
votes
1answer
332 views

“exit status 1” error when invoking “useInterrupt” method [duplicate]

for context to this post you can catch up on this post I am working with an Arduino Leonardo and Adafruit Music Maker shield. I am trying to use the startPlayingFile method via the interrupt pin ...
2
votes
1answer
41 views

Specific values not showing when using a numeric keypad

I have attached a 3x4 keypad to my Arduino Leonardo as an input method. Whenever I press the buttons, the majority of the keys work but specific ones don't. Here's my code, I've set it up to beep a ...
0
votes
1answer
75 views

Custom atmega32u4 board crystal issue

So I built an custom board based on the Atmega32u4. Schematics attached. I managed to burn a bootloader for Pro Micro using Arduino Uno as an ISP. The issue I have is that the board is dead when ...
2
votes
1answer
157 views

How can I detect which baudrate a virtual COM port is set to?

I would like my software running on Leonardo to behave differently depending on the baudrate of the USB Serial set by the PC. For example, I want to make a smart USB to UART converter which performs ...
3
votes
4answers
134 views

Where in datasheet is the warning about unreliability of reading PINxn?

I use atmega32u4 (but believe it applies to all models). Here is the datasheet. Consider the following C program (I use AVR-GCC 5.4.0): #include <avr/io.h> int main(void) { PORTB |= 1 <&...
1
vote
1answer
66 views

Serial receiver (Arduino Micro ATmega32U4) in bad state

I have configured two Arduino Micros as a pair of multiplexer/demultiplexers communicating via Tx and Rx. Everything works great except for one little thing. If I reset the sender (multiplexer) the ...
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
4k 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 ...
0
votes
2answers
392 views

USB Mouse Passthrough

I am currently doing research for a project of mine. My goal is simple: I want to pass input from a physical mouse, to a microcomputer to process the input and modify, and send the input in the form ...
1
vote
0answers
62 views

Bitmap only displays correctly with PROGMEM keyword

I have a bitmap to draw defined as below. PROGMEM const unsigned char ship1 [] = {0x18, 0x3C, 0x7E, 0xFF, 0x81, 0xC3}; It is then used by the arduboy library's draw slow bitmap function like so: ...
2
votes
3answers
91 views

DMX on the Arduino without additional driver chip

I recently saw this video where the creator controlled a DMX light via the Arduino. There he used the pins 3 and 4 for the data on the Arduino Duemilanove. As DMX library he used DmxSimple. Based on ...
0
votes
0answers
41 views

Weird sketch size/memory/compiler (?) related issue (hanging, RX led on)

Also posted at: https://forum.arduino.cc/index.php?topic=549672.0 is there anyone who experienced similar problem or knows a solution to it? The problem is that after uploading the code Arduino Pro ...
2
votes
2answers
4k views

A question about resistance measurement with arduino

Lately I was asking myself about the possibility of measuring a potentiometer resistance with Arduino. My questions are: Is it possible? If it's possible, what kind of restriction does the Arduino ...
0
votes
1answer
143 views

USB upload to Pro Micro (32u4)

My project is based around the ATMEGA32u4 microcontroller. I followed the Arduino Pro Micro schematic to design my own board layout and build a custom PCB, soldered on the components. Then I used ...
2
votes
1answer
157 views

Pro Micro recognised as Micro (win10, IDE 1.8.1)

I just got this pro-micro clone 5V and it's my first pro micro ever. After reading lots of discussions about how easy it is to brick and how it's just a smaller Leonardo, I've also found tutorials ...
1
vote
1answer
552 views

Arduino and GPS module Neo 6m

I have an Arduino Leonardo and a GPS module "NEO 6M" Pinout: PPS->free rxd->11 txd->10 gnd->gnd vcc->5v I'm running this code: #include "SoftwareSerial.h" ...
1
vote
4answers
1k views

Send serial command and wait for reply

I am new to Arduino and have tried all kinds of code for attempting to achieve this. None with any luck, however. I feel that it should be a relatively easy task and therefore, figured that someone ...
0
votes
1answer
193 views

Avrdude can't connect to butterfly programmer

I'm trying to upload my exported HEX file by avrdude using this command /Users/user_acc/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Users/user_acc/Downloads/Arduino.app/...
0
votes
2answers
158 views

RFID reader code to identify more than one tag

I'm new to using Arduino and I have managed a few changes to this sketch. But I want to check for a second tag if the first one is not correct. I just can't seem to get it to work. I think it would be ...
-2
votes
1answer
247 views

Can't read JSON data from client (webpage) with Arduino Leonardo ETH

I'm reading a digital pin and count how many times that pin is enable, after that the data is sent in JSON format. All is working well till here. But I want to introduce a value from webpage to ...
1
vote
0answers
85 views

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: ...
1
vote
1answer
352 views

Failed to initialise SD card on Leonardo

I'm trying to connect SD card reader to my Arduino. For testing i'm running CardInfo example. It seems like it runs ok when I'm running it on my Arduino UNO, but it fails to initialise SD Card while ...
0
votes
1answer
443 views

RX/TX not working as intended

I am currently working on a project with a HC-06 module. I hooked it up accordingly like so: Arduino -> HC-06 5V -> VCC GND -> GND TX -> RX RX -> TX and I ran this code: void setup() ...