I am getting ready to start working on a project that will require the least parts (minimal circuit design).. and have very little room. (everything is SMD components)
that being said.. the choice of using a coin cell battery to directly power an Arduino board with bootloader for 3.3v and internal 8MHz clock was made.
I've played around with the schematic and pcb design a bit in Eagle... and getting closer to a finished/acceptable layout.
before I posted things for a review.. and sent out for a PCB'/parts..etc..
I order some breadboard equivalent parts (328P dip.. resistors, caps, leds..etc).. everything to mimic the projects SD parts on a breadboard for prototyping..
and mainly because I have never built a standalone Arduino using 3.3v and internal 8MHz clock..
(breadboard Arduinos using 5v & 16MHz crystals I 'have' done though)..
I have read so many different tuts and post on this.. Im confused..
first.. I read that the ATMega 328P chips can be run down to 1.8v-5v in the datasheet...
Does this mean a coin cell battery that only has 3.0v will work.. if I have an Arduino set-up for 3.3v @ 8MHz?
Since the battery source I plan on using is well within the 1.8v-5v threshold... (and room is so tight).. there is no vReg on board..I'll have some caps to couple it.. but other than that.. just battery 3.0v to chip. (I believe most coin cells are 3.0v thats all.. I think they 'do' make 3.3/3.6v ones though if it is NEEDED)
So Im here to get some concrete info on the best way..
1.) Using Arduino Duemilanove 2009 board
2.) Using Arduino IDE (v.23..but I have 1.0 installed)
is it best to try and use the IDE? Arduino as ISP? ...or does Optiloader sketch 'also' do 3.3v @ internal 8MHz clock set-up?
** I have used Optiloader sketch in the past to loaded to my Arduino 2009 board.. wire up my custom boards.. and Optiloader just 'does its thang'.... when I see fuse settings set back.. I know done/ok..
I have NO CLUE how to go about to any sort of settings or special bootloader 'choices' with Optiloader? (if its even possible)
I have read that 328P chips come set-up as 3.3v & 8MHz ready from factory? but then have read all sorts of threads where things didnt/dont work as planned (or ever...sometimes they manage a bootloader..but cant upload sketches?) LOL I plan on using an 'FTDI' cable (RX/TX) to upload my sketches in the end.
- Do both the DIP and TQFP chips come this way?
- Do I need to have a crystal setup/installed INITIALLY to burn a bootloader? (3.3v/8MHz bootloader is target)
- Do I need to power the chip from the Arduino 2009 board from the 5v? or the 3.3v? when flashing bootloader?
Layout is minimal deisgn, with RESET/DTR pins broken out along with ICSP and SERIAL pads broken out only...
resistor on reset pin,
cap on DTR..
and caps on the VCC1, VCC2, AVCC & AREF pins..
cap on +3v & GND lines for the micro SD socket..
couple small SMD leds with matching resistors
all of this on a small breadboard to mimic the final set-up..
in the end the tiny pcbs will be assembled and the bootloader flashed.. and the sketch uploaded all done on the finished pcb..etc
so Im trying to walk myself through any hiccups or things i need to know ahead of time.
Approach A: (Arduino IDE/Arduino as ISP)
-
Open IDE
-
Tools >> Board >> Arduino Duemilanove 2009
-
Tools >> Serial Port >> (choose correct one)
-
Upload the ArduinoISP sketch (Files >> Examples >> Arduino ISP)
-
Wire up my 'target' board that is just what is outlined above.. (no vReg, no Crystal/caps..just a few coupling caps on some pins and the battery input lines..)
-
This step Im a bit confused.. I have read I am to go to: Tools >> Board >> and choose ""ATmega328 on a breadboard (8 MHz internal clock)".. but I dont see that anywhere in my list of choices.. I have also ready soem reccommend use Lilypad? (but im not clear if thats 3.3v & INTENRAL 8MHz clock? or what)..
-
Tools > Burn Bootloader > w/ Arduino as ISP
Approach B: (Optiloader?)
no clue if possible or how to go about doing it if it is..
thanks!!!