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
1answer
20 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
14 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
96 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
24 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
57 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
63 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 ...
0
votes
0answers
65 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 : ...
-1
votes
0answers
31 views

Cordinator Atmega328p wakes up end device

I have a coordinator(arduino +zigbee s2) and 2 end devices (atmega328 +zigbee s2+sensors) and I want the coordinator to decide when and which end device will wake up, take measures, send to ...
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
82 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
57 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
29 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
110 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
59 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
50 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
40 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
48 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
50 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
77 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
138 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
61 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
63 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 ...
0
votes
0answers
97 views

Atmega8 and ESP8266 uart problem

I got an atmega8 and an ESP8266. I connected the atmega8 Rx to ESP Tx and Tx to Rx. I don't know why when I power up the communication is not working and the green led from the ESP stay on all the ...
0
votes
0answers
45 views

Arduino light switch transformer

I'm building a light switch with an ATMega328 (Arduino) which needs 5v. The light switch will be integrated in the wall where a 220v power line is present. I would like to power the Arduino from ...
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
54 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
136 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
123 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
57 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
79 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
52 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
96 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
71 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
49 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
54 views

ATmega328P assembler inline text and assembelr ALIGN

I have a program in assembler like this: ...
0
votes
1answer
76 views

Timer in ATmega2560

...
0
votes
1answer
56 views

Signal differences into Labview to those measured before Multiplexer

First off, I'm not the programmer. I am however trying to help him out with my limited knoweledge of IC's and Labview. But I am reaching the limits of what I know so really need some help. ;) We ...
1
vote
5answers
210 views

Desoldering an IC without damaging it

I'm trying to make my own Arduino based board. I need to have at least 25 digital I/O and no less than 8 analog in pins. I decided on the Atmel ATMega2560 because of its large capacity for both of ...
0
votes
0answers
90 views

Issues programming Atmel ATmega256rfr2 using JTAGICE3

I've built a custom board using ATmega256rfr2 and I use Atmel JTAGICE3. I use Atmel Studio 6.2 IDE. Lately I've been having issues programming my board using JTAGICE3. I get the following errors. Each ...
0
votes
4answers
61 views

ATmega48 maximum AREF voltage

The application that I want to use it for is 5V. However it could potentially have a future iteration where the reference voltage could be as high as 15V. The plan is to run the ATmega48 at 3.3V. I ...
2
votes
2answers
141 views

Driving WS2811 LED strip from microcontroller

I'm planning to drive the input of a WS2811 based LED strip (total approx 450 LEDs) from a microcontroller/arduino, as per the diagram below. Do I need a transistor, buffer or anything else between ...
1
vote
1answer
155 views

SX1272 - LoRa - What is the minimal schematic (needed capacitors/resistors) to use that device?

I'm interested in SX1272 by Semtech. It's a LoRa modem. I'm not the best at reading datasheets. Maybe it's because of my poor English. I wonder what is the minimum schematic of such a chip? What ...
0
votes
2answers
81 views

Timer0 and Timer2 configuration on atmega1280

I want to setup Timer0 and Timer2 to control the intensity of the LED (L) on the Arduino Atmega1280. The frequency has to be 10khz and the duty cycle will be controlled by a switch or using serial ...
2
votes
5answers
130 views

Human touch pins on MCU (atmega328p) directly or other components needed?

I would use atmega328p to read the pulses transferred in human's body. So I wonder if that's good to directly expose the pins of the chip. Or there should be some type of components for protection and ...
-3
votes
2answers
108 views

Atmega basic circuit with or without crystal

I want to build a basic Atmega8a (DIP-28) micro-controller circuit (programed using a 10 pin ISP socket). I have found several basic circuits. Some of them use crystal oscillator, some use internal ...
0
votes
1answer
27 views

Using 3.3v for ICSP programmer

I have a circuit that is connected to a VCC of 3.3v because there is a component connect that only runs on 3.3v. Also a Atmega328p is connected to this VCC and now I am trying to add an ICSP. But all ...
0
votes
2answers
99 views

CURRENT TRANSFORMER 30A / 5A Interfacing with AVR Atmega32 ADC

I am trying to Calculate Current of 1HP Motor uses with Motor Starter Box. Initially when Motor is started i can see current shoots upto 20-22A on analogue meter in starter box. I want to measure ...
0
votes
1answer
48 views

Programming the ATMEGA328 chip without an ADRUINO

I have the code I can copy and paste, just wondering if I can program the chip with my desktop. I have Windows Vista 64bit. Building what the author states as an Adruino spot welder controller/solid ...