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)

1
vote
2answers
63 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
58 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
39 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
26 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
45 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
44 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
23 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
13 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
64 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
51 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
35 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
15 views

How to prevent Ardiuno compiler from merging changing of port pin outputs into a single operation [migrated]

I want to set one pin's output value, and then set a different pin's output value so that the two pins change value one after the other. However, the compiler optimises the two calls to change both ...
0
votes
0answers
40 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
65 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
30 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
60 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
30 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 ...
-2
votes
0answers
28 views

crystal oscillator and CSTRAY

Let assume I'm using atmega8-16pu and I want to connect a 16MHZ crystal oscillator with 20pF load capacitance. Now I need two capacitor connected to GND and the chip ( XTAL1/XTAL2 ) itself so I have ...
0
votes
1answer
29 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
0answers
18 views

Is it possible to use arduino uno programmer for other microcontrollers from avr? [migrated]

i got an arduino uno which i started to use with microc for avr to add more customisation. I am wondering if it is possible to use the arduino uno programmer to programm other microcontrollers from ...
0
votes
1answer
45 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
62 views

I wish to use ADSL protocol for my Project, can someone help me please? [closed]

I would like to use ADSL protocol for my application which involves Master-Slave communication between devices. I have done it with Ethernet(ENC28J60). I would like to now if it is possible to ...
0
votes
1answer
34 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
24 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
48 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
40 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
371 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
69 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
84 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
38 views

ATmega32u4 bootloader [migrated]

Hey all this would be my first encounter needing to burn the Arduino IDE bootloader onto a blank ATMega32u4 that I bought from Digikey. What all do I need to buy in order to program the bootloader ...
0
votes
0answers
30 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
300 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
64 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
38 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
36 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
78 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 ...
1
vote
1answer
100 views

ATMEGA328P SPI MMC/SDIO

I want to connect an ATMEGA328P to a mobile phone, a Samsung Galaxy S3 to interface some data. I need to use the microSD port behind the battery cover for this purpose, so here is the question, Is it ...
1
vote
0answers
59 views

BH1750FVI with I2C won't work

I have the led driver of Adafruit connected to my atmega32. I adjusted their library for the Arduino, so now I just need a µcontroller and not an Arduino. This thing works. Now I want to control the ...
2
votes
2answers
336 views

Best method to transfer two int percentage values over a CAN bus

I have two integers: int A is a value from -100 until 0 and int B is a value from 0 to 100 What is the most effective way to put this into a CAN message and decode it again at the other ...
2
votes
2answers
57 views

Register Syntax question

I was reading some code to use an on an arduino ATMEGA328P and I can't figure out what this line of code does. ASSR &= ~(_BV(EXCLK) | _BV(AS2)); I know that ...
0
votes
1answer
91 views

Arduino (ATmega328) In circuit programming?

I am designing a circuit/software for some guy.. I am using a Atmega328 surface mounted micro in the design and am just supplying the schematic and code. He is going to build it (make a PCB) and use ...
0
votes
1answer
41 views

nrf24l01+ works on channel 10 but not channel 82?

Setup is nrf24l01+ with 328p running internal oscillator at 8Mhz. I have been using it like this for a while with no problems at channel 10, but now want to change to a higher channel such as 82, but ...
0
votes
0answers
19 views

about IR sensor RP6 V2 IC3

I try to use the IR sensor that with RP6 V2 and. I don't know that sensor belong witch port? I mean receiver and the light sensor to send the light to measure or find the obstacle belong witch ...
0
votes
1answer
24 views

Finding pulse period for output compare on ATmega128 (10-bit fast PWM)

Ok, so I have ATmega128 board. I have clock of 16MHz with a prescaler of 8 (2MHz). I am using fast 10-bit PWM to generate a waveform with a top value of 1023. Given a number, the value put in OCR1A ...
0
votes
2answers
37 views

Need help with pushbutton on atmega8

This is what I have: Atmega 8 wired for programming, confirmed working, programmer is my power supply. 2 leds connected via 470Ohm pull up reisistors to ports PORTB0, PORTB1 and to GROUND, working. ...
0
votes
1answer
86 views

ATmega8 LED blinking project not working properly

I am making a simple project using ATmega8 microchip. I uploaded this code to the AVR: ...
1
vote
3answers
152 views

May I power atmega32a-pu microcontroller from AA batteries?

I need to provide +-4.5V to the microcontroller. That would be fine by having 4x rechargable batteries, but how is it with current? On each AA battery is written min.2550mAh. I am not sure but I think ...
0
votes
2answers
135 views

Arduino as ISP programming the Arduino, not the connected ATmega328P

I am trying to program an ATmega328P with an Arduino Uno R3. When I click 'Upload to Programmer' in the Arduino IDE (version 1.0.5), the Arduino programs itself and not the chip. Stranger still, the ...
0
votes
1answer
38 views

ATmega128 output compare normal mode. Generating a waveform with ISR

So here are specifications: -prescaler of 8 -Channel A -pulse_width is determined by user defined degrees (converted to clock ticks) -pulse_period is 40000 clock ticks (20ms) -Normal mode -Timer3 So ...
1
vote
2answers
114 views

Tie Arduino - ATMEGA328P reset pin directly to +5V?

I would like to know if it's okay to tie the reset pin on an ATMEGA328P directly to +5V without using a resistor to avoid random resets and lower part count. If it's not okay, can you explain why it's ...