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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

1
vote
1answer
46 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 ...
3
votes
4answers
110 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
votes
0answers
34 views

Last bit of code for button box has got me lost

I'm having trouble getting the right code to make my buttons work as a game controller. I have a sketch that works as I want lighting LEDs but how to modify it to send the key presses to my PC has got ...
0
votes
1answer
31 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
115 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 ...
2
votes
3answers
70 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 ...
1
vote
0answers
49 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: ...
0
votes
0answers
31 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
1answer
50 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 ...
0
votes
0answers
39 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 ...
2
votes
1answer
30 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
109 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 ...
0
votes
1answer
66 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
77 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
65 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 ...
0
votes
0answers
646 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
vote
0answers
56 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
112 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
138 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() ...
0
votes
0answers
122 views

Building a Days Counter with Arduino Leonardo and an RTC 3231

I wanted to make a Valentine's present for my girlfriend by building a days counter since the day we got together. I've been trying to create a days counter that starts counting from a Unix timestamp ...
2
votes
1answer
269 views

Arduino Leonardo RX TX mystery

I'm at the tail end of a project using a Leonardo, a HC-06 bluetooth module and a few cell phone vibration motors. Everything is working fine except the serial communication between the Leonardo and ...
-1
votes
1answer
75 views

Running multiple programs with one Arduino [closed]

Is it a problem to use multiple softwares to read the data that came from the same USB port simultaneously? I have a board connected to a PC by USB, which is read by an application developed in C#. I ...
1
vote
1answer
188 views

Reading Arduino Serial Input

I am reading an input from my Ohaus weighing scale using it's RS232 output using this code: #define HWSERIAL Serial1 void setup() { Serial.begin(9600); HWSERIAL.begin(9600); } void loop() { ...
0
votes
0answers
36 views

How to reset an Arduino sketch using another Arduino? [duplicate]

I had a Leonardo but I wrote a sketch that acts as a keyboard writing "hm", so I am not able to reprogram it with my computer. I have an another Leonardo. How do I erase the sketch from the broken one?...
1
vote
1answer
127 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 ...
0
votes
2answers
761 views

Unable to use Keyboard library with Arduino UNO even after changing the firmware

So I'm trying to use my UNO as an HID device. I followed this tutorial, flashed the firmware and got the UNO to be detected as an HID device. However, I am still getting the error 'Keyboard' not ...
1
vote
0answers
95 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
1answer
1k views

HM-10 send and receive data and checking received value

I am wondering what is wrong with my code below. I have 2 issues. The first issue, I am checking if c equals "hi" and if it does then display said hi. I currently see the output of c when it hits ...
0
votes
1answer
144 views

How to connect an Arduino via an ethernet cable to a laptop directly?

Maybe a silly question, because it is a usual topic, but I have a problem with my Arduino Leonardo ETH. I want to create a web server on the Arduino with the example sketch File > Examples > ...
0
votes
0answers
72 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(...
-1
votes
1answer
65 views

MySensors GatewaySerial code not compiling [closed]

I am trying to compile GatewaySerial code from MySensors library for my Arduino Leonardo and it gives me EEPROM errors. Gateway code: /** * The MySensors Arduino library handles the wireless radio ...
0
votes
1answer
329 views

Programming Arduino with FTDI via Tx and Rx pins

How program Arduino with a FTDI cable/breakout_board via pins 0 (Rx) and 1 (Tx)? In case the USB to UART chip (16U2 or other) is broken, you can program Arduino with a FTDI instead of 16U2 or other ...
0
votes
0answers
68 views

Leonardo: Problems with enhanced TimerOne-library and PWM

In my project I want to control a PWM by changing the resistance of a potentiometer. The problem is now that the Pin 11 isn't properly outputting that frequency. It should sweep down the frequency ...
0
votes
0answers
91 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 ...
0
votes
0answers
130 views

ATmega32u4 bricked, computer doesn't recognize it

I designed a few boards using the ATmega32u4 and I've been testing them for a month. Recently I had a problem with a couple of them because they seem to stop working, I press the reset buttom but no ...
4
votes
1answer
271 views

Can the Leonardo Arduino be used as a USB HOST for CDC Com devices?

I am trying to connect a CDC communication device to the Leonardo USB port and have communication with it via the TTL com port. Basically I want to echo to the TTL port whatever is transmitted over ...
0
votes
1answer
27 views

Arduino IDE lost board connection

Board: Arduino Leonardo IDE version: 1.6.5(also tried with 1.8.3) Try Arduino Web Editor as well The problem: after connecting Arduino to PC via USB in 5-7 seconds IDE says that connection is ...
1
vote
0answers
59 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 ...
0
votes
1answer
172 views

Leonardo clone being recognized by Windows as a broken Linino One - wtf?

I'm running a Velleman VMA103, which is advertised as a clone of the Leonardo. Both use the 32u4 chip, and the pinout is exactly the same. However, when I plug it in, the drivers do something weird. ...
0
votes
2answers
494 views

Storing byte array from serial and converting to a floating point number

I have tried getting my Arduino to communicate with another device, to no avail. The command A, when sent via serial to the device, triggers it to respond with 8 binary bytes with the first 4 ...
0
votes
2answers
32 views

Could someone explain this code that sets up the software serial port data rate?

I understand most of it. The part I don't understand is the is the code in for void loop. How does that set the data rate for the software serial port? I thought mySerial.begin(9600) did that? Please ...
0
votes
1answer
78 views

Arduino Leonardo keyboard

I use Arduino Leonardo board for virtual keyboard. Everything work fine, but when my local keyboard layout is russian it's not work how I want. This is my code Keyboard.print("cmd"); typeKey(...
0
votes
0answers
98 views

Leonardo like Arduino with most RAM

I am currently using the default Leonardo to simulate mouse and keyboard events on a computer and i was wondering what the best alternative with the most RAM and fastest clock speed was? The Arduino ...
1
vote
3answers
121 views

How to “break” a function we made?

This is code about a keypad lock. The user can unlock the device by entering the secret code. To lock it again they press "#" or "*". I want to let the green LED turn on for about 0.5 seconds then ...
1
vote
1answer
187 views

Programming Leonardo with TTL to USB cable

I have wired my Arduino as seen in the picture, with the RX of the cable plugged into the TX (D1) of the Leonardo and the TX of the cable plugged into the RX(D0) of the Leonardo. I then have the ...
1
vote
4answers
644 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 ...
6
votes
3answers
330 views

Multiple SPI device

I want to connect Ethernet board (W5100 HR911105A) to Arduino Leonardo with SPI and I also want to connect SD reader. When I test these boards separately everything working. But when I connect them ...
0
votes
2answers
558 views

Problem with uploading my sketch to my Arduino

I chose the correct COM port but it won't upload. Arduino: 1.8.3 (Windows 10), Board: "Arduino Leonardo" Sketch uses 5252 bytes (18%) of program storage space. Maximum is 28672 bytes. Global ...
1
vote
3answers
61 views

LEDs Randomly smooth transitioning, accounting for black or how-to switch using HSV

I am stuck trying to get it not to account for black in RGB. My first instinct was to use the HSV color spectrum over the RGB rainbow but, the same code will behaves differently in HSV. If i could ...
1
vote
2answers
68 views

How to add this old BASIC code snippet to work in Arduino C++ for FastLED?

I've been trying to implement this old code that randomly transitions to RGB color into my Arduino board that uses FastLED. Static Col1, Col2, Col3 As Integer Static C1, C2, C3 As Integer If (Col1 = ...