Tagged Questions

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
24 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
14 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
14 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
28 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
51 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
129 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
1answer
54 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
17 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
1answer
58 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 ...
-1
votes
0answers
32 views

AVR programming failed during verifying FLASH memory

I have an ATmega 644PA microcontroller. I am using AVR studio 4.19 and a JTAG ICE to program it. However, during the programming when the AVR studio is verifying the FLASH's content I get the ...
0
votes
2answers
22 views

Bitbang ATMega-328PU with CT210x using avrdude

I have made a breadboard-arduino with an ATMega-328PU and the standard components taking help from http://arduino.cc/en/Main/Standalone I interfaced the CT2102 Breakout Board with this assembly: DTR ...
1
vote
1answer
25 views

AVR SPI2X has no effect

I've got an ATMega88A configured to run on internal 8MHz clock: lfuse = 0xE2 hfuse = 0xDF efuse = 0x01 F_CPU defined as 8000000 This in confirmed in the 'real ...
3
votes
3answers
162 views

AVR SRAM limitation

I'm just an enthusiast looking for some advice. I'd like to use a microcontroller to read frames from a camera and write those frames to a small LCD screen. The camera and screen are on the same SPI ...
1
vote
1answer
34 views

ATmega 23K256 SPI RAM and ISP together

I want to connect 23K256 SPI RAM to ATmega. Do ISP programming will work together with SPI RAM connected. Thanks.
6
votes
1answer
61 views

Millis versus centis on AVR platform

I am building a device on the AVR platform. The device will need some timing information, so I was thinking of reimplementing Arduino millis-like functionality ...
1
vote
1answer
67 views

One PWM timer to two outputs?

first post here, so sorry for any bad styling. I'm working on a group project and using an Atmega328, without going into specifics, I need to drive two fans, two servos, and 1 CTC based function from ...
1
vote
1answer
55 views

ATmega328A UART: everything working, but not as expected

I am trying to get UART working via the ATmega328A. I want to enter a character, and get that character to be printed out. However, when my code is run this is what happens: I enter one character, ...
2
votes
0answers
78 views

AVR program code location

I'm working with an ATmega328P and I wanted to interface with the flash memory writing data to it with the macros provided by avr-libc. This is the memory map for my chip: I don't understand where ...
0
votes
1answer
85 views

Writing flash on ATmega328

I have struggled to understand this code but I can't understand the little endian for loop. Why is it necessary? And how could I read the page back? One byte at a time as an array? Is it even ...
1
vote
1answer
94 views

SPI not working, ATmega328 only sending 1 byte

I am trying to get SPI working on an ATmega328. This is my code: ...
0
votes
1answer
38 views

Single Phase Energy Meter using Atmega32

Version 1 : We are trying to measure the input voltage from the AC mains (which theoretically should be 230 V). The circuit to measure this is a simple resistor divider network as shown below. The ...
1
vote
1answer
18 views

How to drain power with pins for led matrix on atmega32 instead of using a led driver

I want to make a led driver without the tlc594 series. I use the atmega32 of which I can use 1 PWM pin. The PWM pin will be connected to the base of the transistors. With the PWM pulse I can dim the ...
0
votes
1answer
50 views

How does this construct drive the RESET pin low?

I've seen this in a bunch of ATMega / Arduino reference designs: The RESET pin is pulled up high with R10, pulled low with a switch (S1), but then tied to the DTR line from a UART breakout via C27 ...
0
votes
3answers
100 views

2 Digit 7 Segment Display Driver

I need to display the temperature acquired by my LM35 on a 2 digit 7 segment display. What I have is LTD383-R2 Common Anode Display. Datasheet here. The display has 1 Anode pin + 14 Cathode pins for ...
0
votes
0answers
66 views

I2C interfacing with ATmega32 and ArduinoMega2560 failed

I'm trying out I2C interfacing the ATmega32 with Arduino Mega2560 Board without success. The Arduino Board is configured to be the Master Read. The Atmega32 is configured to be the Slave Write. I ...
1
vote
1answer
50 views

Update ATmega168 program with serial

I'm working with an ATmega168 with a Linux based board (TI DM365). The ATmgea168 communicates with the TI over UART. The Atmel is programmed using AVRMKII and is running fine. I was wondering if ...
2
votes
1answer
109 views

AVR simple bootloader - how to call application code?

I am using the atmega328. I want to create a simple test application using a bootloader. I want to: Blink an led at one speed in the bootloader section of flash, and then blink at another speed in ...
1
vote
1answer
57 views

ATmega328P not responding

All of the sudden my ATmega328P stopped responding to flash commands with avrdude. Here is the output of the attempt: ...
0
votes
0answers
74 views

SPI always returns null while reading

We need some help in SPI protocol. We've been using an AVR microcontroller ATMega324PA (DIP) and an ADXL344 accelerometer (QFN Breakout). Both chip operates at 1.8V and supports I2C & SPI. Lately ...
3
votes
2answers
203 views

How to get the PWM frequency and duration of each pulse?

