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
37 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
78 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
57 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
24 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
45 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
112 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
50 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
0answers
29 views

How to read data from a rotary encoder with ATmega328 [migrated]

I'm using a home made "bare bones" Arduino, made with the ATmega328, and I need to read angle data from a geared DC drill motor, turning at speeds between 0 and 450 RPM. This is so I can use it as ...
0
votes
0answers
20 views

Can't burn arduino bootloader to atmega8a with usbasp [migrated]

I want to burn the arduino bootloader with arduino IDE, but I cant get it done. And here is my circuit: I have marked the way I connect the ISP port and the chip. I choose Arduino NG/older as the ...
0
votes
1answer
46 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: ...
0
votes
1answer
35 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
44 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
183 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
47 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
29 views
1
vote
1answer
61 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
51 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
26 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
83 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
83 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
70 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
13 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
86 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
67 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 ...
2
votes
0answers
17 views

How to solve Atmega 16A Serial write (println) hang with Arduino Uno firmware? [migrated]

For doing some experiments I bootloaded an Atmega16a with Arduino Uno. I am powering my Atmega16a from Arduino UNO. I am not using any external clock. Atmega16a is connected to a breadboard. For ...
1
vote
1answer
72 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
102 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
31 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
34 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
69 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
37 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 ...
0
votes
1answer
62 views

9V battery is not able to power 2 sensors. How can I do it?

I wanto to power an IR sensor an ultrasonic sensor (HC SR04) and a sound module APR33A3 IC through a 9V battery connected with a LM7805. When I connect my atmega32 to the computer and power the ...
1
vote
1answer
50 views

Migrating from the ATMEGA8 to the ATMEGA88PB

I have a simple project that only requires the UART i/f of ATMEGA8, running off 8MHZ internal RC oscillator. I have the DIP package version of ATMEGA8 and things are working fine. I have code compiled ...
2
votes
1answer
79 views

how to program the smd atmega328

How do you program the smd atmega328 ic in an inexpensive way?I know you can get a factory to program the chips but is there a way to program them with arduino without one of those expensive sockets. ...
1
vote
1answer
76 views

Controlling multiple RGB leds with PWM from a Atmega328P using one transistor per color

I want to be able to control 9 RGB leds, each color from a potentiometer. Each color needs 20mA, so when all the colors are present the leds will need 540mA (9*3=27, 27*20mA=540mA). My RGBs leds are ...
3
votes
4answers
125 views

AVR [ Why IO Registers have IO addresses and SRAM Adresses ]

I was checking ATMEGA16 datasheet , and at pg17 I found that there is the IO registers that happen to have " IO addresses and SRAM addresses " , I don't know which we use and why there is two kinds ...
1
vote
1answer
129 views

SSD1306 Display ISP Connection or I2C (According to resistors)

I bought one of those cheap 0.96" OLED Displays from china, ebay. In the product description it states that it's a I2C Display, Ebay Link. I want to use it with an ATmega8. I connected it accordingly ...
0
votes
1answer
31 views

STM32 program ATMega

Is it possible to program HEX file from STM32 to ATMega 328 ? I can think of some Serial communication, but I don't know whether is it possible to do on tiny STM32F0 series or it needs more powerful ...
0
votes
0answers
42 views

will a code for atmega1284p work on Atmega128

I have a program for serial communication and motor control which was written for Atmega1284p. Since Atmega1284p is not available here in India, can I use Atmega128 or other MCU's.
0
votes
2answers
96 views

TCP/IP stack for wifi module

I keep reading about TCP/IP stack for wifi module. I am having bit difficulty to understand that. I am working on hobby project in IoT and need to choose wifi module for Atmega328P. I heard about ...
0
votes
1answer
38 views

Suddenly cannot flash ATmega328P due to verification failure

For a couple of years I have been flashing some boards I designed that use an ATmega328P using a USBtinyISP and avrdude. I have three identical boards that have been programmed successfully dozens of ...
1
vote
2answers
74 views

Garbled serial output from breadboard ATmega328 via FTDI breakout

I have an ATmega328P-PU on a breadboard, and I am trying to get serial communications working through one of these bad boys: The 328P is loaded with a modified blink sketch that just does a ...
0
votes
0answers
36 views

Programming multiple ATmega32U4 devices at once without USB

I have a bunch of Atmel controllers which are identical and run the same program. While developing i need to mass program all controllers somehow. The only way they are connected is via I2C. And ...
0
votes
0answers
27 views

atmega32a problem with USBasp

I know that similar problem has been posted in the past but since I am a newbie I wanted to discuss mine. I would like to ask if I need an external clock (4MHz and two 22pF) to program atmega32a with ...
0
votes
1answer
58 views

How to choose the best ADC clock?

I am using atmega16, and i need to use ADC feature in my project. As i know that there is a formula to set flag register ADPS2, ADPS1, and ADPS0. Which is it is used for determine the division factor ...
0
votes
1answer
65 views

When we need external crystal for atmega?

I created microcontroller circuit, refers to most of circuit in internet. Which is it is using external crystal. As i know now, that atmega16 has internal oscillator by default 1MHz. So, ...
0
votes
0answers
38 views

Bluetooth audio transmission

I am trying a project where I would play music from my tv(doesn't have bluetooth) to the commercial Bluetooth headphones. I have read this post. I already have HC 05 Bluetooth module and want to use ...
0
votes
0answers
45 views

Low power design

I'm working on a project, it consist to collect data from sensor : HTU21D for humidity and Temp (digital I2C) LDR for light (Analog ADC) Potentiometer for adjustment (Analog ADC) communicate the ...
1
vote
0answers
70 views

Very high frequency out of SPI pin in ATmega16A

I was trying to interface ATmega16A with ENC28J60, and I was facing problems with it, so I decided to physically look at the signals b/w the master µC and the Ethernet chip using an oscilloscope. But ...
0
votes
0answers
47 views

ATMega32U2 USB Issues

I purchased a couple ATMega32U2 chips from Varical the other day since they were very well priced and there was free shipping. I also finally discovered the pinout to this QFP32 socket I have. So I ...