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
14 views

Using CMPS10 with I2C interface

I am working on a project that i need compass and I have never worked with compass and here I want to use CMPS10 module with I2C interface and also I am using ATMEGA32A Controller. Now i want to know ...
0
votes
1answer
24 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
15 views

How do I replace a burnt atmega328 with a new atmega328(bootloaded) in arduino? [migrated]

I have an arduino UNO with atmega 328 whose microcontroller got burnt. I bought a new atmega328. I have another working arduino with atmega8. I followed the instructions in ...
0
votes
0answers
45 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 ...
1
vote
1answer
28 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
68 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
53 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
55 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 ...
-1
votes
0answers
16 views

i2c of Atmega 328 on arduino uno not working [migrated]

I am using Arduino uno board with Atmega 328 for i2c. The ic is not showing any clock signal on its SCL line on oscilloscope, The same code when used with different new atmega 328, and same code. It ...
0
votes
0answers
31 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
54 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
57 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!
0
votes
2answers
85 views

How to connect atmega32u4 to USB

I want to use a USB connection with the ATmega32u4, but there are 6 pins in the datasheet (http://www.atmel.com/Images/doc7766.pdf) associated with the USB. I don't know which ones connect to the ...
0
votes
1answer
58 views

Atmega328 to SD card issues [duplicate]

I am working on a board that includes an Atmega328 which needs to read data from an SD card. I am having problems. Here is a diagram: I believe the issue may stem from the voltage divider that is ...
-1
votes
1answer
75 views

atmega32 is working OK but atmega32A is NOT!

I have a board which there is an LCD on it and I want to show some lines in the LCD. I have a broken-pin Atmega32 which the broken pins didn't used for LCD, I have written a simple code which just ...
2
votes
2answers
62 views

Analyzing sniffed data from pins of LCD 2*16 using Atmega32

I sniffed DB4..7 of an 2*16 LCD using the below circuit : (Atmega32.PORTA1..3 is connected to GND) As you see above I connected En pin of LCD to INT0 of Atmega32 (That is configured for Falling ...
0
votes
1answer
49 views

Interacting with the host OS

I am wondering if an ATMEL micro controller such as an ATMEGA8 or ATTINY2313 has libraries to interact with a computer (windows OS) over USB? If so is there any premade libraries that does the bulk of ...
1
vote
1answer
147 views

Why do we need pull-up resistors or tri state pins for AVR external interrupts?

Let's say we need to write a program for ATmega32, that reacts to an external interrupt(INT0) through the pin D2. The interrupt is to happen during the falling edge of the signal. I noticed it in the ...
1
vote
2answers
104 views

FTDI (FT232RL) powers itself through RX/TX lines [duplicate]

I have an FT232RL connected to an AVR Atmega2184P (running the Arduino core) UART. The microcontroller has two power supplies - a LiPo battery (VBat), and USB power (Vin). The way I've designed the ...
2
votes
1answer
72 views

Help with schematic

I made a schematic with an ATmega328, a LT1763, and a HC-05 module. I was wondering if I made any mistakes on the schematic. It also has a 4 pin female header for a MPU-6050 module. It might end up ...
0
votes
2answers
71 views

How to run ATmega328P-PU using 3.7v Lipo 600mAh?

I want to run bare ATmega328P-PU using 3.7v 600mAh Lipo Battery. The Lipo is used to run Nano Quadcopter. The discharge rate is 20C. My Question is: 1. Will connecting Lipo to my atmega directly fry ...
0
votes
0answers
36 views

AVR ADC invalid conversion result

My circuit works very strange. Can you help me please? Parameters: ATMEGA32A-PU JTAG ICE3 3.3 VCC 8MHz internal osc as clock AVCC connected to VCC AREF connected to GND through 100n capacitor ...
0
votes
1answer
65 views

Changing voltage multiple times

I am trying to power an atmega328p, and the esp8266 for one of my projects. I am trying to drive a relay to switch lights on and off. The problem is that the relay runs on 12v, the atmega runs on 5v ...
0
votes
0answers
70 views

AVR - Simple(st) serial port programmer

As I'm just getting started with learning anything about microcontrollers, I started from making a very, very simple LPT port programmer (...I think it was just about 4 resistors). It worked well with ...
0
votes
1answer
30 views

How to Monitoring the lines between an Atmega8 and a LCD using Atmega32

I have a device that it use an Atmega8 to send some data to a 2*8 character LCD. the LCD has 8 pins and the pins are as below from left to right: DB7 | DB6 | DB5 | DB4 | En(Clock) | RS | VDD | VFF I ...
0
votes
0answers
24 views

Need Some Help Using a GLCD on EasyAVRv7

I am trying to use a GLCD, a WDG0151-TMI-V#N00 on my EasyAVRv7 board and I realized that I might need some help. The MPU I have is an ATmega32. Problem is, nothing works. For example I can't even tell ...
1
vote
1answer
75 views

LM35 output varies when connected to microcontroller

I am using an ATmega16A in my project. I have connected the Vref pin to Vcc (5Volts). I have connected my ADC input pin A1 (ADC1) to output of LM35 IC (output connected to RC damper). Now the problem ...
2
votes
1answer
85 views

MicroSD card SPI with ATmega32 [closed]

I want to communicate with a microSD card with an ATmega32 using SPI. I make a simple SPI loopback, and it works fine. Now, how can I communicate with the microSD card to write and read simple bytes ...
1
vote
1answer
72 views

Is it possible to program AVR microcontrollers using USB-UART converter instead od USBasp?

Is it possible to program an AVR microcontroller (e.g. Atmega328P) using a USB-UART converter like this one: Instead of a usual USBasp ISP programmer: ? If yes, is the procedure the same as in ...
0
votes
0answers
54 views

ATmega PWM frequency resolution

I am using an ATmega328 for generating a PWM signal. But I need a specific frequency. So I tried to use "PWM Phase Correct" mode (mode 10) for Timer 1. It says, the TOP value should be ICR1. It ...
0
votes
1answer
133 views

How to run Small Brushed Motors for Quadcopter with bare Atmega328 microcontroller?

I am trying to make a Nano Quadcopter using my Atmega328 microcontroller powered by a 3.7v 600mAh Lipo battery. I am using very Small Brushed Motors. If I directly connect motors to PWM pin of ...
0
votes
1answer
38 views

PWM AVR Atmega16

How can I use PWM in atmega16 with another ports (for example: PB0, PB1, PA0, etc.) and show the LED fade in and out slowly? I tried to do it but the LED only duffenly turn on-turn off, not fade ...
0
votes
2answers
84 views

Updated- Sending data on USART from Atmega32 To Python

I want to send one word from my Atmega32 to computer using USART serial protocol. As My system doesn't have any COM port, I connected a USB2COM converter cable. And as you see below in Device Manager, ...
0
votes
0answers
34 views

AVR chip restarts when RX line connected to a USB-to-serial module

I have an ATmega644 connected to a USB-to-serial module. When I currently have the ATmega TX line connected through and the RX line connected via a switch as follows: simulate this circuit ...
0
votes
1answer
32 views

Determine the correct capacitors value

what the right way to determine the correct capacitors value needed for a avr-chip with a crystal oscillator? Let say the crystal's load capacitance is: 20pF and i want to use: atmega8-16pu what ...
0
votes
1answer
48 views

Communication between three atmega controller

I am using three micro controllers mainly for printing, ADC and one main controller for controlling all. Between these controllers only 2 pins are shared commonly. So, there is possibility that ...
0
votes
1answer
47 views

1-wire in ATMEGA1281 problem

Could someone help me with something like this? I wanted to add DS18N20 thermal sensor (http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf) via 1-wire interface and when I'm trying to connect it ...
0
votes
1answer
66 views

avrdude: initialization failed, rc=-1

when trying to program the fuses I get this known error message: $ sudo avrdude -c usbtiny -p m328p -U hfuse:w:0x05:m avrdude: initialization failed, rc=-1 ...
0
votes
2answers
75 views

Getting bottom row of black boxes with LCD Display on atmega32 MCU?

I need some help with this, I am a completely new to programing MCU's but I am trying my best to get this working and I could relay use some help. I am using the Sparkfun Basic 16x2 Character LCD ...
0
votes
1answer
62 views

Arduino - receive Ethernet W5100 signal to multiple arduinos

I'm after doing a device in which I'll use 4 AtMega328 chips; Since they'll all be mounted on the same PCB, and I need an ethernet connection for them, I was wondering if there's a way to share the ...
3
votes
2answers
386 views

Microcontroller soft off circuit not working - why?

I was making a board with an atmega328 mcu (to be used with Arduino libraries) to do some one wire communication stuff. Since I was etching the board anyway, I decided to try and implement a simple ...
0
votes
1answer
81 views

Atmega328p Circuit Blinking Circuit

So I am trying to build a standalone circuit using the Atmega 328p. After uploading the code using Atmel Studio and AVRDude I get no response from the circuit; however, when I take the Atmega and put ...
0
votes
2answers
106 views

How to send a buffer with spi

I use an atmega32 and I want to use the SPI bus. I have the Adafruit 24 channel, 12 bit pwm led driver. I use a buffer to set the pwm for a certain channel. The question is how to send the whole ...
0
votes
0answers
45 views

Atmega 168A fuse programming

I'm currently programming over an Atmega 168A micro controller through a USB Tiny programmer and an ISP interface. The micro controller is set up with an external oscillator and an external person ...
3
votes
6answers
311 views

MOSFET PWM switch jamming on - why?

The circuit presented here is sized to switch 100W at a minimum pulse width matching 250Hz. But actually it's currently only being asked to switch around 10-20W. The load is an array of LEDs. Q1 ...
2
votes
1answer
72 views

AVR USART wait for AVR's reponse to continue text stream

AVR USART wait for AVR's reponse to continue protocol I am doing a senior project, and I need to send a large text file line by line to an AVR (atmega32) which will control a piano using ~36 ...
0
votes
0answers
55 views

Programming ATMega2560 using USBasp

I own an USBasp programmer and have experience programming the ATMega16A microcontroller using the same.Also,I use WinAVR and a makefile to generate the .hex file. A new project demands the usage of ...
0
votes
1answer
39 views

Can't read/write to/from the atmega328p

I cant communicate with the Atmega328p. I've flashed fuses low: 0x59, high: 0xD9 and changed wiring. Now I've connected 16Mhz crystal to the XTAL1, XTAL2 pins, and 2x22pF to the crystal. But I can't ...
-1
votes
1answer
80 views

Can I use an electrolytic capacitor on UCAP?

I have a small board based on the ATmega32u4, which I'm assembling. I only have electrolytic capacitors in 1uF value sitting around. Can I use an electrolytic cap from UVCC to ground, instead of a ...