Go Down

Topic: stand alone (Read 1 time) previous topic - next topic

johneb

I have put in a sketch to the 328 using my UNO and now want to remove this and put it into a stand alone project. Can anyone tell me what I need to connect on the 328 one the stand alone board please

John

spycatcher2k

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

johneb

Hi Drew

Thanks for the reply. It think all that seems a bit complicated, all I want is what to wire up besides +5v,Gnd, input  and otput pins. Do I need the crystal? what other pins need to be connected
John

spycatcher2k

+5v - pins 7 and 20
Gnd - pins 8 and 22

Crystal to pins 9 and 10 (with 22pf caps) OR resinator

pin 1 to 5V through a 10k resistor

and your done  :)


Drew.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

johneb

Hi Drew

Thanks will try this

John

johnwasser

It is possible to use the internal 8MHz clock instead of a crystal.  The fuse settings will be different to enable the internal clock.  I found this set of settings that is supposed to be put into boards.txt to allow installing a bootloader and sketches on an ATmega328 without a crystal or resonator.  I have not tried it myself.

##############################################################

atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock)

atmega328bb.upload.protocol=stk500
atmega328bb.upload.maximum_size=30720
atmega328bb.upload.speed=57600

atmega328bb.bootloader.low_fuses=0xE2
atmega328bb.bootloader.high_fuses=0xD9
atmega328bb.bootloader.extended_fuses=0x07
atmega328bb.bootloader.path=arduino:atmega
atmega328bb.bootloader.file=ATmegaBOOT_168_pro_8MHz.hex
atmega328bb.bootloader.unlock_bits=0x3F
atmega328bb.bootloader.lock_bits=0x0F

atmega328bb.build.mcu=atmega328p
atmega328bb.build.f_cpu=8000000L
atmega328bb.build.core=arduino:arduino
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

CrossRoads

Schematic for reply #3, and pic of same installed with female header for making connections



Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

johneb

Thanks for the reply

John

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy