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
38 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
50 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 ...
-4
votes
0answers
14 views

HC-12 Wireless Serial Port Communication Module [on hold]

I have been trying to make a robot that will go as per instruction from MATLAB using HC-12 Wireless Serial Port Communication Module and send me back video stream and using the video i will send ...
3
votes
4answers
94 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 ...
0
votes
0answers
57 views

LM35 temperature sensor issue [on hold]

I am doing a project on incubator, here is the code I am using with LM35 to calculate temperature (Celsius). When displayed temperature reaches 35.1C, the LM35 freezes and temperature displayed does ...
0
votes
1answer
35 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
26 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
44 views

Arduino voltage drop while communicating with another Arduino [migrated]

I have an Arduino Uno rev 3 and an Arduino Nano in my Setup. I want to create a proof of concept, where one Arduino triggers the other via the Digital IOs. Arduino 1 sets a blinking signal on a ...
0
votes
0answers
34 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
81 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
23 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
46 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
35 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
16 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
35 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
46 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
28 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
41 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
65 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
32 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 ...
-3
votes
2answers
28 views

Which avr programmers can be used for atmega164PA?

I searched for a programmer for ATMega164PA on ebay and found nothing specific to it. Is there any standard programmer to program this chip?
-1
votes
1answer
43 views

PWM generation with AVR

