A series of Atmel microcontrollers.

learn more… | top users | synonyms (3)

7
votes
9answers
5k views

Linux / Mac AVR Programming Suite?

I have been coding and using Arduinos for quite some time now. However I am ready to move up to using straight AVR chips without the arduino bootloader. My question is what are resources to do this? ...
2
votes
1answer
691 views

Backup AVR with avrdude

I'm heavily experimenting with ATtiny AVR's and I can't afford to buy a new AVR for every experiment, so I thought up a backup script. The idea is that I can bring my AVR back to factory defaults ...
9
votes
1answer
41 views

How should one switch from using an Arduino as a programmer to an external programmer?

Part two of a three part series on transitioning from Arduino to a plain AVR microcontroller and minimum supporting components (part one, part three) I've seen a lot of people ask this on the ...
5
votes
1answer
36 views

How do I transition from using the Arduino IDE to plain avrdude/make?

Part three of a three part series on transitioning from Arduino to a plain AVR microcontroller and minimum supporting components (part one, part two) I already know how to use an Arduino as a ...
5
votes
2answers
312 views

AVR interrupt service routine not executing as fast as expected (instruction overhead?)

I'm developing a small logic analyzer with 7 inputs. My target device is an ATmega168 with a 20MHz clock rate. To detect logic changes I use pin change interrupts. ...
0
votes
2answers
2k views

Getting weird characters in hyper-terminal on serial connection of PC and Atmega-16

I have a Atmega-16 based board, connected via Max232 to pins 2,3,5 of a db-9 connector. The connector connects to a PC. I am getting weird characters on hyper-terminal instead of normal "Hello World" ...
8
votes
5answers
3k views

Start off with embedded C with ATmega32 (ATmega AVR series)

I have a ATmega32 board laying around and I figure it would be perfect to start off with microcontrollers. I once did some babbling in embedded C (thats when I got this board) but the flow was stopped ...
7
votes
5answers
14k views

How do I read digital input on ATmega16?

What do I have to do to read a digital input (pushbutton) on ATmega16? Do I have to enable pullup-resistors or can I use a 10 kohm one? What would some simple code be be? Just a simple 'Turn the ...
2
votes
1answer
2k views

Build ATMEGA16 Board

First of all, I'm a newbie regarding electronics&robotics so please bear with me. I have been working as a programmer for a few years but I just got interested in playing with microcontrollers. ...
9
votes
2answers
1k views

How do you determine if a new microcontroller is defective?

I've never dealt with parts being defective strait from digikey, but 3 new Atmel ATmega164A's that I've received have been exhibiting extremely odd behaviour. I narrowed it down to something to do ...
4
votes
3answers
1k views

My Atmega328 seems to be overkill, what should I use instead?

I'm using an Atmega328 chip with the arduino bootloader in a very small circuit. The sketch simply plays a tune using the tone() function to play a melody through a piezo speaker on a single pin. ...
1
vote
3answers
568 views

Resources to learn about the AVR/RISC architecture

I think I have used enough of the AVR series by atmel to say that I understand how to use it. I know somethings about how it actually works, but I would like to know more. Are there any good resources ...
1
vote
1answer
1k views

avrdude and atmega48pa

Can i programm the atmega48pa with avrdude? I have problems with the signature ... ...
14
votes
2answers
24 views

How can I use my SMD Arduino to program a separate DIP ATmega328?

I have an arduino with a surface mounted (SMD) microcontroller: I know how to use a DIP arduino as a programmer for a DIP ATmega328. It's easy --you just pop your microcontroller in the holder. ...
4
votes
2answers
353 views

Moving the code and interrupt locations in Arduino

I need to be able to choose between two Arduino apps running on an atmega 1280 (megaavr) at boot time. Therefore I need to move one of those apps to a different location in program memory, and I need ...
3
votes
3answers
708 views

Atmega32 factory reset board

I want to know is there any reset board available ( I mean schematic, link, tutorial or anything else ) out there for Atmega32 microcontoller ( I heard about high voltage reset board, I found some ...
2
votes
4answers
1k views

Simplest way to upload sketches onto “hackduino” without having a arduino duemilanove

Update: The ATmega came bootloaded with the arduino software is that can simplify anything I have this board: I'm looking for a bone-simple way to upload sketches. Ideally without buying ...
0
votes
2answers
182 views

ATmega168: UART 8 data bits, no parity, 1 stop bit

According to the datasheet I'm setting the UCSR0C register as following: UCSR0C = 0b00000110 Description: ...
7
votes
1answer
417 views

Can an ATmega or ATtiny device signature be read while running?

While programming an ATtiny or ATmega, avrdude prints the device signature, in this example it is an ATtiny. avrdude: Device signature = 0x1e910a Can I read this ...
5
votes
3answers
1k views

Arduino Bootloader

If I upgrade my arduino from the ATMega 168 to ATMega 328 will I be able to use the ATMega 168 like a stock chip from the factory or will the bootloader prohibit this? In other words, will I be able ...
4
votes
2answers
39 views

Can I write a bootloader to Atmega using serial port

There is a really grand price difference between an empty Atmega328 chip and the one with the Arduino bootloader installed. In my country, this difference is 1:3. This means that uploading bootloader ...
4
votes
2answers
3k views

Real maximum current for ATmega328?

Everything I read says that the ATmega328 can provide 40mA per pin. However when I've measured the actual current provided by one pin it was showing 80mA. It was the same on every pin I tested. Anyone ...
3
votes
2answers
214 views

Piezoelectric Sensor and the ADC

I would like to hook up a piezoelectric sensor to my ATmega8 microcontroller via its ADC. The reason being is that I would like to use the sensor as a force sensor. I noticed that the harder I press ...
2
votes
2answers
560 views

RGB LED Strip - Variable Voltage Vs. PWM

I am going to install an Analog RGB (non adressable) LED strip in my room and need to make a driver for it. The LED strip specs are: 10 cm segment 12V @ 60mA max per segment I would be using ...
1
vote
3answers
247 views

Dimming multiplexed LEDs

I'm multiplexing 32 LEDs in a 4:8 configuration on an ATMega328 and am trying to dim them with what is probably a completely naive understanding of PWM. Note: I'm multiplexing them directly with 12 ...
1
vote
1answer
923 views

atmega328 with optiboot not compatible with Arduino?

I recently purchased a number of ATmega328 chips loaded with the Optiboot (uno) http://littlebirdelectronics.com/products/atmega328-with-arduino-optiboot-uno for some projects I am working on but have ...
0
votes
2answers
58 views

How to block/allow an i2c data signal to pass on to another device

I have three devices which I'm working on and one of them needs to control i2c communication between the other two. Each of the devices is based on an AtMega or AtTiny chip. The Controller (based on ...
0
votes
2answers
96 views

Help find data sheet for micro-controller?

I found a packet of 10 micro-controller in my brother's electronics stuff. It reads "Atmel ATMEGA168A-PU". I looked at Atmel's website but could not find any such product. I need it's data sheet to ...
0
votes
1answer
1k views

8u2 programming with Flip 3.4.5

I'm attempting to update the firmware on my Arduino Mega 2560. I'm following this tutorial. However, when I try to use flip, whenever I try to find my device (from USB), it tells me that ...