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 [atmega32u4]

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

0
votes
0answers
27 views

Atmega32u4 usb issue

I made my own custom Atmega32u4 board which worked all the time, but recently when I unplugged it for a moment to connect something to this port (I had no other free) board stopped working. windows ...
3
votes
1answer
59 views

Atmega32u4 issue

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 ...
0
votes
1answer
37 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 ...
1
vote
2answers
83 views

arduino firmware

Hi I was wondering if there is any way to/ how I might go about solving the following. I am designing my own arduino board based on a mega32u4 chip and I want my arduino board to light up an ...
0
votes
0answers
50 views

Using Watchdog Timer on an ATMega32u4

I'm trying to test out the watchdog functionality on an ATMega32u4 compatible development board. I've never used a watchdog before, but after checking out this link it seemed simple enough. I put ...
3
votes
4answers
119 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 <&...
0
votes
1answer
129 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-...
1
vote
2answers
97 views

I2c device disappear from bus after writing

I am currently experiencing a really odd I2C problem on a Atmega32u4 based card. I'm trying to use a TLV493D connected by I2C. I know from this thread that before using this device, I have to set the ...
0
votes
0answers
26 views

A32U4 (Pololu ASTAR ) trying to use Analog comparator -> interrupt

Sensor signal is ~0.5V (high). Need to get this detected as interrupt, timing is essential in this case. I found this library, so I dont have to start bit masking those registers (lazy, yes indeed) #...
1
vote
0answers
52 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
1answer
44 views

Problem in bootloading my ATmega32U4 chip

I have developed my own development board using ATmega32U4. I want to bootload my ATmega32U4 and hence I used Arduino Uno to bootload it. I have given the connections as per https://www.arduino.cc/en/...
0
votes
1answer
97 views

Atmel atmega32u4 not recognized when connected by usb after attempting to flash new bootloader

I am making a mechanical keyboard using Atmel's pro micro as the controller. I decided I would try to replace it's bootloader, as the one it ships with doesn't seem compatible with QMK's RESET ...
0
votes
1answer
83 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 ...
1
vote
1answer
202 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
2answers
450 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 ...
0
votes
0answers
22 views

XCSource Pro Micro strange behaviour

I've got an XCSource Pro Micro (Sparkfun Pro Micro clone), which is an ATMEGA32U4 board and can be used as either an Arduino Leonardo or Micro. I wrote a simple sketch to use it for a 2-axis/2-...
0
votes
1answer
136 views

Using the physical serial port on a BSFrance LoRa32u4?

I can use the serial-over-USB channel by simply using Serial in my code. The LoRa32u4 has an RXD1 and TXD1 pair on pins 20/21 (Arduino 0/1). https://docs.bsfrance.fr/documentation/11296_LORA32U4/...
2
votes
0answers
306 views