What is the best way to generate 5 PWM signals in range of 10 KHz with AVR ATMega16? I am thinking about a few possibilities: 1- Does AVR generate any PWM signal automatically on any of it ports? (I ...
0
votes
0answers
35 views

AVR External Crystal Fusebit Issue

I seem to be having an issue with AVR connected to a external crystal which I can only describe as weird. I have an atmega328p (smd on a 2 layer board with smd components) connected to an external ...
1
vote
4answers
94 views

Why can't the atmega328p accept 5 and 3.3v signals at the same time?

The same chip can be run at 5v or 3.3v so it's tolerant to 5v so why when I run it at 3.3v can't I send in a 5v signal on an input pin? Curious on what's in the chip that makes this a bad idea.
0
votes
0answers
59 views

Problem in reading accelerometer axis (ATMEGA328P + ADXL345)

I really need help with my project. I'm trying to connect ADXL345 with ATMEGA328P through SPI interface to send received data from Atmega328P to PC via UART interface. The ATMEGA328P is sending the ...
0
votes
0answers
32 views

Is my ATMega328 CH340G Dead

I have an ATMega328 (Arduino Nano copy) with a CH340G chip on board. I have been coding it using Sketch and it has been working fin. Today during an upload something happened and my Mac switched ...
1
vote
1answer
186 views

What is the input current of the 74HC595?

I need to calculate the power consumption of my circuit, but I can't find any information about the input current of the 74HC595. I drive the 74HC595 with the atmega8 on 5v, but what is the input ...
0
votes
1answer
66 views

Is there a thermal sensor technology that can measure an object heat at a distance of 10 meters for Arduino or atmega micro [closed]

I am looking for a thermal sensor with a distance of 10 meters . In my plan , I would like to recognize objects based on the heat. for example car.
3
votes
1answer
70 views

Hitachi HD44780 LCD works exactly 50% of the time

My Hitachi LCD works 50% of the time. Is it a problem is a deboucing reset button issue on the AVR? Why is this happening? Here's a video of what is happening. This does not happen if I write on the ...
0
votes
2answers
54 views

How to detect input voltage change on specific pin of atmega32? DC jack sensing

I am trying to make an LCD circuit that, eventually, will control an amplifier and display data to the user through the LCD. One of the features I want to include is the ability to show if the device ...
1
vote
2answers
73 views

How to control op amp gain with atmega 32 MCU?

I am attempting to control the gain of an amplifier circuit I am building programmatically. I am using the atmega 32 MCU to control an LCD screen and take input from some buttons. Basically, I would ...
0
votes
1answer
74 views

Power ATMEL ATMEGA328P directly from USB

im wondering if it is Ok to power an ATMEGA328P directly from an USB-Poweroutlet i.e. an Apple-USB-Charger. And I mean directy: VCC to Pin 7+20 GND to Pin 8+22 Peripherals should be powered from this ...
0
votes
1answer
53 views

Atmega32 LCD program not working

i have recently been into atmega world after i heard it is much better than pic and it is my second tutorial about writing to LCD i wrote this program in atmel studio but it doesnt work i double ...
1
vote
1answer
68 views

Atmega328 fast PWM (mode 15) on timer 1 not working

I cannot get PWM to work using mode 15 (a fast PWM) of timer 1. It's always giving me a high value of around 4.5V on PORTB2. ...
0
votes
1answer
101 views

real time online push button based counting system

I am doing this project: I have 4 inputs. These are push buttons, connected to a microcontroller. Each time a push button is pressed, say for example pushbutton_1 is pressed, the press of a switch ...
1
vote
1answer
73 views

Attempting to use ATMEGA on its own

Short Version: I've wired up an ATMEGA328 chip standalone, after programming with arduino. By itself, the chip is not functioning properly, but when the arduino (with exact same chip) is wired in, it ...
0
votes
1answer
81 views

Powering board and charging coin cell at the same time

Here is what I have: 2035 coin cell battery ATmega328 I want to have an ability to plug micro/mini usb cord and power circuit from usb and charge battery. Circuit has extremely low power ...
1
vote
2answers
79 views

Use or remove reset capacitor?

I am currently connecting an AVR ATXmega 16A4U in my circuit. According to AVR (http://www.atmel.com/Images/doc8278.pdf, p6) the external reset circuit should look like simulate this circuit ...
1
vote
1answer
76 views

hlk-m30 WebClient example

I have started working on HLK-m30 WiFi module. I am developing the simple client on the module using simple AT commands. I have Opened socket TCP client and then Write data using the command. ...
1
vote
0answers
60 views

Can't display on LCD with Atmega 328

I tried to display hello world on a 20x4 LCD using Atmega328. But I failed to display any character on the screen. I'm not sure where the problem is, either the initialization or the timing order. I ...
0
votes
0answers
95 views

ATmega328p hc-06 writing correctly but reading gibrish

Last week i have been strugling with getting the hc-06 bluetooth module working on my ATmega328p. Whatever the ATmega sends to the bluetooth module comes correctly on my phone. But everything i write ...
1
vote
1answer
92 views

Does both ground pins on ATMEGA are internally connected? [duplicate]

I think the title is self-explanatory but should I make the connection on PCB or they are already connected? If so, should I still connect them externally? Why? I'm working on ATMEGA328p-pu if it ...
1
vote
1answer
109 views

ATmega162 fuses to select external clock 12Mhz?

Could anyone tell me how I could change the fuse bit, so that my ATmega162 uses 12 MHz external crystal. Once, I made the changes in the AVR fuses wrong the AVR went dead. That is why I need ...
0
votes
1answer
74 views

Help understand a simple C code for an atmega16 project [closed]

I just got started with AVR , and I am building a Lan tester for a project My hardware part is done, basically for the send pins I used port A , from A0 to A7 and for the Receiver port C when the ...
0
votes
0answers
39 views

RFID interfacing with atmega162 problem

I have interfaced RFID and atmega162 as in picture , but I am getting garbage with blank spaces, hypens on lcd , please see my code and tell me whats could be the problem, Hoping for your help. ...
0
votes
0answers
36 views

RFId interfacing with atmega162

I am new to programming, I have created a schematic of my project I am not sure it would work or not. I have RFID 125khz - Model no RFID6300. Do this module require MAX232 to be used in between ...
0
votes
1answer
125 views

Insufficient ground supply on my circuit? Ground capacitive foil

I'm playing with a wireless sensor device (with atmega, xbee, and Capacitive sensor (simple foil)) that works fine with the lab power supply but as soon as I try it with AA batteries stops working. ...
0
votes
1answer
35 views

Frequency of the CTC mode in the atmega328

I am trying to understand the expression for the waveform frequency of the CTC mode (p. 99 of the datasheet). Assuming that the prescaler is 1 and that \$OCR0A\$ is a constant value, in ...
0
votes
1answer
53 views

Buzzer not working with delay avr atmega162

Hi I have got a problem that will be simple to you guys but i am newbie so its difficult for me to get things done correctly, I Have buzzer interfaced with PinC0 of atmega162 , with crystal 12MHz ...
0
votes
0answers
698 views

Turn Nano with CH340G(16 pin) chip into a USB to Serial converter (TX not working)

I am trying to convert a CH340G Bases Arduino Nano into a serial converter with 50% luck. It is able to receive data on the serial side but the USB to to serial bit is not sending data out. (Validated ...