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)

-3
votes
1answer
41 views

Voice controlled robot [on hold]

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
41 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
63 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
57 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
0answers
21 views

Software I2C - Atmega8 [migrated]

I am using Atmega8 with 12MHz crystal, on my breadbord. I can use SDA and SCL pins with default arduino library wire.h, and it works. But I want another pins to use I2C protocol. I tried library, ...
0
votes
1answer
40 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
48 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
38 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
0answers
40 views

Programing an AVR using ISP? [migrated]

I am trying to program an atmega with arduino sketch using ISP only .(mac user) So i know how to burn a boot loader ,and than to program the chip using the TX,RX , but i would like to program it ...
0
votes
0answers
60 views

digitalRead(A0) returns true when A1 is HIGH [migrated]

I have an Atmega328P-AU with 16Mhz crystal(schematics). And its analog pins A0 to A3 are connected to button inputs. All these pins are pulled-down(10K res). And in code, I have digitalRead(A0) to ...
0
votes
1answer
47 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 ...
5
votes
0answers
174 views

ATmega328 very deep sleep and listen to serial? [migrated]

I have investigated the sleeps options of the ATmega328 , and read a few articles about it , and i would like to understand if there are more options . So i would like to get as low current as ...
0
votes
0answers
37 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
171 views

12 Hour delay for atmega16a

I am trying to turn on a LED for 5sec every 12 hours. I tried: ...
2
votes
0answers
50 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
71 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
51 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
45 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
48 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
20 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
103 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
76 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
63 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
49 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
59 views

Serial XOnXOff handshaking

I have the following code running on an atmega328 (ArduinoUno). ...
1
vote
1answer
61 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
66 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
78 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
39 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
89 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
1answer
173 views

ATMega32 USBasp not programming

I use no Arduino just trying to program a simple ATMega32 using USBASP. Getting this message: ...
0
votes
1answer
47 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
2answers
57 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
276 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
28 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
68 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 ...
0
votes
4answers
134 views

Proper Way of Powering a Circuit with 2 AA Batteries [closed]

That is a real primitive question. a) Many MCUs and SOCs are able to work @3V (-/+ 0.3V) b) This is voltage of 2 AA (or AAA) batteries And the real question is: What is the legitimate way to ...
2
votes
1answer
56 views

Why the led is blinking instead of keeping on atmega8

I wrote a very simple sample code into my atmega8 via avrstudio here it is: ...
0
votes
2answers
203 views

LCD 16 x 2 1602A Interfacing

I have bought a 16 x 2 LCD which I want to interface to a ATMEGA 324 microcontroller. The problem is that the vendor didn't give me a good enough datasheet. It does not contain any information ...
0
votes
1answer
75 views

Atmega2560 Usart Interrupt problem

When I send any data from serial port, RX pins are flashing but ISR is not running. Here is my code. ...
0
votes
1answer
65 views

Atmega328 fast PWM (mode 7) of timer 0 not working as expected

I am blinking an LED on PORTB5 using timer 0 in mode 7. The time between blinks is computed as $$ \frac{(\text{OCROA}+1) \times \text{prescaler} \times \text{timerCount}}{\text{FCPU}} $$ ...
4
votes
2answers
197 views

Interrupt fails to change variable, how so?

Problem was virtually undebuggable, the interrupt that was changing a variable would randomly fail to do so, with no apparent pattern; within interrupt code variable would change but outside of it the ...
0
votes
0answers
59 views

How can I interface a Raspberry Pi with a bare Atmega128

Currently in this project, I have an Arduino Uno controlling some low-level hardware, which interfaces to software running on a Raspberry Pi via the Arduino USB cable. I'm looking to shrink the ...
0
votes
0answers
34 views
1
vote
1answer
75 views

Why does the Tx pin of an USB to TTL adapter provide current?

I'm currently making a little electronic board on my own. On it, a microcontroller: an ATmega328p running with 5V. To communicate with a computer, I've planned to use an XBee, but for now I'm using ...
-5
votes
1answer
61 views

PORTB and PINB in avr studio while programming for Atmega8? [closed]

what is the difference between PORTB and PINB in avr studio while programming for Atmega8 using " Atmel Studio.6 " software ??
0
votes
0answers
57 views

QTouch Matrix ATmega8 issues

After trying a lot on QTouch Matrix for ATmega8,It didn't work for me. So sharing the trouble here. I have taken reference from this beautiful article. Here he had provided a schematic and PCB ...
1
vote
4answers
128 views

ATmega328p and USB conection to PC

I posted the same question on StackOverflow and I was redirected here. For my project I need to be able to program the eeprom of an Atmega 328p via an USB to PC. I tried to incorporate an USBasp ...