ATMega is a family in the AVR series of Atmel microcontrollers. This is the main microcontroller of the Arduino prototyping platform. Please Specify the specific part number in your question.

learn more… | top users | synonyms (3)

0
votes
0answers
5 views

Replacing atmega8 with atmega328 on Arduino Single-Sided Serial Board [migrated]

i want to know that if i use atmega328-pu instead of atmega8 on this design provided by "https://www.arduino.cc/en/Main/ArduinoBoardSerialSingleSided3", will it works fine on this design or i have to ...
0
votes
0answers
26 views

Burning Arduino Leonardo Bootloader to ATmega32U4 with 8MHz internal clock [migrated]

Burning question: So, I'm trying to burn the Arduino Leo bootloader onto a ATmega32U4 that's on 3.3V and the internal 8MHz clock. Do I have to modify and rebuild the bootloader to set the fuses ...
2
votes
1answer
43 views

AVR SPI shift register not clocking

I'm trying to generate parallel output by writing serial data into a shift register (SN74HC595) via SPI on an ATMega328 (SPI master) running at 20MHz and SPI running at 10MHz. The bare minimum ...
0
votes
2answers
32 views

What is default Clock Frequency for Atmega8

I was upto use the UART of my Atmega8 but when i looked at the formula for UBBR, it asks F_CPU(frequency). I have made my own board and havent connected any external clock so what is the frequency my ...
2
votes
0answers
61 views

HD44780 LCD with Atmega8. Only Cursor, no characters

I am trying for hours but i can only see cursor blinking and no characters. but If i write say 'ABC' then cursor will blink at 4th index but i cannot see ABC. I am using atmega8 with LCD in 8bit mode, ...
0
votes
2answers
63 views

Battery gauge – Microcontroller 3.3V using a 4.8V NiMh battery source

Well I am currently working on building a battery gauge via LED. My target is a red LED to blink if batteries are going to die and a green LED to blink if the batteries are fine. Researching on ...
0
votes
1answer
32 views

arduino boot up button and shutdown mode on regulator

We've a projet with an important autonomy concern. We use an homemade arduino (atmega328), and for the moment we're using interrupts on buttons to wake up the atmega. so we have: sleep ->(button ...
0
votes
0answers
28 views

Cannot read PORTB from ISR [duplicate]

I am trying to interface an ultrasonic sensor to Atmega328P (arduino uno). I have connected ECHO pin of the sensor to PORTB and used pin change interrupt on this pin. Inside the ISR I try to read ...
0
votes
1answer
55 views

speed control loop for line following Robot

I am working to control the speed in my line following Robot (using arduino uno),by using proportional constant Kp in a closed loop, in my code I calculate the RPM from The Right Motor and the Left ...
0
votes
0answers
43 views

counting pulses from encoder on interrupt 0 pin every 50 ms [migrated]

I want to calculate the number of pulses coming from motor1 encoder pin2 (Int0) as input , and motor 2 encoder pin3 (Int1), I am working now for the first motor (just for the first motor ) so I set ...
0
votes
1answer
46 views

Programming an ATmega32u4 through USB

I'm designing my first circuit with an ATmega 32u4 processor. Since I read about the BOOTRST and HWBE fuses I'm confused about the programming of the chip. If I use a brand new, untouched processor ...
0
votes
0answers
12 views

Modifying UDRx registers in the Atmel Studio 6.2 Simulator

I'm currently working on a system which makes use of an Atmega640. In order to aid debugging I'm trying to use the simulator within Atmel Studio to run the code and observe what it does. The problem ...
0
votes
1answer
49 views

Atmega328p voltage connections confusion

I am designing a board relying on atmega328p. In order to be able to load the arduino bootloader I added ICSP pins and connected them accordingly. Pin number 2 is VCC pin and I connected it to VCC pin ...
0
votes
2answers
50 views

Atmega 16 - Timer0 with interrupt

In this code the one LED is glowing at one pin PC0 with flash every 50 ms. It has XTAL of 16 MHz. With CPU frequency 16 MHz, even a maximum delay of 16.384 ms can be achieved using a 1024 prescaler. ...
2
votes
1answer
37 views

TWINT flag never goes up

I want to establish I2C connection between two atmega2560. First one is working as a master, and second as slave. Master works on a transmitter mode, and Slave works as receiver. On Master side: ...
0
votes
0answers
16 views

atmega32 piezo detect knock

I am trying to hookup a piezo sensor to an atmega32 and detect a knock. From the following website I took the example for the connection: https://www.arduino.cc/en/tutorial/knock Except I am not ...
-3
votes
1answer
61 views

Voice controlled robot [closed]

Suggest me book name or link to study for voice controlled robot (DSP on matlab for voice recognition). What is the hardware module/ sensor for voice recongnition?
1
vote
0answers
75 views

Atmega328P is not responding in avrdude using usbasp

I have a cheap Chinese USBASP clone and it works fine with my ATtiny13A, but I always get this: ...
0
votes
2answers
71 views

Printing SD Card File contents on LCD

This is a part of my program which reads data from SD card File and Display that on LCD screen. ...
0
votes
1answer
67 views

Atmega328P 32.768KHz Crystal Issue

I am having an issue with 32.768khz crystal connected to an Atmega328P (which I am using as an external source to timer2 in asynchronous mode to wake up the Atmega from sleep every second). On a ...
0
votes
1answer
68 views

WS2812B with ATMega8 and light_ws2812 Libray

I have connected four WS2812B modules I got from eBay to my AtMega8 and tried to use the light_ws2812 libray to controll them. I connected the wire used for communication to the PC5 Pin on my ATMega ...
0
votes
0answers
70 views

Communication between two XBee S2 in AT mode

I want to establish a simple wireless link between my two AVR microcontroller boards; (one is ATmega8 and second is ATmega16), using XBee series 2 modules. I simply want to send some data from one ...
1
vote
0answers
46 views

ATmega328P SPI fails to transmit

G'day, I am currently experimenting with the an ATmega328P (on an Arduino, but programmed directly in C without the Arduino libraries) and it's SPI bus for communication with no other devices ...
0
votes
1answer
61 views

How to interface camera to an atmega328 with bluetooth?

I am a newbie in microcontrollers. I read on the net that a camera can be interfaced to an atmega328. Only issue is that the atmega328 has less memory for even a single VGA image. Can i interface a SD ...
0
votes
0answers
21 views

Atmega16L - avrdude unable to communicate, AP0 and 1 blinking

My ATmega16L chip started to behave weirdly (When 8 leds were connected to 8 Port A outputs, AP0 and AP1 were blinking.), avrdude was asking something about fusebytes ("Fusebytes changed, do you want ...
0
votes
0answers
63 views

Sending data from Atmega8 to Android through HC-06

I am building up a communication between Atmega8 and Android device through HC-06. The uC can read the comfortably. But when it sends data the received data is garbage. The baudrate of working UART is ...
0
votes
3answers
192 views

12 hours delay with ATmega16A

I am trying to turn on a LED for 5sec every 12 hours. I tried: ...
2
votes
0answers
56 views

Issue with _delay_ms and PORT

Whenever I try to set a certain port to high, then wait some time, then set some other port to high, I get an issue where only the last value would be set. The code I import via USBASP and avrdude is: ...
0
votes
2answers
77 views

I2C on atmega168/328 using interrupts

I have the following I2C configuration with an ATmega168 (1 MHz) as the master and an Arduino Uno (16 MHz) as the slave. The command for the LED connected to the slave comes from the master and ...
0
votes
1answer
66 views

DAC interfacing with Atmega128

Hope you are doing well and solving all your problems!!! I am new to hardware programming, facing some difficulties to work with DAC interfacing with Atmega128 board. After searching on internet, ...
-5
votes
1answer
51 views

AT90USB VCC & GND PINs(Where to where?

Where do I connect these pins?so many wayz in google.Im using P? for programmer pinboxheader and J? is USB porb to send ADC data to PC ...
0
votes
1answer
65 views

ADC neglects input voltage (ATMega32)

In the following AVR code, why do I always see the same voltage for all pins of port A? I am using ATMega32. BTW, when I am grounding some pins of port A I do not see any change in the output. It ...
0
votes
1answer
21 views

can't read&store in global variable in function OR can, but get error reading ds18b20 sensor

I'm using Atmega8 with CVAVR 2.05.0 and trying to slightly modify the way ds18b20 library works. I want to store temperatures from sensors in global array and start conversion for all sensors at one ...
0
votes
1answer
135 views

Measuring AC voltage (0.333vac max) using a 10 bit ADC on Atmel ATMEGA328

new to this so please be kind. want to measure AC current in domestic supplies using an atmel ATMEGA328P chip wit the best resolution possible I need to use the split core current transformer ...
0
votes
1answer
91 views

Atmega Microcontroller interrupt delay function on button press

I am using Atmega32A and I have 2 LEDs. Here's step by step what I want to do When the MCU is powered, I have one LED lit (PC0) When click on a button (PD6) the second LED at (PC1) is lit and the ...
0
votes
0answers
72 views

How to reset AVR microcontroller?

I recently assembled my first custom PCB with an ATMega328 and ran into some problems. Is there an easy way to reset the chip to default settings including fuse bits so that I may start fresh? Any ...
0
votes
1answer
53 views

If I Don't Wire USBASP to ATmega 328-PU Will I Burn Out My Chip

This is a simple, noob question. I'm trying to connect a USBASP with an ATmega 328-PU. If I incorrectly connect them, such as put ground into vcc or miso into mosi, will I kill my chip?
2
votes
2answers
61 views

Serial XOnXOff handshaking

I have the following code running on an atmega328 (ArduinoUno). ...
1
vote
1answer
72 views

RESET(bar) Pin of ATmega16

The datasheet says that an External Reset is generated by a low level on the RESET pin. And after reset all my conditions and values will be set to initial values. I have connected the Reset(bar) pin ...
0
votes
1answer
90 views

Low-Pass filter on AVcc pin for ATtiny

The datasheet for the ATtiny861a states that "If the ADC is used AVCC should be connected to VCC through a low-pass filter". The datasheet doesn't specify what values I should use or what style of ...
1
vote
2answers
86 views

Problem with SPI communication when Silabs Si86xx digital isolator is used

I'm trying to establish communication between Atmel Atmega32U4 (used in Arduino Leonardo) on MCU PCB and TI DAC8552 on PSU PCB via isolated SPI link. For isolation I'm using Silicon Labs Si86xx ...
0
votes
1answer
45 views

Remote Control Program for ATMEGA168P circuit

Hello I will make maybe a fool questions. I have this diagram: This diagram is to turn on/off led lights, make blink via remote control. Now the questions are: 1.-What kind of remote control I can ...
0
votes
3answers
94 views

ATMEL AVR ATmega168P 8 mhz

Hello I will use this circuit to put lights in a model car: Now the question is if you can see is required one ATMEL AVR ATmega168P with CPU clock frequency to 8 mhz and I can´t find in any place ...
1
vote
2answers
241 views

ATMega32 USBasp not programming

I use no Arduino just trying to program a simple ATMega32 using USBASP. Getting this message: ...
0
votes
1answer
60 views

Questions about an atmega32 serial-bus to RS232 with converter and different logic levels

I have an atmega32 and a FUM DCF-U atomic clock (signal receiver and decoder) of HKW-elektronik. The µ-controller works with 5V and the module on 3.3V. I have to build a converter, because the ...
0
votes
3answers
87 views

How to program an ATMega328 using a Serial Port without using programmers such as USBasp

I am currently learning electronics. I recently bought an ATMega328 and an USBasp programmer to begin my learning. But I couldn't use the USBasp to program my chip. So I researched on other ways to ...
1
vote
1answer
331 views

Software Serial alternative with AVR (Two Serial/UART ports in atmega328p)

Arduino pins can be used as UART using the library SoftwareSerial.h Is there any alternative ...
2
votes
1answer
70 views

How to program a microcontroller over another microcontroller?

I am currently working on a project that requires two separate microcontroller to work together, but since I am still working on the project I generally need to update their programs. I couldn't find ...
1
vote
1answer
33 views

Atmega 328 with DS1620 thermometer chip. Why is a pull-up resistor needed on the DQ line

I think understand the purpose of pull up resistors in general but in this particular case the DS1620 datasheet says that in the output mode it sources a current of 1ma (see footnote 5 on the last ...
0
votes
2answers
69 views

FET atmega168 - transistor needed?

I'm trying to make a BLDC controler, and I'd like to use an atmega168 as microcontroler and N-FETs (x3) to control the motor. The microcontroler will output a PWM that will control the motor's ...