Questions tagged [atmega]

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.

2
votes
2answers
2k views

atmega1281 + Nokia 5110 LCD circuit works with USBtinyISP plugged in. Hangs without?

I'm building out a circuit with an ATmega 1281 MCU, some switches for input and a Nokia 5110 LCD (SPI interface) for display. I can load code on it just fine with my USBtinyISP programmer. With the ...
2
votes
1answer
7k views

How to send data through XBee using ATMega328?

I bought Seeeduino Stalker UartsBee Two XBees When I physically connect (1), (2) and the computer USB, I can receive on my computer data sent by (1) at 115200 Kbps. But when I physically disconnect ...
18
votes
5answers
84k 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
2answers
2k views

How can I disable the jtag in atmega 32 using serial programmer?

How can I disable the JTAG in the ATmega32 using a serial programmer?
4
votes
3answers
2k 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. ...
5
votes
1answer
506 views

I need some component selection help with a nixie tube AVR speedometer

I know enough to be dangerous, i can build circuits and make minor changes but i am not an expert. I put this together after looking at schematics i have found online and i need some help getting the ...
5
votes
3answers
3k views

How do magnets affect the ATMega328?

I'm building a small circuit with an arduino bootloaded ATMega328 chip. The project will be housed in a small box, and is intended to be stuck to the side of a fridge using a magnet. Everything in ...
4
votes
5answers
16k views

Three UART connections to an ATMega328?

I'm looking at the ATMega328p data sheet, and an Arduino Pin diagram, trying to determine if the chip can support three UART connections. I see that PD0 and PD1 are "USART" In and Out. So does that ...
1
vote
1answer
3k views

avrdude and atmega48pa

Can i programm the atmega48pa with avrdude? I have problems with the signature ... ...
2
votes
1answer
2k views

ATMega644PA possibly bricked by setting fuses with avrdude

I have been programming an ATMega644PA with avr-gcc and avrdude on linux for a little while with no problems. Well until I decided to change some fuses. I had been using the option for avrdude ...
2
votes
5answers
779 views

USB Host device

I am looking at creating a USB host devices to talk to a standalone printer. Basically my devices would feed out commands to the USB chip and the pritner would print it without interaction of a PC. ...
9
votes
5answers
4k 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 ...
4
votes
1answer
3k views

Simulate HDD using ATMega168

I'm going to start a new project and I wonder if the concept makes sense. (I'm not so familiar with ATA specifications to answer this by myself :)) The concept: HW design: "SATA connector on ...
10
votes
10answers
9k 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? ...
3
votes
3answers
2k views

ATMEGA168 (P/V/ 10/20 AU?) + Arduino Booloader Flashing via AVRDUDE?

I bought about 10 ATMEGA168V's (which I thought were P's) and tried to flash with TinyISP via the Arduino IDE with the arduino mini pro board selected. Well this fails for the obvious reason that the ...
8
votes
2answers
2k views

Minimum ATMega328 speed with UART

I am looking at designing a low-power project that will have an ATMega328 running at a low speed for lower power consumption. The current plan is to have the UART hooked up to a RF Link Receiver for ...
5
votes
2answers
3k views

Troubleshooting an ATMega328p clock setting

I am trying to run my ATMega at 16MHz using this crystal I set the lfuse bit to F7 (see here) The command I used to set the lfuse bit was ...
9
votes
4answers
21k views

Using a 16 MHz crystal on a ATMega328p

How would I need to set my fuse bits on a ATMega328p to use a 16MHz crystal? I tried this on my own and killed the last atmega I had. I'd like some advice this time. The crystal I am using is this ...
4
votes
1answer
2k views

Issues migrating from ATmega88 to ATmega88P, with V-USB/AVR-USB?

I'm working on a V-USB (aka AVR-USB) -based circuit running at 5V (i.e. two 3.6V Zeners across D+ & D-) and at 12MHz. I tried an ATmega88P instead of the ATmega88 chips I normally use and I can't ...
6
votes
3answers
2k 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 ...
2
votes
1answer
1k views

ATMega chips come with the Arduino bootloader

Do the Arduino Duemilanove USB Board with Atmega328 come with the Arduino bootloader?
5
votes
2answers
2k views

ATMEGA32 Jtag flash

Can you recommend an inexpensive product for flashing an in circuit (read: powered) ATMEGA32 via JTAG. I have a parallel port available on my laptop dock/port replicator, which I am guessing may be ...
7
votes
3answers
2k views

Upgrading an Arduino Duemilanove from ATMega168 to ATMega328

I have purchased an ATMega328 from SparkFun with the Arduino bootloader pre-programmed. My intention is to replace the ATMega168 I currently have in my Duemilanove. Is this as simple as swapping the ...
3
votes
5answers
995 views

ATMEGA168 Pin Mappings

Where can I find pin mappings for the ATMEGA168?