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

I am interested in getting one of those Atmega168 chips.  What would I need to do?
Logged

Netherlands
Offline Offline
Sr. Member
****
Karma: 0
Posts: 414
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

paypal $15 at bigfunATverizon.net and Brainfart will get it sorted for you....
Logged

Carlsbad, CA
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

... At this point, the microcontroller chip on the Arduino board had been replaced with the 16 KByte ATmega168 and everything but the ICSP port had been disconnected. The Arduino board itself was powered by a 7.5V 500mA power supply and the AVRISP-mkII connected the board with the Mac's USB port.

On the software side, avrdude 5.2 was installed into /usr/local/bin and the ATmega168 boot-loader was made available here /AT168.hex

Burning and Fuses
Burning a new boot loader is a three-step process: unlocking the boot loader segment, uploading the new boot loader, and looking boot loader segment again.

Read the full story here: http://wolfpaulus.com/journal/embedded/arduino2.html

Logged

Netherlands
Offline Offline
Sr. Member
****
Karma: 0
Posts: 414
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
paypal $15 at bigfunATverizon.net and Brainfart will get it sorted for you....

I already received my Atmega168 from bigfun. It took 3 days from him in the USA to me in The Netherlands!

Thanks bigfun!
Logged

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

Quote

 smiley Thank you! You've put everything on one page and as a mac-only hardware owner I greatly appreciate your work.

And the same to everyone else who has posted on this thread.

(looking forward to having more space to program with!)
Logged

Hurley, NY
Offline Offline
Jr. Member
**
Karma: 0
Posts: 80
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok - I made a real page for someone to go to to buy Atmega168/8s preloaded with Arduino firmware.
http://asecular.com/arduino/
Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've tried this and got it the boot loader burned and everything appears to be working, except for one thing.
Does anybody else observe that the orange light blinks slower on boot/reset than on the atmega8? I also have motors that take servo commands to set the speed and they appear to be going slower. Though this could be all in my head.
Anybody else notice anything like this? Is there a way to measure if the atmega168 is running at the right speed? I've gone round and round with the fuses (causing me to burn out my mega8 so i can't compare it) and i haven't been able to get light to blink faster on boot. This could of course just be in the code for the 168 boot loader though. Anybody have an insight?
Logged

Hurley, NY
Offline Offline
Jr. Member
**
Karma: 0
Posts: 80
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I can assure you that you are imagining the speed difference.  I have used Atmega8s and Atmega168s in the same socket with the same circuitry and have never seen speed differences when executing identical programs, some of which do nothing but record the time, iterate through thousands of loops, and then record the time again.  

Of course, if you have the fuse settings set wrong, it's possible to, say, have the Atmega168 cranking along at only 1MHz, but in those cases its serial port will not work with the default settings for the Arduino IDE and you'd have an objective sense of the problem instead of the subjective one you describe.
Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah, thanks for the assurance. It doesn't seem like I could slow it down the little bit that it seems with the fuses anyway.
Logged

Hurley, NY
Offline Offline
Jr. Member
**
Karma: 0
Posts: 80
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Not that this discussion should be happening here, but I did mail them.

It seems there's a downside to depending on international mail to make people happy.
Obviously, if they don't arrive then you get a refund.
« Last Edit: April 07, 2007, 04:44:36 pm by bigfun » Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I can't tell if I've had this issue the entire time I've been using a 168 or not, but at the moment, in order for the programs i download to the chip to run, I need to briefly plug in the usb cable. I can then unplug it, and after the bootloaders wait time, the program will run. It does this even with the led_blink program, so it has to do with either the bootloader or whatever happens before the bootloader. Both pressing the reset button, or reseting the power will cause it to have this problem. I've tried two different chips, tried all the bootloaders i can find. Tried uisp and avrdude. Anybody have an insight to why this is happening? I'm using the arduino on a robot that is only connected to usb to download, so it's very annoying  to have to plug it in every time i want to start it. Fuse settings i'm using are: hfuse 0xDF lfuse 0xFF efuse 0xF8 lock 0xCF
Logged

Forum Administrator
Offline Offline
Newbie
*****
Karma: 3
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

put a 100k pulldown resistor on RX and you'll be fine...

this must be the biggest FAQ about arduino.. smiley smiley

massimo
Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Wow, that did it.. Thanks
Logged

Kortrijk, Belgium
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
still waiting for my 3 atmega168 to arrive from bigfun!

they arrived this morning!!!

thanks bigfun for the kind offer to return the money or send a new batch. excellent service.

erik
Logged

Pages: 1 [2]   Go Up
Jump to: