Address

Author Topic: Arduino questions  (Read 1713 times)

mightywombat

  • FamiLAB Member
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
Arduino questions
« on: July 05, 2013, 10:28:18 PM »
Hey guys. I have an Arduino Diecemila with an ATMega168-20PU chip. I'm interested in making standalone chips to hold programs for projects so that I don't have to consume the original board. Now, I know I can program the same kind of chip, an ATMega168 on this board but I wonder if I can program a 328 on this board? Can I even get the 168 reliably anymore? Should I get a new R3 Uno and just use that?

Sent from my phone. Please excuse my brevity or any typos.

If a cluttered desk is a sign of a cluttered mind, of what, then, is an empty desk a sign? -- Albert Einstein

ki4swy

  • FamiLAB Member
  • Full Member
  • *
  • Posts: 213
  • skill mad scientist
    • View Profile
Re: Arduino questions
« Reply #1 on: July 05, 2013, 11:18:35 PM »
you will need to get the bootloader onto the chip , then you can do whatever you want without the board :)

http://arduino.cc/en/Tutorial/ArduinoToBreadboard

only caveat is, you have to have a arduino with a 328 as the 168 can't handle the avrisp sketch. ( basicailly its a sketch the will upload the bootloader to another avr )

"Good engineers keep thick authoritative books on their shelf. Not for their own reference, but to throw at people who ask stupid questions. Hoping a small fragment of knowledge will osmotically transfer with each cranial impact." - eeguru

If it runs on electricity, i have it :)

mightywombat

  • FamiLAB Member
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
Re: Arduino questions
« Reply #2 on: July 05, 2013, 11:26:18 PM »
Ok, so I'm guessing I can't just swap the 168 on my Diecimila for a 328 and then just go from there. Sounds like the best thing to do is get an Uno and the programming shield they sell and a handful of bare 328 chips and just go from there.

Sent from my phone. Please excuse my brevity or any typos.

If a cluttered desk is a sign of a cluttered mind, of what, then, is an empty desk a sign? -- Albert Einstein

ki4swy

  • FamiLAB Member
  • Full Member
  • *
  • Posts: 213
  • skill mad scientist
    • View Profile
Re: Arduino questions
« Reply #3 on: July 05, 2013, 11:30:11 PM »
i maybe able to program the 328's for you, i think they will drop in place of the 168'


"Good engineers keep thick authoritative books on their shelf. Not for their own reference, but to throw at people who ask stupid questions. Hoping a small fragment of knowledge will osmotically transfer with each cranial impact." - eeguru

If it runs on electricity, i have it :)

ki4swy

  • FamiLAB Member
  • Full Member
  • *
  • Posts: 213
  • skill mad scientist
    • View Profile
Re: Arduino questions
« Reply #4 on: July 05, 2013, 11:32:52 PM »
ok, does look like the 328 IS a drop in replacement for the 168.. i don't think i even have an arduino with a 168..

"Good engineers keep thick authoritative books on their shelf. Not for their own reference, but to throw at people who ask stupid questions. Hoping a small fragment of knowledge will osmotically transfer with each cranial impact." - eeguru

If it runs on electricity, i have it :)

bethjaneway

  • FamiLAB Member
  • Sr. Member
  • *
  • Posts: 331
    • View Profile
Re: Arduino questions
« Reply #5 on: July 06, 2013, 01:30:52 AM »
Here is another breadboard Arduino tutorial, looks like they used a 168. http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard
Note: To improve mood, administer chocolate.

bethjaneway

  • FamiLAB Member
  • Sr. Member
  • *
  • Posts: 331
    • View Profile
Re: Arduino questions
« Reply #6 on: July 06, 2013, 01:35:20 AM »
Uno is pretty cheap though. Seems like some sources won't specify whether you're getting a DIP or SMT, better to check.
Note: To improve mood, administer chocolate.

mightywombat

  • FamiLAB Member
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
Re: Arduino questions
« Reply #7 on: July 06, 2013, 09:26:42 AM »
Well, if the 328 is a drop in replacement for the 168 then I should be able to just buy a 328 pre-loaded with a bootloader and swap them out. Then I can use the Diecimila with the 328 to program other chips and I'll have a 168 to play with as a stand alone.

Sent from my phone. I love living in the future.

If a cluttered desk is a sign of a cluttered mind, of what, then, is an empty desk a sign? -- Albert Einstein

willasaywhat

  • Administrator
  • Hero Member
  • *****
  • Posts: 987
    • View Profile
Re: Arduino questions
« Reply #8 on: July 15, 2013, 09:45:13 AM »
I can confirm this. I upgraded my Duemilanove to a 328. I have an AVR programmer if you accidentally brick something (so long as it wasn't a perma fuse/lock bit thing).

For smaller things, I use the Attiny45/85 and Attiny2313/4313 chips. The 4313 are quirky, just FYI. The small 45's are fun to tinker with. You can program them all* with the Arduino IDE and another Arduino.