Skip to main content

Questions tagged [atmega32u4]

atmega32u4 is low-power Atmel 8-bit AVR RISC-based microcontroller

Filter by
Sorted by
Tagged with
2 votes
2 answers
198 views

How to detect, if Serial is really connected to listening PC program? (on atmega32u4)

How to detect, if Serial is really connected to listening PC program? (on atmega32u4) I need to connect from PC to Arduino Micro Pro over USB Serial and disconnect again and not slow down the Arduino ...
2 votes
1 answer
140 views

Arduino AVR Program with default ATMEGA32U4 bootloader instead

I’m working an Arduino program that uses the FastLED library and is all coded in the Arduino IDE (not my choice, just a result of this OOS library). However, I don’t want to run this on an “Arduino” ...
2 votes
1 answer
2k views

How does Arduino IDE reset a board before flashing? Why doesn't avrdude do it?

I have the beetle board, a Leonardo clone same as in this question. Using the reset pin and quick hands on the keyboard, I am able to flash with avrdude and get also the board info with a command ...
2 votes
1 answer
587 views

Unable to flash arduino pro micro from Terminal

I am trying to upload an hex file to my arduino pro micro using Avrdude . The thing is that I cannot upload any code using the Avrdude terminal commands , but when I use arduino IDE to upload any code ...
0 votes
0 answers
207 views

Atmega32u4: Reduce power consumption while keeping USB active

I have a USB powered board, that should consume as little power when idle as possible, while keeping the USB connection alive. The device only sends data to the host, doesn't receive any, so the ...
-1 votes
2 answers
409 views

Upload to board with no USB connection

I have a Spark Fun Pro Micro (ATmega32U4) without a USB connection (it was broken off at an earlier point) that I want to use to duplicate a prototype running on another Pro Micro. How can I upload a ...
2 votes
1 answer
350 views

Is it possible to remove the bootloader while flashing using the bootloader?

The question is meant as in, can I lock myself out of the Arduino using the bootloader, if I flash a hex file that doesn't contain the bootloader? Or does the bootloader automatically add the flashed ...
0 votes
0 answers
150 views

Disable USB support for mega32u4

I have a custom Leonardo board (mega32u4-based) that does not use at all the USB features. When I build my sketch (vscode and platformio) I read: Compiling .pio/build/leonardo/FrameworkArduino/CDC.cpp....
3 votes
1 answer
271 views

Alerting the ATMega32u4 that it's plugged into a computer (via USB)

I need help in writing some code that will allow for the ATMega32u4 to be aware of when it's plugged into a USB port. I'm not really familiar with the ATMega32 or with it's function in Arduino, so I'm ...
0 votes
1 answer
130 views

Drum game controller - Problem with Piezo inputs [closed]

I currently try to build some Drums for the game Clone Hero. The problem that I have is that I can't use both of my Piezo inputs that I have hooked up at the same time. I have a Arduino Pro Micro and ...
2 votes
2 answers
6k views

Programming Arduino Micro via RX/TX

I can't access my Arduino Micro's USB programming port when it's in my project. I want to reroute the RX and TX pins outside to a serial-to-usb adapter. I have this on hand from a while ago. I found ...
0 votes
1 answer
309 views

Arduino Micro project with Bluetooth low energy

I created my project prototype with Arduino Micro and Adafruit Bluetooth low energy device. Now I need to develop the prototype to production (like a small USB device). I just need Rx, Tx, 3V pin ...
1 vote
0 answers
486 views

ATMega32u4 - Sending and receiving data through TX and RX

Hi everyone, first time here on the forum, so, apologies if I'm doing anything incorrectly. Long story short, I built a device that takes voltages in and transform them into midi data. I used an ...
1 vote
1 answer
9k views

Arduino stopped working: avrdude: ser_open(): can't set com-state

I'm playing with my first Arduino device (Arduino Leonardo). It worked fine but at some point it failed. I'm getting this error: avrdude: ser_open(): can't set com-state for "\.\COM6" An ...
0 votes
3 answers
13k views

What is difference between ATMEGA32 and ATMEGA328?

I'm new in electronics. Just playing with Arduino boards.I just wanted to program ATMEGA328 micro-controller and use it without Arduino for compact design for my personal hobby project. I found there ...
1 vote
1 answer
231 views

Input Capture Mode PPM signal

