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
32 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
10 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
24 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
39 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, ...
-1
votes
0answers
17 views

avrdude: stk500_getsync(): not in sync: resp=0x00 [closed]

Using Port : \\.\COM5 Using Programmer : arduino Overriding Baud Rate : 115200 avrdude: Send: 0 [30] ...
0
votes
0answers
21 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
35 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
53 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
26 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
0answers
5 views

Which Arduino is compatible for atmega164pa [migrated]

I am working on a project using 5 pins of ADC, 5 pins for PWM, and LCD. I need to use Atmega164pa. I would like to know how I can transfer it to Arduino. Is there any Arduino compatible with this ...
-1
votes
1answer
33 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
11 views

Using an Arduino uno to program a standalone ATmega2560 [migrated]

I have successfully programmed standalone ATmega328p using arduino uno by adding following lines in the boards.txt file: ...
0
votes
0answers
25 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 ...
0
votes
0answers
7 views

ATMega328P-PU and 328P-AU [migrated]

im planing to make my very own arduino design based on the Arduino PRO mini. I picked this board instead of the UNO mostly because it's way more simpler compared with the UNO since the USB-to-Serial ...
1
vote
4answers
89 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
33 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
26 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
179 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
63 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
58 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
43 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
72 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
60 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
50 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
52 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
91 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
69 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
78 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
68 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
56 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
55 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
72 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
81 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
85 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
69 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
36 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
22 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
108 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
30 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
44 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
494 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 ...
2
votes
1answer
86 views

Help for Changing the ATMega328's clock source to External Clock

I want to change the fuse bits of the ATMega328 to operate with external clock (function/signal generator) instead of the crystal. The clock speed will be 8MHz. I have been trying for months and all ...
0
votes
3answers
77 views

LCD not working!

I am using a PCI1602F-B from Powertip as an LCD and an ATmega8 to communicate with it. Connection: -PORT D of ATmega8 with data-bus of LCD -PORT B0 of ATmega8 with Rs pin -PORT B1 of ATmega8 ...
0
votes
1answer
55 views

Atmega ISP programming headers - muxing suggestions

I'm currently working on a project that involves multiple Atmega devices. I'm planning to leave ISP headers on the board, but I don't want to leave 1 set of ISP headers for each chip (I'll have 4-5 of ...
0
votes
1answer
93 views

Will MCP23017-E/SP be compatible with an ATtiny85? ATmega328P?

I mainly want to also be able to use the same I/O expanders with ATTiny85 projects since those chips have limited pins. I will be doing the main prototyping on an ...
0
votes
0answers
44 views

radxa serial vs atmega serial communication

I want to connect radxa to ATMega8, but I have the following problem: I wrote a simple program for avr to send some characters on serial port. when I connect Rx,Tx to MAX232 and look at hyperterminal, ...
4
votes
4answers
1k views

Why do microcontrollers have so many functionalities at once?

Being fairly new in the field of electronics, and being a computer scientist, it strikes me as a bit odd that almost every single microcontroller that I've come across thus far is fitted with: ...
1
vote
2answers
68 views

Can't use PROGMEM attribute with non - const variables

In an ATmega32, I intend to use the program memory for writing too but I am getting a ...
0
votes
1answer
80 views

Can I run an ATmega on 3.3V with an external 16 MHz crystal? [duplicate]

I have been told that is overclocking or it just will not work, but I want to be sure. And are there any real differences that would effect from this? Any tips and tricks will help, thanks!