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

nRF24L01 TX_DS/MAX_RT never

I have strange problem with my nRF24L01+. I'm trying to add nRF24L01+ support to my library for AVR mcus. I'm able to communicate with the device via SPI. I can read, write... But I'm not able to ...
-2
votes
1answer
77 views

Is it possible to use two communication protocols in one microcontroller?

So I've been trying to communicate between the Beaglebone Black and atmega through I2C for quite such time and have been facing quite a lot of problems with it. On the other hand I can successfully ...
-1
votes
0answers
20 views

iOS compatible Bluetooth module for high throughput [on hold]

Suppose I want to transfer data from an AVR-based device (say ATMega2560, preferrably an Arduino) to an iOS device (iPad or iPhone) at a decent speed (at least 200kbps), what bluetooth modules are ...
0
votes
2answers
36 views

Atmega was loose during programming, now target doesn't answer, and device signature keeps changing

I'am using an atmega328p with a custom build programming board connected to an usbasp. While programming with arvdude, the atmega chip was not perfectly placed in the board header, and the atmega ...
-2
votes
2answers
84 views

switching LED On and off using microcontroller

I am new to microcontroller and just become confused to solve the following problem: An ATmega32 chip is connected to four on/off switches (SW0-SW3) and 4 LEDs (LED0-LED3). SWi is connected to PAi. ...
1
vote
1answer
63 views

pseudo analog voltage using PWM

I am just learning Pulse with modulation technique. Is There any way to create a pseudo analog voltage using PWM from the digital output of ATmega16? How can it be done?
0
votes
0answers
41 views

Pulse Width Modulation (Fast PWM) in Microcontroller

I am learning Pulse width modulation. If I want to to generate a 2.5kHz signal having an average voltage of 3.3V using ATmega32 FAST PWM mode (WGM=1110), What will be the value of TOP(ICR1) and ...
1
vote
1answer
38 views

ATmega328P assembler inline text and assembelr ALIGN

I have a program in assembler like this: ...
0
votes
1answer
41 views

Timer in ATmega2560

...
0
votes
0answers
24 views

Signal differences into Labview to those measured before Multiplexer

First off, I'm not the programmer. I am however trying to help him out with my limited knoweledge of IC's and Labview. But I am reaching the limits of what I know so really need some help. ;) We have ...
0
votes
1answer
47 views

Signal differences into Labview to those measured before Multiplexer

First off, I'm not the programmer. I am however trying to help him out with my limited knoweledge of IC's and Labview. But I am reaching the limits of what I know so really need some help. ;) We ...
0
votes
5answers
177 views

Desoldering an IC without damaging it

I'm trying to make my own Arduino based board. I need to have at least 25 digital I/O and no less than 8 analog in pins. I decided on the Atmel ATMega2560 because of its large capacity for both of ...
0
votes
0answers
28 views

Issues programming Atmel ATmega256rfr2 using JTAGICE3

I've built a custom board using ATmega256rfr2 and I use Atmel JTAGICE3. I use Atmel Studio 6.2 IDE. Lately I've been having issues programming my board using JTAGICE3. I get the following errors. Each ...
0
votes
4answers
42 views

ATmega48 maximum AREF voltage

The application that I want to use it for is 5V. However it could potentially have a future iteration where the reference voltage could be as high as 15V. The plan is to run the ATmega48 at 3.3V. I ...
1
vote
1answer
68 views

Driving WS2811 LED strip from microcontroller

I'm planning to drive the input of a WS2811 based LED strip (total approx 450 LEDs) from a microcontroller/arduino, as per the diagram below. Do I need a transistor, buffer or anything else between ...
1
vote
1answer
61 views

SX1272 - LoRa - What is the minimal schematic (needed capacitors/resistors) to use that device?

I'm interested in SX1272 by Semtech. It's a LoRa modem. I'm not the best at reading datasheets. Maybe it's because of my poor English. I wonder what is the minimum schematic of such a chip? What ...
0
votes
2answers
51 views

Timer0 and Timer2 configuration on atmega1280

I want to setup Timer0 and Timer2 to control the intensity of the LED (L) on the Arduino Atmega1280. The frequency has to be 10khz and the duty cycle will be controlled by a switch or using serial ...
1
vote
5answers
122 views

