Pages: [1]   Go Down
Author Topic: ATMega88  (Read 868 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello! smiley I am working on a university project and the chips we are given by the university are DIP packages of ATMega 88. I see that these chips are pin- compatible with the 328. My question is: is there any way I can stick an ATMega88 into an Arduino UNO R2 and have it work properly?
Logged

SF Bay Area (USA)
Online Online
Tesla Member
***
Karma: 137
Posts: 6805
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.  With some "moderate" level complications.
Are you sure you weren't given 88's to specifically discourage such actions?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Bet it wouldn't take much.  Looks a 168 with 1/2 the memory.
http://www.atmel.com/devices/ATMEGA88.aspx?tab=documents  ATmega88/168 datasheet
- make sure there's an entry for it in avrdude.conf - possibly copy the 168 section, update the signature bytes and memory sizes
- make a new entry in boards.txt, again copy the 168 section and tweak as needed

- update pins_arduino.h to call out the new type in a few places

Probably put pins_arduino.h in a new variants folder in the 1.0.1 directory somewhere.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.  With some "moderate" level complications.
Are you sure you weren't given 88's to specifically discourage such actions?

Absolutely, and also they are recycling some of the parts. We were explicitly prohibited from using the Arduino as a part of our final design, which is fair enough. This is a circuit design exercise as much as anything, so it really wouldn't make sense to include such an expensive component into the design. However, using it as a design tool isnt. The hardware of the Arduino definitely allows us to write different parts of the code at the same time- I'll be developing the motor drivers while someone else is handling the sensing and control, etc. Anyway, we'll research it and give it a try smiley If I see any of the magic smoke, I'll make sure to report back smiley-razz

Bet it wouldn't take much.  Looks a 168 with 1/2 the memory.
http://www.atmel.com/devices/ATMEGA88.aspx?tab=documents  ATmega88/168 datasheet
- make sure there's an entry for it in avrdude.conf - possibly copy the 168 section, update the signature bytes and memory sizes
- make a new entry in boards.txt, again copy the 168 section and tweak as needed

- update pins_arduino.h to call out the new type in a few places

Probably put pins_arduino.h in a new variants folder in the 1.0.1 directory somewhere.

I'll try this out smiley Thanks a lot smiley I probably won't need to use any of the ready libraries, though, because we have to write them from scratch anyway.

Thanks again to everyone, I was expecting a firm "NO", but apparently its more of a "maybe", which is definitely good smiley.
« Last Edit: October 10, 2012, 01:35:23 pm by MechaPrime » Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 150
Posts: 5744
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello! smiley I am working on a university project and the chips we are given by the university are DIP packages of ATMega 88. I see that these chips are pin- compatible with the 328. My question is: is there any way I can stick an ATMega88 into an Arduino UNO R2 and have it work properly?

Probably...but why? All you gain is a pretty piece of blue circuit board around the chip with some connectors on the edge.

I'd stick the chip in a breadboard and connect your Arduino Uno to it as an ISP programmer. It will work just the same and everybody will be happier.

Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Offline Offline
God Member
*****
Karma: 32
Posts: 830
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd stick the chip in a breadboard and connect your Arduino Uno to it as an ISP programmer. It will work just the same and everybody will be happier.

And you will learn a bit more about the nitty-gritty of how it works. And that's the whole point of the exercise, yeah?

Taking shortcuts you are just shortchanging yourself, in the end.

Logged

WiFi shields/Yun too expensive? Embeddedcoolness.com is now selling the RFXduino nRF24L01+ <-> TCP/IP Linux gateway: Simpler, more affordable, and even more powerful wireless Internet connectivity for *all* your Arduino projects! (nRF24L01+ shield and dev board kits available too.)

Pages: [1]   Go Up
Jump to: