Top "Atmega" questions

ATmega is a product line within Atmel's AVR micro-controller family.

C - AVR - Simple PORTB, DDRB, PINB explanation

I am working on school project and need to learn the basics of C with a AVR atmega controller. I …

c avr atmega
Using a rotary encoder with AVR Micro controller

I'm having trouble getting a rotary encoder to work properly with AVR micro controllers. The encoder is a mechanical ALPS …

microcontroller avr encoder atmega
Arduino Nano Timers

I want to know more about Arduino Nano timers. What timers are there? Do they produce interrupts? What code would …

timer arduino avr atmel atmega
Pulse width modulation (PWM) on AVR Studio

I'm trying to use PWM for an LED on an ATmega8, any pin of port B. Setting up timers has …

width avr pulse atmega
ATMega328P "AVRDude: Could not find USBTiny Device (0x1781/0xc9f)"

Good afternoon, I recently assembled an ATMega328P based micro-controller PCB of my own design. I feel good about the …

arduino atmega avrdude
Arduino Uno PWM pins conflict

I built this motor shield based on the L298N chip to control two motors of a tank. It uses …

timer arduino avr atmega pwm
How to detect how long a button was pressed in Arduino?

How can I detect how long a button was pressed / released in Arduino and then print some custom output after …

c arduino atmega
Arduino: Lightweight compression algorithm to store data in EEPROM

I want to store a large amount of data onto my Arduino with a ATmega168/ATmega328 microcontroller, but unfortunately there's …

algorithm embedded compression arduino atmega
Unexpected float behaviour in C with AVR atmega8

I've been trying to figure out why I cannot get a sensible value from multiplying an unsigned int with a …

c floating-point int avr atmega
ATmega328 + SPI Flash Memory

Preface: This question is about a project I am working on with a professor at my university. It is NOT …

arduino atmega flash-memory