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
21 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 ...
-2
votes
2answers
85 views

12 Hour delay for atmega16a

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

Breadboard Arduino not loading sketches [migrated]

I have put together a breadboard version of the arduino by following the tutorial on arduino's main website https://www.arduino.cc/en/Main/Standalone. I have done everything exactly how that tutorial ...
2
votes
0answers
44 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
61 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
36 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, ...
-4
votes
1answer
26 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
43 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
16 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
72 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
55 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
54 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
43 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
54 views

Serial XOnXOff handshaking

I have the following code running on an atmega328 (ArduinoUno). ...
1
vote
1answer
57 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
46 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
60 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
33 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
0answers
11 views

Where is documentation on Arduino's Internal Interrupts? [migrated]

First time arduino programmer here...however I have programmed the TI MSP430 in the past... I am trying to figure out how to configure internal Interrupt Vectors on this Arduino Uno. In the Arduino ...
0
votes
3answers
79 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
136 views

ATMega32 USBasp not programming

I use no Arduino just trying to program a simple ATMega32 using USBASP. Getting this message: ...
0
votes
1answer
39 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
47 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
188 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
68 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
56 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
122 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
54 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
3answers
118 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
66 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
54 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
190 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
56 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
33 views
1
vote
1answer
70 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
57 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
47 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
106 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 ...
0
votes
1answer
100 views

Sending info from python to avr-c

okay so my situation is that i am working an avr chip which is the atmega 328p and what i want to do is i want to lets say have a user input in python lets say the user types in a string and from ...
0
votes
1answer
92 views

GPS gives weird characters when powering my ATMEGA328 on and off?

i got a problem with my GPS controlled by ATmega328, when i download the code using arduino ISP the GPS works fine and the lcd displays correct data, but when i remove the power from the atmega328 and ...
0
votes
0answers
15 views

Does the ability to program a servo imply that the Lock Bits were not set on a Atmega48?

I'm wondering is how this servo programming business works: The servo (HS7980) has an Atmega48 chip and uses a proprietary protocol for programming so it seems pretty likely they lock it to prevent ...
2
votes
2answers
94 views

SPI signal showing up on other pins of ATmega1284P microcontroller?

I'm using an Atmel ATmega1284P MCU (40-pin DIP) for a project and noticed some low frequency spikes on the ADC0 pin (pin 40). After some troubleshooting I discovered that the spikes were perfectly ...
0
votes
2answers
106 views

Why 100nF capacitor between FT232R DTR pin and Atmega reset line is causing problems at boot?

I'm having issues with a 100nF capacitor between FT232R DTR and Atmega328p reset line having too much capacitance between toggling the power on/off. It causes the pc driver not to detect the FT232R ...
1
vote
1answer
119 views

I2C: How to connect Raspberry Pi (power cut) to ATmega328p

I would like to interface a Raspberry Pi with an ATmega328p microcontroller using the I2C bus. These two parts act both as masters, but not at the same time. The Raspberry Pi is powered through the ...
0
votes
1answer
131 views

BLDC motor waveforms

I'm trying to drive a brushless motor (BLDC) with an ATMEGA328p I use Timer0/1/2 to generate 3 different PWMs @ 62Khz. First I tried (only absolute values) $$A = \sin(T)$$ $$B = \sin\left(T + ...
0
votes
0answers
32 views

Atmega328p problem

Im making a 8x16 rgb led matrix based on this :http://solderlab.de/index.php/hardware/matrix-controller-board i downloded the scematics and made my own pcb. im using 3x tlc5940 one for each collor ...
0
votes
1answer
52 views

Atmega328P FTDI 5V USB Serial Communication

I am working a Atmega328P and FTDI 5V USB Cable to get a Serial Communication between the Micro-controller and the PC. I am using Tera Term for receiving out from Micro-controller. I am using an ...
0
votes
2answers
134 views

AVR programmer power supply (ISP ATMEGA16 ATmega32 Minimum Board)

In description of an AVR programmer, it is talked about everything except for the input voltage and how to turn it on. How much voltage should I apply to it? Somewhere it has mentioned "DC-005 Power ...
0
votes
1answer
47 views

Choosing a RJ45 to WIFI adapater for use with Embedded Server

I wanted to build the classic web page that turns on and off an L.E.D. My plan was to use one of the Atmega line of micro-controllers with an enc28j60, which seems to be a popular solution to this ...