Human touch pins on MCU (atmega328p) directly or other components needed?

I would use atmega328p to read the pulses transferred in human's body. So I wonder if that's good to directly expose the pins of the chip. Or there should be some type of components for protection and ...
-3
votes
2answers
84 views

Atmega basic circuit with or without crystal

I want to build a basic Atmega8a (DIP-28) micro-controller circuit (programed using a 10 pin ISP socket). I have found several basic circuits. Some of them use crystal oscillator, some use internal ...
0
votes
1answer
19 views

Using 3.3v for ICSP programmer

I have a circuit that is connected to a VCC of 3.3v because there is a component connect that only runs on 3.3v. Also a Atmega328p is connected to this VCC and now I am trying to add an ICSP. But all ...
0
votes
0answers
26 views

Measuring with HC-SR04 and ATMEGA168

I am trying to measure distances by using a HC-SR04 (Ultrasonic sensor) together with my ATMEGA168A. Management summary: I need to set the trigger high for at least 10us and wait for an echo reply ...
0
votes
2answers
49 views

CURRENT TRANSFORMER 30A / 5A Interfacing with AVR Atmega32 ADC

I am trying to Calculate Current of 1HP Motor uses with Motor Starter Box. Initially when Motor is started i can see current shoots upto 20-22A on analogue meter in starter box. I want to measure ...
0
votes
0answers
44 views

ATMEGA128A programming problems

It's my first experience with Atmega programming. I supplied my board from computer's USB, placed 500nf(1uf-1uf) capacitor between GND and Vcc, and 4.7kom pull-up resistor to Reset. But whenever I try ...
0
votes
1answer
37 views

Programming the ATMEGA328 chip without an ADRUINO

I have the code I can copy and paste, just wondering if I can program the chip with my desktop. I have Windows Vista 64bit. Building what the author states as an Adruino spot welder controller/solid ...
1
vote
1answer
49 views

Calculating the correct BAUD for the ATMEGA168A

What is the correct way to set the BAUD when programming an ATMEGA168A? The code below works fine, however I don't know exactly what to do in case I decide to work with a higher BAUD such as 9600: ...
0
votes
0answers
32 views

Getting [VTERM] Parity Error when simulating USART connection in proteus

I'm trying to simulate USART connection between atmega32 and a virtual terminal. But when I push the button to start the transmission, I always get [VTERM] ...
0
votes
1answer
80 views

Oscilloscope as monochrome bitmap image viewer [closed]

Iam a beginner in arduino and other open source platform programming and I came across a DIY project which involves using oscilloscope as an image viewer,but this project involves ATmega16 AVR IC1 ...
3
votes
3answers
78 views

is there atmega 128 basic circuit for every project?

This is my first Atmega project so I have following questions: Do I have to connect all those gnds and vcc's? In programming I used Vcc Reset Gnd Tx Rx SClk of USART0 is that okay? I didn't used ...
0
votes
1answer
33 views

How to control multiple servo motors using two timers?

How can I control several servo motors using 2 timers in an ATmega16? I have searched for "servo bit banging" but no coherent post explains it fully. I found some code but I don't thoroughly ...
0
votes
3answers
59 views

How can I use the watchdog timer in interrupt mode?

I am using an atmega168 with avr-libc. Now, to form control loop of a fixed duration, I need a, say 1 second interrupt. Being clocked from an 8MHz clock, the only ...
0
votes
1answer
56 views

Burning bootloader on atmega1284 tqfp

