AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the popular Arduino SBCs.

learn more… | top users | synonyms

1
vote
1answer
21 views

Error interfacing GSM sim900 with atmega32

Hi all I am trying to interface GSM SIM900 with atmega32. I have a written a code in which if a user press a push button, a call will be made to a pre defined number. If we want to change the pre ...
-4
votes
0answers
29 views

Need to know about apc ups AVR [migrated]

Due to high voltage my mac mini broke down. I am looking for cheap option and found this apc ups BX600CI. I read its specification which have AVR. I want to know what doest this mean. Its Input ...
0
votes
0answers
16 views

AVR Dragon - 2V measured on Reset pin on ISP header

I was troubleshooting a ATtiny841 chip using debugWire yesterday, that is until my AVR Dragon stopped working. I did not smell burnt plastic, and I can still the Target Voltage from AVR Studio ...
0
votes
1answer
59 views

ATTiny85 Not responding to anything (Arduino UNO as programmer)

I'm trying to program 8 ATTiny85's I purchased from ebay but I can't seem to get any response from them. I have tried following several guides and even tried to use High Voltage Serial Programming ...
1
vote
2answers
75 views

AVR to drive 12V 1A motor

I have AVR that needs to drive 12V 1A motor. I always used NPN BJTs (2N2222), but reading the datasheet says the MAX is 1A (which means I cannot use it here). Instead, I willing to use MOSFET. I have ...
1
vote
1answer
160 views

AVR switch best practice

After reading a lot of posts (here and on the web), I am a bit confused. All I want to do is to get the best practice of push button connection to AVR. I have 2 "sections" to my question. the first ...
0
votes
1answer
88 views

Error communicating with GSM SIM900 with AVR.?

I am trying to interface GSM SIM900 with AVR Controller. Till now I have done programming which transmit the command ATD and it makes a call to my cell. GSM response to this command by sending OK. I ...
0
votes
1answer
35 views

What is a good strategy to read many button inputs while still doing USB?

I am trying to design a USB joystick with many different buttons. The board I am using right now has an ATmega32U4, USB port, and 16 I/O pins. I am using LUFA for a USB stack. I know that I can get ...
0
votes
1answer
50 views

Check if bucket has water left

I want to build starter and simple auto self-watering system. I need the pump to take the water from a bucket, which means I need to check the water level on it and alert if too low. I want to do ...
2
votes
2answers
60 views

Not getting correct values in I2C interfacing in Atmega

I'm very new to the concept of I2C and I've been having some problems interfacing I2C between 2 Atmega32(s). I have one Atmega32 as a Master to which an LCD screen is connected and another I2C as a ...
0
votes
1answer
58 views

Atmega328P 32.768KHz Crystal Issue

I am having an issue with 32.768khz crystal connected to an Atmega328P (which I am using as an external source to timer2 in asynchronous mode to wake up the Atmega from sleep every second). On a ...
0
votes
0answers
67 views

reverse engineering firmware

