Skip to main content

Questions tagged [atmega32u4]

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

Filter by
Sorted by
Tagged with
5 votes
4 answers
241 views

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 <&...
Igor Liferenko's user avatar
5 votes
4 answers
4k views

My original question was if there is a library that covers the internal comparator and differential and gain modes for the Arduino Uno, Mega 2560, Leonardo, Due, Zero, M0. The answer is obvious: "No". ...
Jot's user avatar
  • 3,286
5 votes
1 answer
4k views

I'm having some programming problems. So here's what's happening: In my .ino file, I have a tft variable which holds the connection to a LCD. I want to make a class which can either automatically ...
vxcheese's user avatar
5 votes
1 answer
1k views

I am trying to move from arduinos to AVR C. Would somebody know how to remove the arduino bootloader from the microcontroller? Is there a different process for the different atmega microcontrollers ...
Naan's user avatar
  • 73
4 votes
1 answer
2k views

The closest thing I can find is if(Serial) but that only returns true if there's a serial port open. The function I want, ideally, should: Return true if plugged into a computer Return false if ...
Stephen's user avatar
  • 43
4 votes
1 answer
1k views

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 some ...
lepe's user avatar
  • 141
3 votes
3 answers
2k views

I'm trying to make a Arduino Leonardo as a Keyboard for an iPad. I was successful with an Arduino UNO. However I'm hoping to use an ATmega 32U4 because of the better HID functionalities and smaller ...
fsaint's user avatar
  • 81
3 votes
2 answers
6k views

I am a newbie and I would like to build my own minimalistic ATmega32U4 based arduino compatible board. Can anyone please tell me which parts resistors/capacitors (and maybe one status led) I need to ...
Chris's user avatar
  • 35
3 votes
1 answer
2k views

What are the voltages on a ATmega32u4 (eg Arduino Leonardo) such that a HIGH or LOW is read? I want to ensure that I'm reading the chip reference manual correctly, where Table 29-1 says: VIL: Input ...
Tom Hale's user avatar
  • 431
3 votes
1 answer
730 views

I made a custom ATmega32u4 board for my project. Components came from clone of Arduino Pro Micro (with bootloader and code which I uploaded) from AliExpress. I soldered everything in to my board ...
Muzykk's user avatar
  • 31
3 votes
1 answer
341 views

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 ...
Jay's user avatar
  • 135
3 votes
2 answers
3k views

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 ...
Keima-kun's user avatar
3 votes
1 answer
2k views