Is the process of burning a bootloader (JChristensen's mighty-1284 to be precise), on an Atmega1284 microcontroller same for both DIP (Atmega1284p) and tqfp (Atmega1284-au)? While searching online ...
1
vote
1answer
78 views

Use modified USART for a one-wire bus, one master and 400 slaves on a 400 m wire?

I use the normal ATmega UART interface, but disable the TX part (make it high impedance). To have more push-pull power for a long bus, I use two I/O pins for TX; the PNP and NPN transistors will be ...
2
votes
0answers
64 views

Receiving and decoding Manchester code X10

Solved: After much debugging I found out that it was the UART that was not working correctly (not sure why yet) and that port I used to turn on LEDs did not work (PORTC). So there were never any ...
-2
votes
1answer
60 views

Run an atmega328 using an 16Mhz crystal with 22nF caps

Can you run an ATmega328 using an 16Mhz crystal with 22nF capacitors instead 22pF?
0
votes
1answer
101 views

automatic plant watering system using microcontroller

I am trying to build an automatic plant watering system using ATmega16. We are using moisture sensor YL69 for our project. The following is the image of the moisture sensor we have used. The ...
1
vote
1answer
81 views

Connecting a 12v relay to microcontroller circuit

I am trying to build an automatic plant watering system using ATmega16. We are using moisture sensor for our project. The circuit diagram is as follows: We are using the following 12V relay: I ...
0
votes
2answers
41 views

DIP switch on Atmega32, are external pull-ups neccessary?

I'm connecting a DIP switch to an Atmega32 as shown in the diagram above. This works well in my application so far. However the common opinion seems to be that external pullups are necessary for a ...
0
votes
3answers
73 views

Interfacing 62256 SRAM to low pin-count AVR via latches

I need to add over 20 kBytes of RAM to the small device built around ATMega8. Moreover I'm interested to research whether I can substitute it with ATtiny2313. The goal is roughly speaking to store ...
-1
votes
1answer
38 views

RangeFinder with SRF05(code only run once)

I want to make some LED blink if the range is in range.for example if the range is between 100mm and 300mm turn the LED on PortB,pin1.but the code only rune once and then micro stops working... here ...
0
votes
1answer
35 views

Is it possible to get two low-voltage interrupts pins on a Atmega328?

Caution: Noob at work :) I'm trying to get one of two 1.5V-2V signal inputs to trigger an interrupt routine on an Atmega328 (Doc PDF). By using the analog comparator interrupt, I gather I block the ...
1
vote
2answers
85 views

Programmer gives me an error in programming a big hex file [closed]

I want to download a program into an Atmega128. the programmer which I am using is this ( jamshad ISP -USB ZIF_Socket_Programmer_V5 ). The Programmer work correctly for programming one small length ...
0
votes
1answer
81 views

How to generate 1Hz to 40Hz Waveform by ATMEGA32U4 (Arduino Board)

I am using ATMEGA32U4 (Arduino board ). I am facing problem with TIMER. I want to generate 1 Hz to 40 Hz signal in two pins and change PWM signal with certain period of time. Example: ...
7
votes
3answers
585 views

What determines sizeof(int)

Regarding the standard data types, What is the size of an integer in ATmega controllers? And what determines the size, is it just the compiler? Or is it in the hardware design of the controller itself ...
-1
votes
1answer
53 views

Install Contiki OS in Microcontroller

I am just starting my IoT project. I want to implement a recent low-power wireless standards (6lowpan, RPL and CoAP) in my project. I found a radio from Microchip (MRF24j40) that support IEEE ...
2
votes
1answer
70 views

Why ATMega328 can't run SPI at full clock speed

Two part question: In the datasheet on page 168, the best SCK frequency one get get on SPI is \$\dfrac{f_{osc}}{2}\$, why can't this be \$f_{osc}\$? Also from the datasheet: "When the SPI is ...
0
votes
1answer
58 views

Use AVR Atmega like a 555 for timer

I have a lot of AVR Atmega128P boards, and I would like to use it as timers WITHOUT PROGRAMMING, as example, just like 555 timers. Is it possible? If yes, how can I do that?
0
votes
1answer
56 views

Primary diff between EEPROM and Flash mem, in terms of code memory

In terms of storing program commands, what is the definable difference between EEPROM and Flash memory? Also, in this particular context - For a personal project developing audio codec using TI ...
2
votes
3answers
96 views

Automatic calibration of a zero cross detector latency

I have a circuit similar to this one (different component values, different uC): I expect a large phase error in the ZCD. The load is purely resistive and of unknown value between 100W and 1000W. ...
2
votes
3answers
379 views

ATmega168 crystal resonator more than 20 MHz

I try to make an SD card-based WAV player with ATmega168. I have connected a 16 MHz quartz crystal, and it can give a 64 kHz carrier frequency and a 8 kHz sampling frequency. But in that ...
1
vote
1answer
42 views

I2C between atmega and Beaglebone Black

I am working for a small project which involves me to communicate between an Atmega and Beaglebone black through I2C. My question is that Atmega has an 8 bit microprocessor and beaglebone black has a ...