Does the Arduino pro-micro 3.3v use an 8MHz crystal or a 16MHz crystal with a clock divisor of 2?

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 (...
2
votes
1answer
280 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
1answer
826 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 ...
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
0answers
94 views

Pro Micro/Leonardo : USB won't work when powered from RAW pin

I'm trying to use a Pro Micro 5v to send MIDI data to my iPhone, via USB, to control a music app. I have an Apple Camera Connection Kit (CCK) to make the connections. My iPhone sees the SparkFun board,...
1
vote
2answers
515 views

After burning bootloader, Windows 10 doesn't recognize the USB device

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,...
1
vote
3answers
256 views

Analog input draws current when Arduino is turned off

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 (...
0
votes
1answer
136 views

Set clockspeed of Arduino Pro Micro a. k. a. AtMega32u4

Is it possible to change clock speed when running sketch? Low-power lib drops the current consumption from 20mA to 9.5mA at 8MHz, it is still too much. Is there a way how to set clockspeed (for ...
0
votes
0answers
147 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 ...
1
vote
1answer
364 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
1answer
198 views

Arduino with ATmega32U4 low power but keep Serial1 working

I am looking for a low power solution for my ATmega32U4. It uses Serial1 to communicate with Bluetooth, so I need to have it active. When I receive data from Serial1, I want to power up the Arduino, ...
0
votes
1answer
499 views

Arduino Micro serial communication is not working after wake from power down

I'm trying to use the power down state for a battery application, but I'm having issues with the serial communication. I'm using the lowpower.h library to put the Arduino Micro into power down mode. ...
3
votes
3answers
441 views

Arduino Leonardo as keyboard for an iPad

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 ...
2
votes
1answer
459 views

Arduino Leonardo(Atmega32u4) - Detecting if USB is connected to a computer?

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 ...
0
votes
1answer
178 views

Which Timer can I use on the Arduino/Genuino Micro?

I'm trying to implement charlieplexing with bit angle modulation on my Arduino Micro, and for that I need to use the internal timers. Which timers of the Atmega32u4 are unused by the standard ...
2
votes
1answer
767 views

Custom board with ATMega32u4 having USB issues

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 ...
0
votes
2answers
258 views

Optimizing ext. SPI ADC for speed and verify the speed

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. ...
0
votes
0answers
402 views

Can't reset Arduino Pro Micro

I'm trying to reset an Arduino Pro Micro with a new code and it is not allowing me to. I'm using an empty sketch to upload to the pro micro but I get different error messages every time. I think the ...
5
votes
4answers
1k views

Library to set internal analog gain of the Arduino?

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". ...
0
votes
1answer
466 views

High power consumption of ATmega32u4 when connected to iOS device

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 ...
0
votes
1answer
40 views

help connecting atmega32 micro-controller to LAN [closed]

I have an atmega32 micro-controller and I would like to connect it to my LAN via ethernet, I'm planing to do this using arduino ethernet shield W5100 but I don't know how to start or how to interface ...
0
votes
0answers
66 views

Atmega32 push button library problem

I have two files, the first file is a library that I use to handle push buttons and initialize it and the second is where I handle my code and change LED state when push button is pressed, but my code ...
0
votes
0answers
849 views

ATmega32u4 usb powered, minimal bootloader and test circuit

I'm new in electronics and I want to use a ATmega32u4 in a very compact project. It will have no raw supply, only +5v from usb. I've done a lot of research and i built this two schematics: one is the ...
0
votes
1answer
881 views

Why won't my iMac recognize my Mega32u4 Arduino Pro Micro board (I've tried several cables)?

I bought this Pro Micro on eBay a while back, and I never really got around to using it. But now that I do my iMac won't recognize the board. I plug it into my iMac and open Arduino and go to the ...
0
votes
0answers
37 views

Get data from a running exe on my pc

I have made a button with an LED using an arduino micro. It's connected to my pc and when I hit the button, the LED activates and a recording on Reaper (digital audio workstation) is started. When I ...
0
votes
2answers
107 views

Using Arduino libraries for adding more functionalities to a bootloader

I have a short question to ask before putting time for research. I have an Arduino Leonardo with the LUFA mass storage bootloader flashed. Now what I need to do is to add more functionalities to the ...
0
votes
1answer
57 views

Why does Keyboard.Print adds random values to url?

I'm trying to print a sequence of power shell commands including a url to the powershell interpreter but every time I execute it with the Arduino Micro it adds random values to the url. Here's the ...
0
votes
2answers
2k views

Which key is KEY_LEFT_GUI?

This might be a very simple question but I don't know which key represents KEY_LEFT_GUI on my keyboard. I thought it was the windows key but when I program Arduino Micro to execute it. Run does not ...
0
votes
1answer
619 views

Microcontrollers with built in HID support

I am trying to build a wireless gamepad for which i am using NRF24l01 module for my wireless need and for Sending data to computer i need an mcu which support to act as hid device. So far, i got ...
0
votes
1answer
440 views

Atmega32u4 external 8MHz clock

Does anyone know how to configure the Atmega32u4 to run using an external 8MHz oscillator ? I needs to still be responsive to the Arduino IDE Thanks
2
votes
1answer
101 views

What to do after prototyping?

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 ...
2
votes
2answers
1k views

Minimal Arduino using ATmega32U4

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 ...
1
vote
3answers
283 views

Listen for USB “TX signal received” response on RX [closed]

Is there a usb signal I can send on TX that will generate a response from the computer on the RX only if the computer is active/not a wall usb power supply? I'm trying to use the Remote library when a ...