Questions tagged [avr]
AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the first generations of the popular Arduino SBCs.
1,931 questions
7 votes
4 answers
280 views
Accessing 16-bit Registers: Is this an error in the ATTiny102 datasheet?
EDIT: Microchip responded that this is an error in the datasheet. We have received clarification from our technical experts regarding the 16-bit register access order in the ATtiny102/104. After a ...
1 vote
2 answers
106 views
Where did using the name "UBBR" instead of "UBRR" for the AVR UART Baud Rate Register come from? [closed]
My embedded systems design professor, many online tutorials, and even well received questions and answers from this site use UBBR for the UART Baud Rate Register, ...
4 votes
2 answers
437 views
Air Quality Index from BME688 environmental sensor with new AVR 8-Bit MCU
The BME688 environmental sensor requires using the closed source library BSEC to get an Air Quality Index as it only provides the raw gas sensor resistance. I'd like to use the sensor with for example ...
5 votes
1 answer
561 views
Efficiency of interrupts sharing the same Interrupt Service Routine
In an experimental project using an AVR64EA MCU, I've wired two external interrupts to pins of the same port. The ISR looks like this: ...
4 votes
1 answer
121 views
MISO pin: pullup or disable digital input buffer for lowest power consumption?
I'm currently getting into the newer AVRs with the AVR64EA28 (very happy so far). The playground project does: measure temperature with the ADC and a thermistor transmit measured temperature with an ...
1 vote
0 answers
74 views
MCU data logger design without any power supply/batteries
Assume we are to create a simple MCU data logger that will record the amount of times the apartment door has been opened. Door has a small SPDT limit switch fitted, which pulls the pin of the MCU low ...
2 votes
1 answer
71 views
AVRISP mkII does not frees SPI after programming
I'm using a ATMega2560, and a FT812 Graphical LCD. Before my upgrade, I'm used USBASP and worked well. For some reason, I bought a AVRISP mkII. But I got a problem, the programmer does not frees the ...
2 votes
1 answer
127 views
3.3V to 5V logic level shifting not working with UART
I bought a whole bunch of level shifters from Sparkfun and another vendor on Amazon. None of them seem to actually work (tried with like 6 different ones). SO, I guess I'm doing something wrong. I'm ...
4 votes
1 answer
343 views
Why do servos pulsate?
I have a SG90 servo connected to an Arduino Uno. PB1 is connected to the orange (signal) wire of the servo. 5V and GND pins on the Arduino are connected to the red and brown wires of the servo. I'm ...
3 votes
1 answer
185 views
Can't get GT-NUCL1633K1 fingerprint reader to work
I'm trying to interface an ATmega328P with a GT-NUCL1633K1 sensor over UART. When I send commands to the sensor, it responds just by echoing the command, instead of actually doing anything. For ...
-1 votes
1 answer
87 views
Don't understand AVR Microcontroller makefile (Newbie) [closed]
I recently got interested in arduino again after an fun experience at work. I found an old arduino kit for a class from college and started to tinker with it. I decided to bypass the arduino and work ...
0 votes
1 answer
104 views
Unable to Implement Bootloader for AVR128DA48
I have limited experience with microcontrollers and I am currently working on implementing a simple bootloader using the code provided in the following repository: AVR128DA48 Curiosity Nano Bootloader ...
3 votes
2 answers
114 views
Unstable ATtiny13a _delay_us
I have instructed ATtiny13a to continuously create 1-0-1-0-1-0... trying to target exactly 600 baud rate. On the other side, I use Arduino to measure duration of each pulse emitted by Tiny. These are ...
2 votes
1 answer
166 views
A simple way to verify that radio transmitter is working?
For fun and to learn, I am trying to transmit some data from one RFM69HCW ~900 MHz to another with an Atmega328p and "plain" avr-libc. Initialization is okay I think; reading and writing ...
0 votes
1 answer
133 views
Leveraging the ability of AVR microcontrollers to self-program [closed]
I am planning writing an elaborate swarm-like (8-16 chips with no common bus to speak of) solution. Given that I plan on storing 3k of data (considering implementing compression) and need some clarity....