I am trying to convert some 5v Leonardo-compatible boards to run at a lower 3-3.7v voltage, so that I can power my project using LiPo batteries. As far as I can tell, the default Leonardo settings (...
MRule's user avatar
  • 133
3 votes
1 answer
509 views

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 ...
Daffy's user avatar
  • 141
3 votes
1 answer
2k views

I built a custom arduino based board (speciffically based off of Sparkfun's Pro Micro 3.3V 8Mhz and their Qduino mini boards) that uses the ATMega32u4-RC. The board I built integrated an acceleromter ...
user29032's user avatar
  • 149
2 votes
2 answers
3k views

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
1 answer
5k views

There are existing projects that allow the Uno and other devices using the ATmega8u2 to operate as a USB MIDI HID, such as MocoLUFA. Unfortunately, as far as I am aware, these require uploading new ...
naught101's user avatar
  • 123
2 votes
1 answer
2k views

I'm using FastLED with a custom board built around the ATMega32u4. When I set it to use Software SPI, everything works fine, but when I use hardware SPI it just hangs whenever it tries to write out ...
Adam Haile's user avatar
2 votes
1 answer
423 views

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 ...
Dakkaron's user avatar
  • 239
2 votes
1 answer
2k views

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 ...
Nikolai's user avatar
  • 23
2 votes
1 answer
10k views

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-...
Jorge Gonçalves's user avatar
2 votes
2 answers
333 views

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 ...
gilhad's user avatar
  • 1,466
2 votes
1 answer
835 views

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 ...
santiago's user avatar
2 votes
2 answers
6k views

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 ...
Alex's user avatar
  • 153
2 votes
1 answer
250 views

As far as I understand it checks for a valid serial connection (new program incoming) and then either writes it to flash or starts executing the existing program. Can't the 32u4 or EDBG fill the role ...
Ashlyn Black's user avatar
2 votes
1 answer
246 views

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” ...
Felix Jen's user avatar
  • 123
2 votes
1 answer
3k views

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 ...
Simson's user avatar
  • 123
2 votes
2 answers
911 views

So I have a project where I will be using an Arduino Leonardo and an external ADC (AD7980) to run a 16-bit (18bit) conversion and transmit it to the Arduino and then out on USB as fast as possible. ...
Martin.E's user avatar
2 votes
1 answer
360 views

I'm building an audio circuit that will play VGM files (Video Game Music). I have it working with two different "vintage" IC's such as the SN76489 and the AY-3-8912. Currently, my design is using an ...
cbmeeks's user avatar
  • 247
2 votes
0 answers
1k views

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 ...
NaNN's user avatar
  • 21
2 votes
0 answers
382 views

I am finally ready to try setting fuse bits on my ATMega32u4-AU custom board (8Mhz Ceramic Resonators, 3.3V), however, after I set the fuse bits and plug my board to computer, the device manager ...
Harmony Yu's user avatar
2 votes
0 answers
937 views

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: ...
kenjara's user avatar
  • 123
1 vote
3 answers
12k views

In another words, is it possible to develop a custom bootloader so sketches can be uploaded via serial connection made using the RX/TX pins and not via the USB connector (I am using Pro Micro boards)? ...
Olivier's user avatar
  • 11
1 vote
2 answers
409 views

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 ...
TommyS's user avatar
  • 71
1 vote
2 answers
2k views

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 ...
RedGrittyBrick's user avatar
1 vote
2 answers
1k views

I'm building a USB keyboard that has two buttons - space and enter. The plan is to use this USB keyboard (with an Apple Lightning connector to USB) with the built in iOS switch control. I bought the ...
Jesse Fryar's user avatar
1 vote
1 answer
189 views

I have several projects that use simple 328 based arduinos that I built myself, similar to the familiar "arduino on a breadboard" projects that I'm sure everybody has seen. They have just the bare ...
3z33etm's user avatar
  • 113
1 vote
3 answers
2k views

I am using a Arduino Pro Micro from SparkFun (similar to Arduino Leonardo, cpu: Atmega 32u4). It has a analog input: A0, which I use to keep track of the battery voltage in my battery powered project (...
salami738's user avatar
1 vote
1 answer
236 views

I want to make a USB gamepad, and I've heard that an Arduino would be great for this kind of project. But before I start to work on it, I want to make sure I understand some things. Here are my basic ...
Max Jacob's user avatar
  • 157
1 vote
1 answer
337 views

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 ...
k. theodosis's user avatar
1 vote
1 answer
265 views

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 ...
therman's user avatar
  • 41
1 vote
1 answer
276 views

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 ...
TommyS's user avatar
  • 71
1 vote
1 answer
11k views

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 error ...
Yevgen's user avatar
  • 111
1 vote
2 answers
130 views

Has anyone had success using the keyboard functionality of any arduino in single user mode of mac computers? I would like to inject keystrokes in single user mode, and have been unsuccessful with the ...
necrosato's user avatar
1 vote
2 answers
2k views

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 ...
Paul's user avatar
  • 19
1 vote
2 answers
2k views

I just built my own version of an Arduino Micro, using the ATMEGA32u4 chip. I burned the bootloader to it via another Arduino (Arduino Nano from banggood.com). The Arduino Nano uses an ATMEGA328 chip,...
Jesse Fryar's user avatar
1 vote
2 answers
3k views

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 ...
Ian Mackinnon's user avatar
1 vote
1 answer
2k views

Just wondering if I can get some help here. I have a simple scheme of MIDI controller based on ATmega32u4: ATmega32U4 with TXLED and RXLED as output pins and USB functionality And my team wants me ...
user avatar
1 vote
1 answer
3k views

I'm having problems with using Arduino Leonardo PWM outputs (I'm actually using YUN board). I need 4 PWM outputs that generally have the same base frequency of around 10 to 20 Hz or so. I'm using ...
rough neck's user avatar
1 vote
1 answer
3k views

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 ...
John Hedengren's user avatar