Greetings to all members of the Forum. I would like to express my deepest gratitude, with respect to the title of this post. The last week I am trying to capture and decode a PPM Signal from an RC ...
0 votes
1 answer
604 views

Arduino Pro micro Serial communication problem with Node MCU

I recently bought an ATmega32U4 based Arduino Pro micro. I am using the Keyboard library and interfacing with my PC via USB. I am trying to create a serial communication between the Arduino Pro micro ...
1 vote
2 answers
1k views

Using Keyboard library for ISO-UK layout

I am creating a keyboard and the PC I use it with is configured for UK so the keyboard layout it expects is this I've highlighted the ISO-UK vs ANSI-US differences but the only key I am having real ...
1 vote
0 answers
106 views

Is it possible to program an atmega32 via internet or remotely with Android app?

There is a board with atmega32 microcontroller, sim card and Bluetooth modules. I used to program this microcontroller using a serial port cable. As long as the circuit is able to connect to internet, ...
1 vote
1 answer
205 views

Pro micro Wire.endTransmission() does not return

I have an Arduino Pro Micro(blue version) and I'm having trouble using the I2C. To test it, I use the code below and the result is an infinite square wave on SCL and SDA lines and I only get the ...
2 votes
1 answer
2k views

Send custom HID values instead of keys

I've been building a small macro keypad based on the ATmega32U4. So far, I've been able to send standard key presses to the host. But since I want a program on the host system to react to the key ...
3 votes
2 answers
3k views

Can I use arduino pro micro rx tx as digital pins

I'm using arduino pro micro Atmega32u4 5v 16Mhz I want to use it to make a HID Keyboard and Mouse but I ran out of pins so I was wondering if I can use the RX and TX pins as digital input pins. Will ...
4 votes
1 answer
1k views

It is possible to revive my Arduino Leonardo (mini beetle) board?

I have this board: It has the atmega32u4 chip. I have updated its code several times, and used it without issues for several months. Today, while updating (using Arduino IDE) it started to throw ...
0 votes
1 answer
1k views

Wiring Multiple MPU 6050 to Micro/Lenardo

disclaimer I am new at hardware/circuits I am currently trying to connect two MPU-6050 to a single Micro board. In addition, there are 5 additional buttons to be connected. I am under the impression ...
1 vote
0 answers
144 views

Clocking issues while programming ATMEGA32U4-AU via USB bootloader

Hi, I'm designing a custom board with the ATMEGA32U4, with a GPS receiver and LoRa radio and it is powered from a LiPo battery. Since I'll need to make hundreds of this board later on, I'd like to ...
1 vote
2 answers
299 views

Is there a way to get about a 10ns Timer resolution from an AVR CPU?

I have an 8Mhz ATM32u4 that is able to read external pulse inputs at 125ns ticks using InputCapture3 (PC7) on its 16-bit timer. Is there a magical way (bitbanging?) to get around 10ns tick resolution ...
1 vote
1 answer
215 views

Input Capture with Sleep Enabled on ATM32u4 board only works every second reading in SLEEP mode

In short: I have an Input Capture code and a Power-Saving code combined into one program. Both are adapted from Nick Gammon's examples that work fine independently. When I combined them into one ...
0 votes
1 answer
229 views

Arduino Keyboard starts lower case (but it shouldn't)

So I flashed the KeyboardMessage example to my Arduino SS Micro ATmega32U4. When I open an editor and push the button, I would assume the output to be Zou pressed the button XX times. (The "Z&...
1 vote
2 answers
3k views

Can the Mouse library scroll horizontally?

I'm using the Mouse library with an ATmega32U4 connected to Linux via USB. I would like to issue horizontal scroll commands, but the Mouse.move() function only seems to accept X movement, Y movement ...
0 votes
1 answer
2k 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
1 answer
3k views

Flash firmware with hex file over serial with Python (no avrdude, Arduino IDE)

I'm trying to make a Python function in the TCLab package to flash firmware to an Arduino Leonardo (32u4). I can compile the TCLab ino (firmware) and deploy with the Arduino IDE or with the Python ...
1 vote
1 answer
170 views

Arduino Atmega32U with nRF51 BLE by Adafruit limited to 5 second update rate?

Would like to ask for assistance with the code below. It's the Adafruit Bluefruit Atmega32U LE module with Adafruit's Arduino IDE example "heart-rate monitor" sketch. The code uses the hardware SPI ...
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 (...
1 vote
0 answers
112 views

LUFA with pro micro 3.3v 8mhz not working

I am trying to flash my pro micro 3.3v from sparkfun with a Lufa project to make it act as a pokken controller, i am using this project Github Project I have modified the makefile for 8mhz and set the ...
0 votes
1 answer
72 views

What are the applicable processor for the ATmega32u4? And what are higher versions of ATmega32u4?

Can arduino uno smd r3 version handle a Keyboard.h library? it is not applicable for that arduino?
1 vote
0 answers
131 views

arduino atmega32u4 beetle extract hex code

I made a program using the Arduino Atmega32U4. As a security issue, I tried to extract the hex code because I wanted to know if this program was duplicated. avrdude -C"\avrdude.conf" -v -V -...
0 votes
1 answer
856 views

ATMega32u4 SLEEP instruction

I was reading the ATMega34u2 datasheet and trying to figure out Sleep Mode. I know most people recommend using avr/sleep.h library. But I wanted to try out using the registers. I am fairly new to all ...
1 vote
0 answers
579 views

ATMEGA32u4 Arduino Bootloader Issues

I've been struggling with this issue for a few days on and off now.  I made a custom PCB (schematic) for a smaller Arduino Pro Micro and it works - mostly.  The only issue I had was that the pins on ...
5 votes
4 answers
214 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
2 answers
4k views

How to program a BSFrance LoRA32u4 from Arduine IDE 8.5?

I've bought a BSFrance LoRA32u4 from DIYmall on eBay UK. https://bsfrance.fr/lora-long-range/1311-BSFrance-LoRa32u4-1KM-Long-Range-Board-Based-Atmega32u4-433MHz-LoRA-RA02-Module.html I've copied the ...
0 votes
1 answer
349 views

Flash size in boards.txt ATmega 328p 32u4

The ATmega328p and ATmega32u4 microcontroller have 32Kb of flash memory (as datasheet). Bootloader for each microcontroleer has different size (about 512 byte for 328p and 4kb for 32u4). Why in ...
0 votes
2 answers
547 views

32u4 using internal clock on custom PCB - loading sketch

I have a custom PCB with a 32u4 running fine with an 8MHz external oscillator. I burned the bootloader and loaded my sketch with an UNO using Arduino as ISP. I have no USB on my PCB nor do I need ...
0 votes
2 answers
3k views

Burning the Bootloader on Adafruit Feather 32u4

So, the default bootloader in Arduino is oddly set to erase EEPROM with every reboot, rendering the EEPROM, well, useless. I found where the fuses are set in the boards.txt file, but getting this ...
1 vote
2 answers
2k views

Using INT2/3 on Arduino Micro (Atmega32u4)

My project is using almost all the pins on this board and I require an interrupt pin to read radio state (rather than polling). I'm using I2C, so that leaves INT2 and INT3, which are the TX and RX ...
1 vote
1 answer
1k views

Using Analog Comparator on ATmega32u4

I am (currently) parsing a PPM analog signal using an Arduino Uno R3 using the analog comparator ASCR and analog hardware interrupts using AIN0 and AIN1. I am applying a specific negative comparison ...
2 votes
1 answer
10k views

Suddently, "avrdude: Device signature = 0x000000" with ArduinoISP. Is my chip dead?

I have some boards with the atmega32u4 that they were working perfectly before. I'm using an unnoficial UNO board to program them via ICSP. To power the uC I'm using two lithium batteries and a step-...
0 votes
1 answer
677 views

Eclipse Arduino Leonardo Pro Micro ATMega32U4 Programming Issue

Help Needed as I am little bit lost. I've procured a Pro Micro Board from sparkfun. Great little board and it work like clock work when using the standard Arduino Programming IDE. Well Copied the ...
2 votes
0 answers
1k views

How to enable auto reset in Arduino Leonardo?

I am trying to program an ATMega32u4 microcontroller through arduino IDE. I have added external oscillator(16Mhz) and capacitors and few other connections according to the Schematic. I had put a ...
0 votes
1 answer
345 views

NRF24l01 with Atmega 32u4 and internal clock

Will the nrf24l01 work with the Atmega 32u4 if I am using the 32u4's internal clock, or must I have an external clock source?
3 votes
1 answer
434 views

Red LED not turning off on Adafruit Circuit Playground Classic

When using the traditional Blink example program, the light blinks as expected. Even when writing from scratch digitalWriteing pin 13 to high and low repeatedly works fine. The problem is when I try ...