I have an ATmega8 and I started working on servo motor HS-645MG. What frequency works with the HS-645MG? How do I get the frequency of PWM and the duration/length of each pulse? Is there a ...
1
vote
1answer
41 views

Read strings from ATmega or Arduino

I have found out that one can disassemble an ATmega with objdump or avrdude. And if the LB1 and LB2 bits are set low it would be much harder. So if these bits are set high or just reading the flash is ...
0
votes
1answer
28 views

Set LB1 and LB2 low on Arduino and ATmega

I have searched for a possibility to objdump microcontrollers. I then have found this post. There it says that LB1 and LB2 can be set to low to prevent the most people to read from it. My questions ...
0
votes
1answer
79 views

ATmega 328P SMD version

Currently I am using the normal ATmega328P chip with my barebone Arduino I have made. I am planning to switch it with an SMD version of ATmega328P, since it's smaller in size it will consume less ...
6
votes
5answers
584 views

EEPROM endurance in energy meter?

I am designing an energy meter for electricity billing purposes by converting an analogue energy meter and counting the number of pulses given by the analogue meter's LED. Since power may be cut off ...
0
votes
1answer
55 views

How to get 32u4 arduino to ignore DTR for USB Serial?

32u4 based "USB Serial Ports" refuse to send data to the PC unless DTR on the PC software side is set to high. If the PC software does not set DTR to true (high?), then Serial.print() on Arduino goes ...
0
votes
0answers
50 views

AT86RF212b connections

I'm trying to communicate at86rf212b with atmega328 , I have connected all SPI connections( MISO, MOSI, SCk, SS), IRQ, SLP_TR and RST with suitable 5v/3.3v conversion (74hc4050) and trying to read ...
0
votes
0answers
42 views

AVR TWI/I2C Not Responding

I use Twi module of AVR Atmega168 to talk to DS1307. ...
-3
votes
1answer
62 views

Controlling brushless motor using ATmega16 [closed]

How can I control a brushless motor using an ATmega16? My motor is of 1600kv and ESC of 30A. I'm giving the 2 sec delay for motor ON and OFF but it's not working.
0
votes
2answers
47 views

Atmega16 SPI to clock out 32bit data

I am very new to AVR and even for coding of micro-controllers. I wanted to shift out 32 bit data on SPI from a Atmega16 to a 32 bit shift register. The shift register in not an SPI compatible device. ...
2
votes
1answer
151 views

RC toy car RF signal drops out when at full speed

Short version (TL;DR): I need help troubleshooting the radio communication of an RC car that I made. Every 5s or so, the connection drops out and the car spends about 1s without receiving instructions ...
1
vote
1answer
66 views

how to clear an UART interrupt flag manually?

I'm using an ATmega32. I have ISR(USART_RXC_vect) as follows ...
0
votes
2answers
64 views

ADC 10-bit false results

I'm using atmega32 µc with the internal 10-bit ADC. I connected my potentiometer to the ADC 1 and I'm using 5 V Voltage Reference. using the following code, I did the ADC-config ...
2
votes
2answers
128 views

Is there difference between Timer vs Counter in ATmega328P?

Is there difference between Timer vs Counter in ATmega328P? Or is it the same thing?
0
votes
0answers
29 views

AVR324PA controller not executing flash code

We got a simple circuit that has a ATMega324PA controller. We use AVR-ISP MKII programmer to program the controller. Both the controller and programmer is supplied with the target voltage 1.8V. ...
0
votes
2answers
96 views

Custom Atmega32u4 board first boot

I've built a custom board with an Atmega32u4, like the Arduino Pro Micro from Sparkfun. The circuit seems ok, but when I plug the board to a pc, the usb device isn't recognize (doesn't even pop the ...
1
vote
1answer
103 views

ATmega XTAL input capacitance and crystal load capacitance

I need precise low-ppm crystal for my circuit with 8-bit ATMEGA (AT90USB1286). Currently 18pF TXC HC-49 (11.5x5mm) is used. I need also minimize size to reduce potential EMC and PCB. TXC - 7M/B ...
1
vote
1answer
69 views

No correct signal from ATMEGA162 UART

I got the following circuit: simulate this circuit – Schematic created using CircuitLab And this code to run it: ...
0
votes
0answers
49 views

I am able to program atmega8 but not atmega16/32

I am new to microcontrollers and am taking it as a hobby. I have USBasp programmer with a 40 pin ZIF socket. I used to program my atmega8 for blinking LED's and other purposes. Now I am working with ...
1
vote
3answers
143 views

Weird output on 16X2 JHD162A LCD display

I am learning interfacing of Atmega 16a with 16X2 LCD. I have a written a header file for routines which will used frequently and every time I want to interface with LCD using Atmega 16a I use this ...
0
votes
1answer
115 views

If condition strange behaviour

I brought an ATmega328P (SMD) and burned a Duemilanove Bootloader. Everything seemed to be working fine until I tested out conditional statements. Average set of analog val are: 84 , 143 , 255 Here ...