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
2answers
19 views

Bitbang ATMega-328PU with CT210x using avrdude

I have made a breadboard-arduino with an ATMega-328PU and the standard components taking help from http://arduino.cc/en/Main/Standalone I interfaced the CT2102 Breakout Board with this assembly: DTR ...
1
vote
1answer
24 views

AVR SPI2X has no effect

I've got an ATMega88A configured to run on internal 8MHz clock: lfuse = 0xE2 hfuse = 0xDF efuse = 0x01 F_CPU defined as 8000000 This in confirmed in the 'real ...
2
votes
3answers
155 views

AVR SRAM limitation

I'm just an enthusiast looking for some advice. I'd like to use a microcontroller to read frames from a camera and write those frames to a small LCD screen. The camera and screen are on the same SPI ...
0
votes
0answers
12 views

how to program atmega328 with arduino mega 2560? [closed]

Due to some problems I'm not able to program my arduino uno. But my arduino mega is working nice. So can I program my atmega328 chip with arduino mega?
1
vote
1answer
32 views

ATmega 23K256 SPI RAM and ISP together

I want to connect 23K256 SPI RAM to ATmega. Do ISP programming will work together with SPI RAM connected. Thanks.
6
votes
1answer
57 views

Millis versus centis on AVR platform

I am building a device on the AVR platform. The device will need some timing information, so I was thinking of reimplementing Arduino millis-like functionality ...
1
vote
1answer
66 views

One PWM timer to two outputs?

first post here, so sorry for any bad styling. I'm working on a group project and using an Atmega328, without going into specifics, I need to drive two fans, two servos, and 1 CTC based function from ...
1
vote
1answer
53 views

ATmega328A UART: everything working, but not as expected

I am trying to get UART working via the ATmega328A. I want to enter a character, and get that character to be printed out. However, when my code is run this is what happens: I enter one character, ...
2
votes
0answers
76 views

AVR program code location

I'm working with an ATmega328P and I wanted to interface with the flash memory writing data to it with the macros provided by avr-libc. This is the memory map for my chip: I don't understand where ...
0
votes
1answer
82 views

Writing flash on ATmega328

I have struggled to understand this code but I can't understand the little endian for loop. Why is it necessary? And how could I read the page back? One byte at a time as an array? Is it even ...
1
vote
1answer
91 views

SPI not working, ATmega328 only sending 1 byte

I am trying to get SPI working on an ATmega328. This is my code: ...
0
votes
1answer
38 views

Single Phase Energy Meter using Atmega32

Version 1 : We are trying to measure the input voltage from the AC mains (which theoretically should be 230 V). The circuit to measure this is a simple resistor divider network as shown below. The ...
1
vote
1answer
15 views

How to drain power with pins for led matrix on atmega32 instead of using a led driver

I want to make a led driver without the tlc594 series. I use the atmega32 of which I can use 1 PWM pin. The PWM pin will be connected to the base of the transistors. With the PWM pulse I can dim the ...
0
votes
1answer
50 views

How does this construct drive the RESET pin low?

I've seen this in a bunch of ATMega / Arduino reference designs: The RESET pin is pulled up high with R10, pulled low with a switch (S1), but then tied to the DTR line from a UART breakout via C27 ...
0
votes
3answers
92 views

2 Digit 7 Segment Display Driver

I need to display the temperature acquired by my LM35 on a 2 digit 7 segment display. What I have is LTD383-R2 Common Anode Display. Datasheet here. The display has 1 Anode pin + 14 Cathode pins for ...
0
votes
0answers
61 views

I2C interfacing with ATmega32 and ArduinoMega2560 failed

I'm trying out I2C interfacing the ATmega32 with Arduino Mega2560 Board without success. The Arduino Board is configured to be the Master Read. The Atmega32 is configured to be the Slave Write. I ...
1
vote
1answer
48 views

Update ATmega168 program with serial

I'm working with an ATmega168 with a Linux based board (TI DM365). The ATmgea168 communicates with the TI over UART. The Atmel is programmed using AVRMKII and is running fine. I was wondering if ...
2
votes
1answer
100 views

