Questions tagged [arduino-leonardo]

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

1
vote
3answers
941 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
3answers
162 views

Distance Sensor. Calculating running median and Average

I'm trying to smooth out values for my IR distance sensor through running median filtering and a running average. I've tried to do the averaging, but my values don't seem correct and I am confused ...
-1
votes
3answers
277 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
2answers
296 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 ...
0
votes
2answers
451 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 ...
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
624 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 ...
1
vote
1answer
282 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 ...
1
vote
1answer
143 views

Ways to turn a knob with a stepper motor and an ATMEGA32u4

Hey all I am wondering what would be the best items to purchase for me to be able to turn this know (continuous) below: As I mentioned above, I would need the stepper motor to have a continuous ...
0
votes
1answer
2k 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 ...
-1
votes
1answer
158 views

Use a 2.8" TFT with my Leonardo

for 2.8" diagonal color touchscreen TFT: Readme states: "Works with any classic Arduino '328. Solder closed three jumpers to use the ICSP header for use with Leonardo or Mega" What should I solder? ...
2
votes
0answers
136 views

TRIAC Pulse driver for Spot Welder (help needed with programming)

I have designed and built a transformer driver board for my spot welder. It is powered from mains electricity (230 V) and consists of the following segments: triac drive and protection, zero cross ...
2
votes
0answers
271 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, ...
2
votes
0answers
989 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 ...
2
votes
0answers
160 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
0answers
86 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: ...
1
vote
0answers
109 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
0answers
246 views

Arduino hardwareSerial Bluetooth.println not sending string over 310 chars

Hey all I am wondering if my code below can be modified in order for the Arduino to send more than 300 chars to a HM-10 bluetooth 4.0 le module? #include <SoftwareSerial.h> #define ...
1
vote
0answers
69 views

ADC pin shutting off on its own under certain condition

A0 pin not working when full PV system in use I am using the DFRobot Leonardo with Xbee R3. I am using the A0 pin to read a 0-5V voltage from my voltage sensor, which samples and steps down 130VDC ...
1
vote
0answers
356 views

PS2 Keyboard and sending keystrokes between a Leonardo and several pro micros

I am working on a project where I am taking the the key presses from a PS/2 keyboard and passing them to several pro micro boards so I can type the same commands on multiple computers at the same time....
1
vote
0answers
339 views

NEO 6M doenst provide coordinates

I do a school project (CanSat) it's an international project. But my problem is my GPS. I tried 2 different codes. Both they say the GPS is connected. They GPS led doesn't provide any light. wiring: ...
1
vote
0answers
100 views

Multi Agent Systems

In my project work, I have 3 robots with their own Arduino boards. Each robot has Infra Red Sensors, whose values I can read using its corresponding Arduino. The main thing however is that each robot ...
1
vote
0answers
1k views

Arduino Leonardo isn't detected by Linux Mint on serial port /dev/ttyACM0

I'm working on Linux Mint 18 Sarah (earlier Ubuntu 16.04 LTS) system. I've installed Arduino IDE using command sudo apt-get install arduino and I've added me dialout group using sudo usermod -aG ...
1
vote
0answers
57 views

arduino leoanrdo 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 ...
1
vote
0answers
134 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 ...
1
vote
0answers
121 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 dont have the clue how the program. I ...
1
vote
0answers
186 views

Need help with Leonardo and HID code

I have a challenge I can't solve, I need your help! I have a car cruise control lever I want to connect to an Arduino Leonardo and have it act like a keyboard (HID). The lever has only two wires, ...
1
vote
0answers
257 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
143 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
0answers
118 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 ...
1
vote
0answers
43 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
0answers
458 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
0answers
56 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
vote
0answers
522 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 ...
1
vote
0answers
3k 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 ...
1
vote
0answers
720 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?...
0
votes
0answers
70 views

How can I send AT commands to HM-10 module from my android phone?

Earlier today, I was able to connect flawlessly to my HM-10 module via the Arduino serial monitor. I think I then changed some settings without thinking and now I can no longer connect to it. No ...
0
votes
0answers
20 views

Trying to install amforth on Leonardo board

Just got a Arduino Leonardo (with headers) dropped in my lap this week. I've tried experimenting with the Arduino C++ IDE and find it awkward. I have some previous experience with Forth and would like ...
0
votes
0answers
50 views

Leonardo - send key command after HID connection with computer established automatically?

Have confirmed that the BootKeyboard programming on the Leonardo is able to launch the macOS recovery partition or boot screen. The problem I've got is that this only works if you send it after the ...
0
votes
0answers
66 views

Arduino IDE 1.8.8 built in 1.2.1 Temboo Library?

I am weirded about the built-in "latest Temboo library" with the latest Arduino IDE; when a previous older code says to download the latest Temboo version < 2? (which I found this: https://temboo....
0
votes
0answers
53 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 ...
0
votes
0answers
30 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
0answers
38 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 ...
0
votes
0answers
51 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 ...
0
votes
0answers
162 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 ...
0
votes
0answers
115 views

Serial.print / sprintf causes program crash

The following code int i; char msg[16]; // Serial data. Serial.println(); Serial.println("==============="); sprintf(msg, "Sequence: %4d", runNum); Serial.println(msg); Serial.print(...
0
votes
0answers
260 views

Arduino Leonardo as keyboard installs driver

I want to do some security awareness training within the company I work for. And I want to demonstrate the BadUSB attacks by having some arduino's act as a keyboard and open a webpage, and scatter ...