Questions tagged [atmega32u4]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
28 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
1answer
58 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 ...
-1
votes
2answers
63 views

Schematic with Atmega32U4 and WS2812 Led (Smiley Shape). Does it work? [closed]

I'm new here and I'm a newbie in electronics. Since 1 year I'm playing around with Arduino (different types) and now I want to build my own thing: a smiley with WS2812D-F5 RGB leds. But I'm not sure ...
0
votes
1answer
46 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
0answers
99 views

avrdude: initialization failed, rc=-1 on Windows but works on Linux

I am using a Deek-Robot USBTinyISP to talk to an ATMega32u4 using avrdude. When I plug the programmer into my Arch Linux box, it works immediately with no drama, but Windows refuses to talk to the ...
0
votes
0answers
21 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
1answer
170 views

Can an Arduino (Leonardo) be recognized via Bluetooth as a mouse/keyboard?

I'm new to wireless communication on Arduinos and doing research for a project. I'm looking at the Arduino Leonardo (which is like the Uno) which via its micro USB port can be automatically recognized ...
0
votes
3answers
57 views

Is it possible to upload an arduino sketch through the serial port (RX) instead of USB

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)? ...
1
vote
0answers
60 views

Atmega 32U4 doesn't show on device manager after fuse bits reset

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 ...
-3
votes
1answer
66 views

Latest datasheet for Leonardo's ATmega32U4 [closed]

What is the authoritative source(s) for the ATmega32U4 (or any Arduino chip for that matter) datasheet?
3
votes
1answer
120 views

Digital I/O threshold voltages for ATmega32u4

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

Arduino Micro draws too much power from iPhone. How can I change that?

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 ...
0
votes
0answers
32 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 ...
1
vote
2answers
106 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
1answer
183 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 ...
1
vote
2answers
52 views

Is Arduino Keyboard in Single User Mode Possible?

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 ...
3
votes
1answer
122 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
305 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
91 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 ...
3
votes
4answers
150 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
1answer
1k 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
232 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 ...
1
vote
0answers
94 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
131 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
302 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
248 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
664 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
1k 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
1answer
363 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/...
3
votes
1answer
700 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
703 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
2answers
2k 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
3k 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 ...
1
vote
2answers
852 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
670 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
271 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 ...
1
vote
1answer
683 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
371 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
834 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
800 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
718 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
300 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 ...
3
votes
1answer
1k 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
466 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
671 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
2k 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
664 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
50 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
74 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
1answer
2k 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 ...