I have a HEX file with a firmware for Attiny45. What I want to do is to extract some kind of formula that is coded inside it. I have done some research (mostly to find out that "it is not possible", ...
1
vote
1answer
39 views

AVR: Interrupt build error

I am trying to learn how to use interrupts for a project using an Attiny85. I have written a simple program from what I have learned from tutorials. However when I try to build the program in Atmel ...
0
votes
2answers
45 views

would using the reference voltage of an ADC as a VOLTAGE SOURCE affect my ADC or the stability of the circuit?

I am using an Arduino to capture an AC signal. However, the application is sensitive and needs a high resolution, I decided to use the internal 1.1 Volt as a voltage reference for the ADC. In the ...
1
vote
0answers
43 views

High voltage and low voltage sensing via the same pin

I am trying to put together a high-voltage programmer for AVR, which involves applying 12V to the target's nRESET in an otherwise 5V system. However, I also want to use nRESET for presence sensing ...
3
votes
2answers
125 views

Race condition in AVR timers

I'm trying to implement a global timer, so that I can call time_us() anywhere in program and the function will return microseconds since program start. I've done this using TIMER2 (8-bit clock) and ...
0
votes
0answers
21 views

Software I2C - Atmega8 [migrated]

I am using Atmega8 with 12MHz crystal, on my breadbord. I can use SDA and SCL pins with default arduino library wire.h, and it works. But I want another pins to use I2C protocol. I tried library, ...
0
votes
1answer
40 views

WS2812B with ATMega8 and light_ws2812 Libray

I have connected four WS2812B modules I got from eBay to my AtMega8 and tried to use the light_ws2812 libray to controll them. I connected the wire used for communication to the PC5 Pin on my ATMega ...
1
vote
1answer
58 views

AVR sending message via UART

I want to send char though Atmega2560 to the xbee coordinator(AT mode), and router(which is connected to the computer) should receive that char. I can correctly receive messages from router -> ...
0
votes
0answers
19 views

Question about CG\CG2 Xbox 360 Controllers and Trigger Pulls

I'm working on a basic mod chip, but not exactly for gaming; more for robotics. I'm using the new common ground (CG\CG2) controllers. I'd like to make my chip as much like the XMOD chip as possible ...
0
votes
2answers
42 views

How to use a Raspberry Pi Pin(3.3V) to reset a ATMEGA328(5V)

I have a ATMEGA328(AVR) connected to a Raspberry Pi(RPI) via serial using a level shifter. The AVR has the Arduino Bootloader installed and I would like to program it via serial. What would be the ...
1
vote
1answer
88 views

Can't get AVR pin change interrupt to work

I'm trying to get a pin change interrupt on an Attiny2313 to work but i'm stuck, the interrupt is not triggering. I'm using the following code in main(): ...
0
votes
0answers
48 views

Communication between two XBee S2 in AT mode

I want to establish a simple wireless link between my two AVR microcontroller boards; (one is ATmega8 and second is ATmega16), using XBee series 2 modules. I simply want to send some data from one ...
0
votes
4answers
70 views

automatic bootloader without PC software [closed]

I want to design a bootloader in AVR ATMEGA16 that when we reset the AVR, it receive hex file from some PC by serial port without run a program on PC for example when we reset the AVR, it load .hex ...
1
vote
1answer
36 views

AVR Sleep Mode Clarification

I have been learning about the AVR sleep modes as I would like to start using them in my future projects. I think I have understood the most of it except some specific details below Under Power ...
0
votes
1answer
46 views

How Can i Protect my Oscilloscope from high voltages?

I made an oscilloscope with AT90USB series(activated ADC in micro and send data to my own program in PC via USB).I dont need more than 0-5v but you can never tell.I know I can mislead higher voltages ...
1
vote
1answer
27 views

How Do I Set The Bitclock in a Make File for AVR?

I'm following Chapter 2 of Elliot Williams' book Make: AVR Programming. I'm on an iMac. I get a success message in Terminal when I input: avrdude -p m328 -c usbasp -v -B 10 So, I know that my ...
0
votes
0answers
40 views

Programing an AVR using ISP? [migrated]

I am trying to program an atmega with arduino sketch using ISP only .(mac user) So i know how to burn a boot loader ,and than to program the chip using the TX,RX , but i would like to program it ...
0
votes
1answer
24 views

ATtiny861A: ADC reference voltage should be 1 Volt under AVcc?

I just faced with that ATtiny861A datasheet forcing me to use analog reference voltage to be at least 1 Volt under analog supply voltage: Let me doubt this datasheet statement for two reasons: ...
0
votes
1answer
43 views

Nokia 1616 LCD AVR Issue

I seem to be having a weird and frustrating issue. I have a Nokia 1616 LCD to which I am displaying images stored on an SD card. Everything worked fine when I was breadboarding it but when I ...
0
votes
3answers
172 views

12 Hour delay for atmega16a

I am trying to turn on a LED for 5sec every 12 hours. I tried: ...
-2
votes
1answer
41 views

AT90SCR100 IC Chip: How can I clear (erase) the Lock Bits if LB2 is programmed?

I have a question about [Atmel] AT90SCR100 IC Chip. How can I clear (erase) the Lock Bits if LB2 is programmed ? Best Regards, Seikou Ishimaru.
0
votes
1answer
51 views

DAC interfacing with Atmega128

Hope you are doing well and solving all your problems!!! I am new to hardware programming, facing some difficulties to work with DAC interfacing with Atmega128 board. After searching on internet, ...
0
votes
1answer
48 views

ADC neglects input voltage (ATMega32)

In the following AVR code, why do I always see the same voltage for all pins of port A? I am using ATMega32. BTW, when I am grounding some pins of port A I do not see any change in the output. It ...
-3
votes
1answer
40 views

AVR Not Resetting Properly

I am facing an issue where my AVR is not resetting properly upon power up.This is the first time I am facing such issue. I have a Nokia LCD connected to AVR and upon startup (and after some delay and ...
0
votes
1answer
20 views

can't read&store in global variable in function OR can, but get error reading ds18b20 sensor

I'm using Atmega8 with CVAVR 2.05.0 and trying to slightly modify the way ds18b20 library works. I want to store temperatures from sensors in global array and start conversion for all sensors at one ...
0
votes
0answers
48 views

How to communicate with RLM100 UHF RFID module?

I have an RLM100 UHF RFID module. I searched a lot, but I didn't found anything useful that explain how I can use this module. I mean the only thing that I understand so far it that this module use ...
1
vote
1answer
53 views

Memory Leak in queue linked list, avr c

I am building a small command interpreter to be run on a microcontroller. To queue each command and its accompanying arguments, I am using a queue implemented as a singly linked list. All of the queue ...
0
votes
1answer
78 views

Atmega Microcontroller interrupt delay function on button press

I am using Atmega32A and I have 2 LEDs. Here's step by step what I want to do When the MCU is powered, I have one LED lit (PC0) When click on a button (PD6) the second LED at (PC1) is lit and the ...
0
votes
2answers
57 views

GPRS HTTP 400 Bad request

I am facing some problem with GPRS Project. I am sending request to server through GPRS and receiving responce from the server. I have used AVR ATmega32 micro controller and SIM900 GSM/GPRS Module ...
0
votes
0answers
63 views

How to reset AVR microcontroller?

I recently assembled my first custom PCB with an ATMega328 and ran into some problems. Is there an easy way to reset the chip to default settings including fuse bits so that I may start fresh? Any ...
0
votes
2answers
102 views

Determine input frequency of square wave w/ ICR in Atmega328p

I'm trying to obtain the input frequency of a square wave using the input capture register of an Atmega328p. So far, it works sporadically -- which is to say, when I input a 75 kHz square wave, the ...
0
votes
1answer
103 views

SIM908 GPS STATUS “Location Unknown” Error

I'm using a SIM908 module on a custom board and am having trouble getting the GPS location from it. Everything else works on the module. I can send SMS, make calls and send and receive data from a ...
0
votes
1answer
49 views

If I Don't Wire USBASP to ATmega 328-PU Will I Burn Out My Chip

This is a simple, noob question. I'm trying to connect a USBASP with an ATmega 328-PU. If I incorrectly connect them, such as put ground into vcc or miso into mosi, will I kill my chip?
1
vote
2answers
77 views

Wrong frequency with Timer1 on Atmega328p in CTC Mode

I want to make a LED blink at a frequency of 0.5 Hz. So, I use an Atmega328p, clocked at 16 MHz, and the Timer1 in CTC mode, which triggers an interrupt every milisecond. Yet, my program, in Atmel ...
1
vote
1answer
61 views

RESET(bar) Pin of ATmega16

The datasheet says that an External Reset is generated by a low level on the RESET pin. And after reset all my conditions and values will be set to initial values. I have connected the Reset(bar) pin ...
1
vote
0answers
50 views

How to call the odd and even bits from SDRAM and transfer via master to multiple slave through SPI Bus?

I want to use the multiple slaves on same SPI bus in Port C. i stored my Data to SDRAM of Atxmega 128a1. let me consider my SDRAM stores A1A2A3A4A5...etc data bits. my data size is 2956192 bits. such ...
0
votes
0answers
22 views

Why avr-as doesn't work?

I've got the following program, in AVR assembly: .DEF WR = R16 .ORG 0 SER WR OUT 0x24, WR When I call ...
1
vote
1answer
31 views

Why do we need to use `avr-objcopy` after `avr-as`?

New to assembly, I'm surprised to see that we need to use avr-objcopy after invoking avr-as, in order to obtain an Intel Hex ...
0
votes
3answers
189 views

AVR/Arduino: Output 2 pwm waveforms with 90 degree phase shift

So far, I was able to get two outputs at the correct resolution (35kHz-75kHz at a resolution no worse than 0.7 kHz) using the code below. I'm wondering, now, how I can get a phase shift between the ...