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
3 views

Atmega168 and ENC28j60 - Unable to communicate

I would like to make a web server from an AVR uC. I use Atmega168 with the ENC28J60 ethernet module. I have connected the module with my Atmega using SPI. I have a problem, because the communication ...
0
votes
0answers
16 views

How to interface si8902 with atmega128rfa1?

The atmega128rfa1 works as master and si8902 works as slave that is okay. But when a request is given Si8902 takes 8us to reply back with the ADC data. How can master wait for 8 us. How to synchronize ...
0
votes
0answers
37 views

How to bootload a atmega328-pu using arduino uno? [migrated]

I have some Atmega328-Pu micro-controllers without boot-loader program. Now I need to burn boot-loader to them all. I have two arduino uno boards having Atmega328 P-Pu micro-controllers on board. I ...
0
votes
1answer
67 views

Atmega328p: why button input is read as 0 when pressed?

I'd like to turn on the board's LED (PB5) when I press its button (PB7). ...
-1
votes
1answer
75 views

AVR ATmega32 UART Not Reciving

I'm trying simple UART transaction functions for ATmega32. I can send the bytes but not receiving anything. I am using polled UART receive. ...
0
votes
1answer
31 views

Steady state error and overshoot [closed]

[ the plot of temperature vs time for on/off controller is shown. What could be the steady state error and overshoot . TMP36 and Arduino UNO are used. The temperature increases in step of 0.32 deg ...
0
votes
0answers
6 views

Burning bootloader with Arduino as ISP when clock frequencies differ [migrated]

I've made a board with Atmega328, and I put there 6Mhz quartz (the reason to have 6MHz was to reduce power consumption). I need to burn Arduino bootloader to it, and I want to use Arduino Uno (16MHz) ...
0
votes
0answers
32 views

Reading text from a USB drive connected to an ATMega1284

I am embarking on a project to create a very crude "crypto module" to learn some basics about how a hardware encryption module might be implemented. I understand right off the bat that on the whole ...
0
votes
0answers
31 views

Arduino Uno's RX and TX lights not blinking. Unable to upload sketches! [migrated]

When arduino starts up, RX TX lights doesn't blink. Only the PIN 13 and Green light turns on. Pin 13 light blinks thrice before getting stable. RX TX lights are not blinking at all. I am not able to ...
0
votes
1answer
33 views

ATMega328: How to select alternate function on a pin

This might be an easy question, but I couldn't find an answer to it in the Alternate Port Functions section of the ATMega328 datasheet (page 80) Take pin PB3 as an example. As well as having a use as ...
-4
votes
1answer
60 views

Relay control using Ardiuno Mega [closed]

How many relays can I drive using Ardiuno MEGA board without overloading the microcontroller?
1
vote
2answers
61 views

resonator or Crystal Oscillator for atmega2560

I've received the PCB that I have designed. This PCB has an atmega2560 on it. I have designed it to use a Crystal Oscillator such as this figure shows : Is this designed supposed to work on an ...
0
votes
0answers
14 views

Atmega328P - SCK pin [migrated]

I am using Atmega328p with arduino bootloader in a project. There happens to be an LED connected on SCK pin. During Start (or restarts), the LED appears to flicker a couple of times (3 times to be ...
0
votes
0answers
33 views
0
votes
1answer
71 views

programming atmega2560 by ISP on self-made PCB

For one of my project, I need an atmega2560. So I made a PCB with the atmega2560 and ISP headers. But I can't communicate with the atmega2560 There is also an external 16000Mhz oscillator. Here is ...
0
votes
2answers
63 views

atmega328p GPIO with 3.3V regulator reads 2.5V at pin when High

I am driving the enable on a boost regulator and the boost is not turning on. When I checked the voltage on the enable, it was 2.5V. The boost worked on an identical set of boards I tried before this ...
0
votes
2answers
45 views

Controlling brushless gimbal motor (BGM2804)

I'm using a standard board for control this type of motor (SimpleBGC), this board uses an atmeg328p e some brushless drivers. I'm writing a simple code for turn left/right with some velocity, but i'm ...
0
votes
0answers
21 views

Array write/read with atmega 8 with help of USART

I have been stuck on a problem for a week, so I need to ask for help. I want to receive an array by USART and write that array in EEPROM(internal/external) and same read that value or array and ...
1
vote
3answers
105 views

Component with multiple VCC and GND pins. Should I connect all of them? [duplicate]

I want to make a really small arduino using the Atmega 328p and I noticed that it has 3 GND pins and 2 VCC pins. I measured the pins and it seems that all GNDs are connected and all VCCs are ...
0
votes
1answer
25 views

ATmega32A _delay_ms after IO calls

I am loading the following code into ATmega32A PU 1535 to flash the LED on pin 40, PORTA 0: ...
1
vote
2answers
60 views

Bricked atmega32 with fuse bits

I accidentally selected the wrong clock in atmel studio (8-12MHz RC Oscillator instead of 8MHz crystal) and I'm trying to figure out how I can un-brick it now. I have an arduino on hand and a friend ...
0
votes
0answers
65 views

I need help finding what's wrong with my circuit schematic.

I have the following schematic that i assembled on a prototype board, i'm not finish assembling it and i made small modification. I did not connected the relay - also the moc and transistor is not ...
1
vote
1answer
105 views

UART in NON INTERRUPT or INTERRUPT mode while using VUSB

I'm working UART data transfer from one ATmega8 to other while the receiver runs VUSB acting as HID Mouse to the PC. UART though init with 9600 , later is set to max speed - > UBRR = 0; Problems : ...
0
votes
0answers
36 views

Bike speedometer - a few questions about schematics

I'm a computer programmer, playing with electronics is my hobby so it's not like I'm very good at it. Some time ago I planned to make a speedometer for a bike but it eventually grew into an on-board ...
0
votes
4answers
96 views

AVR UART synchronization problem

I'm learning embedded programming (I'm not an Electrical Engineer). Sorry if this is not the right place or I'm asking this question incorrectly, but I had a very tough time trying to figure out a ...
0
votes
0answers
35 views

Facing Problem with ATMega 32A main circuit

Hello I am working with Micro controller ATMega 32A to show some value in 7 segment common anode display. The code is ok (checked with Simulation ). But in hardware implementation it's not working ...
1
vote
2answers
60 views

avr-gcc float macro error

When I try to compile some code with macro definition at the following definition # define _SPEED_FACTOR0 0.9 //or any float value I get the error floating ...
0
votes
2answers
33 views

clock frequency confusion

I am using an atmega16 micro controller with a 12MHz external crystal oscillator. But I came to know that the internal clock frequency is 1MHz I need to calculate UBRR value for serial communication. ...
0
votes
0answers
112 views

How to “transfer” a capacitive touch?

First post on here so forgive me if I've done something wrong. I'm designing a product with a control panel and I wanted to use a capacitive touch for selecting options with an ATMega chip (those ...
1
vote
1answer
61 views

ATmega48PA: can not run PWM on OC0A and OC2A pins

I have some troubles trying to run Fast PWM on OC0A and OC2A pins. The code is the following: ...
0
votes
1answer
53 views

Atmega8 cbi/sbi Timing Issue

I seem to be having a weird issue regarding cbi/sbi instructions on Atmega8-16AU. I have it connected to an external 16Mhz crystal. I am able to verify that it is running at 16Mhz by using ...
0
votes
1answer
41 views

USART between Atmega16 and Beaglebone black

I'm working on a project which involves me to send data from AVR atmega16 microcontroller to a beaglebone black. I had written a code for the atmega USART but when connected, the beaglebone black ...
1
vote
3answers
62 views

Updating Multiple Ports on 8bit AVR in Single Cycle

On the 8bit Atmel AVR MCUS (specifically mega and xmega series), is it possible to simultaneously modify multiple ports in a single instruction cycle? For example, I have a 512kB RAM chip which ...
0
votes
2answers
54 views

Getting multiple inputs in Atmega32

I have to take 10 Push Buttons's inputs in my circuit with microcontroller being Atmega32. How can I take multiple push button input using 1 I/O Pin in the microcontroller. I came across CD4017 IC but ...
-1
votes
1answer
81 views

ATMega8 get too hot when connect AVCC pin to VCC!

My ATMega8 gets too hot when I connect the AVCC pin to VCC, either I use a filter or not (I do use ADC). Why?? Anyone got the same proplem? I use a 7905 regulator to create 5V for the MCU, and it also ...
4
votes
1answer
142 views

Push-pull switch mode power supply using an attiny84

simulate this circuit – Schematic created using CircuitLab I'm trying to build a "push-pull" switch mode power supply. I'm not entirely sure if that is the right term, but it consists of ...
0
votes
2answers
71 views

Detecting interrupt on Atmega8 from zero crossing detector circuit

I have a zero crossing detector circuit, whose output I am providing to my Atmega8 as an interrupt, but unfortunately its not working. If I use DC supply 5V (logic 1) as an interrupt, it works. Where ...
0
votes
1answer
73 views

How to connect multiple AT28C256/AT93C256/AT24C256/24LC512 EEPROMS to have more space

I want to have more memory say 1 Mega Byte, But I don't know how to connect multiple EEPROMS either in series or parallel I would like to use either AT28.... or AT93.... or AT24.... series Also ...
1
vote
0answers
28 views

How to increase the boot timeout to send commands to flash hex in a AVR Atmega2560 controller?

I am working with the Peter Fleury boot loader STK500v2. My idea to implement is boot loading via a bluetooth module at UART1. Now I have modified the existing code to make boot loading possible via a ...
3
votes
1answer
64 views

AVR external interrupt triggering by the falling edge: for how long should I keep signal low to guarantee triggering?

The question header appeared to bee too long. I'm sorry for that. So I have a schematic generating a short LOW on INT0 pin of ATmega48PA. From the simulation I figured out that the LOW level will be ...
0
votes
1answer
158 views

What is needed to store readable/writable data to flash/eeprom [closed]

I am wanting to add some readable/writeable memory to my ATmega8/attiny project where I can store data, recall the stored data, then overwrite the stored data. The stored data must be able to be ...
0
votes
3answers
132 views

Increase voltage from 5 to 12V to deactivate a display

I'm developing a timer based on this project: Digital Stop Watch with ATmega8 by Avinash Gupta (I cant put the link, because my reputation is too low) Original schematic: At first, I made the same ...
-5
votes
1answer
58 views

How to connect Micro Controller to an AC device? [closed]

Recently, I'm working on a project but there's an obstacle. My question is: How can I control an AC device for example Valve with AtMega8. The valve works with 220 AC voltage. what kinda components ...
3
votes
2answers
84 views

Atmega8 - Max output frequency seems to be devide by 4

I'm a little bit confuse, and hope that someone here can point me out what I'm missing... I'm using an Atmega8-16PU, Flashed the fuse with : ...
-2
votes
1answer
94 views

Is it possible to use two communication protocols in one microcontroller?

So I've been trying to communicate between the Beaglebone Black and atmega through I2C for quite such time and have been facing quite a lot of problems with it. On the other hand I can successfully ...
0
votes
2answers
56 views

Atmega was loose during programming, now target doesn't answer, and device signature keeps changing

I'am using an atmega328p with a custom build programming board connected to an usbasp. While programming with arvdude, the atmega chip was not perfectly placed in the board header, and the atmega ...
-1
votes
2answers
99 views

switching LED On and off using microcontroller

I am new to microcontroller and just become confused to solve the following problem: An ATmega32 chip is connected to four on/off switches (SW0-SW3) and 4 LEDs (LED0-LED3). SWi is connected to PAi. ...
1
vote
1answer
72 views

pseudo analog voltage using PWM

I am just learning Pulse with modulation technique. Is There any way to create a pseudo analog voltage using PWM from the digital output of ATmega16? How can it be done?
0
votes
0answers
52 views

Pulse Width Modulation (Fast PWM) in Microcontroller

I am learning Pulse width modulation. If I want to to generate a 2.5kHz signal having an average voltage of 3.3V using ATmega32 FAST PWM mode (WGM=1110), What will be the value of TOP(ICR1) and ...
1
vote
1answer
58 views

ATmega328P assembler inline text and assembelr ALIGN

I have a program in assembler like this: ...