AVR simple bootloader - how to call application code?

I am using the atmega328. I want to create a simple test application using a bootloader. I want to: Blink an led at one speed in the bootloader section of flash, and then blink at another speed in ...
1
vote
1answer
53 views

ATmega328P not responding

All of the sudden my ATmega328P stopped responding to flash commands with avrdude. Here is the output of the attempt: ...
0
votes
0answers
71 views

SPI always returns null while reading

We need some help in SPI protocol. We've been using an AVR microcontroller ATMega324PA (DIP) and an ADXL344 accelerometer (QFN Breakout). Both chip operates at 1.8V and supports I2C & SPI. Lately ...
3
votes
2answers
192 views

How to get the PWM frequency and duration of each pulse?

I have an ATmega8 and I started working on servo motor HS-645MG. What frequency works with the HS-645MG? How do I get the frequency of PWM and the duration/length of each pulse? Is there a ...
1
vote
1answer
38 views

Read strings from ATmega or Arduino

I have found out that one can disassemble an ATmega with objdump or avrdude. And if the LB1 and LB2 bits are set low it would be much harder. So if these bits are set high or just reading the flash is ...
0
votes
1answer
26 views

Set LB1 and LB2 low on Arduino and ATmega

I have searched for a possibility to objdump microcontrollers. I then have found this post. There it says that LB1 and LB2 can be set to low to prevent the most people to read from it. My questions ...
0
votes
1answer
78 views

ATmega 328P SMD version

Currently I am using the normal ATmega328P chip with my barebone Arduino I have made. I am planning to switch it with an SMD version of ATmega328P, since it's smaller in size it will consume less ...
6
votes
5answers
577 views

EEPROM endurance in energy meter?

I am designing an energy meter for electricity billing purposes by converting an analogue energy meter and counting the number of pulses given by the analogue meter's LED. Since power may be cut off ...
0
votes
1answer
55 views

How to get 32u4 arduino to ignore DTR for USB Serial?

32u4 based "USB Serial Ports" refuse to send data to the PC unless DTR on the PC software side is set to high. If the PC software does not set DTR to true (high?), then Serial.print() on Arduino goes ...
0
votes
0answers
50 views

AT86RF212b connections

I'm trying to communicate at86rf212b with atmega328 , I have connected all SPI connections( MISO, MOSI, SCk, SS), IRQ, SLP_TR and RST with suitable 5v/3.3v conversion (74hc4050) and trying to read ...
0
votes
0answers
40 views

AVR TWI/I2C Not Responding

I use Twi module of AVR Atmega168 to talk to DS1307. ...
-3
votes
1answer
61 views

Controlling brushless motor using ATmega16 [closed]

How can I control a brushless motor using an ATmega16? My motor is of 1600kv and ESC of 30A. I'm giving the 2 sec delay for motor ON and OFF but it's not working.
0
votes
2answers
45 views

Atmega16 SPI to clock out 32bit data

I am very new to AVR and even for coding of micro-controllers. I wanted to shift out 32 bit data on SPI from a Atmega16 to a 32 bit shift register. The shift register in not an SPI compatible device. ...
2
votes
1answer
146 views

RC toy car RF signal drops out when at full speed

Short version (TL;DR): I need help troubleshooting the radio communication of an RC car that I made. Every 5s or so, the connection drops out and the car spends about 1s without receiving instructions ...
1
vote
1answer
64 views

how to clear an UART interrupt flag manually?

I'm using an ATmega32. I have ISR(USART_RXC_vect) as follows ...
0
votes
2answers
64 views

ADC 10-bit false results

I'm using atmega32 µc with the internal 10-bit ADC. I connected my potentiometer to the ADC 1 and I'm using 5 V Voltage Reference. using the following code, I did the ADC-config ...
2
votes
2answers
117 views

Is there difference between Timer vs Counter in ATmega328P?

Is there difference between Timer vs Counter in ATmega328P? Or is it the same thing?
0
votes
0answers
29 views

AVR324PA controller not executing flash code

We got a simple circuit that has a ATMega324PA controller. We use AVR-ISP MKII programmer to program the controller. Both the controller and programmer is supplied with the target voltage 1.8V. ...
0
votes
2answers
93 views

Custom Atmega32u4 board first boot

I've built a custom board with an Atmega32u4, like the Arduino Pro Micro from Sparkfun. The circuit seems ok, but when I plug the board to a pc, the usb device isn't recognize (doesn't even pop the ...
1
vote
1answer
99 views

ATmega XTAL input capacitance and crystal load capacitance

I need precise low-ppm crystal for my circuit with 8-bit ATMEGA (AT90USB1286). Currently 18pF TXC HC-49 (11.5x5mm) is used. I need also minimize size to reduce potential EMC and PCB. TXC - 7M/B ...
1
vote
1answer
66 views

No correct signal from ATMEGA162 UART

I got the following circuit: simulate this circuit – Schematic created using CircuitLab And this code to run it: ...
0
votes
0answers
47 views

I am able to program atmega8 but not atmega16/32

I am new to microcontrollers and am taking it as a hobby. I have USBasp programmer with a 40 pin ZIF socket. I used to program my atmega8 for blinking LED's and other purposes. Now I am working with ...
1
vote
3answers
129 views

Weird output on 16X2 JHD162A LCD display

I am learning interfacing of Atmega 16a with 16X2 LCD. I have a written a header file for routines which will used frequently and every time I want to interface with LCD using Atmega 16a I use this ...
0
votes
1answer
114 views

If condition strange behaviour

I brought an ATmega328P (SMD) and burned a Duemilanove Bootloader. Everything seemed to be working fine until I tested out conditional statements. Average set of analog val are: 84 , 143 , 255 Here ...
5
votes
3answers
112 views

Does CKDIV8 save battery life when programmed?

On ATmega328P there is a CKDIV8 fuse bit that when programmed divides clock by 8. I'm wondering if the power consumption is equal on these two setups: micro with 8MHz external crystal and CKDIV8 ...
1
vote
0answers
94 views

Atmega32 can't verify after setting correct fuses for external crystal. HELP

I am having trouble with some Atmega32A's purchased off from eBay. The MCU's does not seem to be fake as they are functioning properly. I am experiencig the following problem: I want to use external ...
2
votes
3answers
78 views

Crystal or Crystal Oscillator for time sensitive device

A device that I'm working on is controlled by ATmega328P microcontroller. This will be some sort of a watch, therefore I want it to be as precise as possible. For instance if left to run for a whole ...
0
votes
1answer
66 views

ATmega8 to MCP23S17 SPI I/O Expander not working

Since three days I'm having the problem that I can not talk to my MCP23S17 SPI I/O Expander from my ATmega8. I've double ...
0
votes
2answers
61 views

Phototelectric smoke sensor with microcontroller

I am trying to connect a photoelectric smoke sensor with Atmega328. The smoke sensor IC has pin 7 as the I/O pin which gives a 9V when smoke is detected. I have connected this pin to the input pin of ...
0
votes
2answers
64 views

Connect an ATmega328 to a Raspberry Pi

I've been stuck on this problem for a couple of months now and haven't had much luck finding the exact information that I need. So, I'm currently working on a project to make a handheld raspberry pi, ...
1
vote
0answers
111 views

Programming Atmega8 with AVRISP mkII Error ispProgramMem

If I go to Tools > Device Programming in AVRStudio 6.0 to program the Atmega8 everything is working fine. I've set the ISP frequency to 1 MHz and checked the ...
4
votes
3answers
345 views

Do I need a Reset Switch?

I'm trying to make a ATmega328 run on a breadboard. I am stuck on deciding if I need a reset switch. Do I need one? Can I just unplug and plug in the battery instead? If I do need one, how would I ...
0
votes
1answer
56 views

Controlling AC devices using ATmega8

I have an microcontroller ATmega8, TRIAC MOC3083 and thyristor M166P. I need to develop and device which will turn on/off lamp(220V). But while I'm developing I don't want work with AC 220V now, DC ...