Pages: [1]   Go Down
Author Topic: how to run bootloaded microcontroller with sketch without arduino board?  (Read 452 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All,

I have finally managed to bootload Atmega 328p-pu controller and uploaded the "blink" sketch and its working with arduino uno (Led on pin 13 blinks). 
i want to now take out that microcontroller and use it as a standalone device .......
So i removed the chip from arduino and placed it on a breadboard.
i then connected a 10 k risistance with pin 1 to +5v.
i then connected the vcc to avcc(pin7 to pin 20) and connected to +5v
ground to ground.
then i connected 16mhz crystal to pin 9 and  10. and connected 22pf cap .(to ground)
i then connected the led to pin no 19.
(all the pins connected with the help of pin out guide of atmega 328)

It does not work..... please help me out... correct me where ever i m wrong.... or tell me the additional steps,.......

thanks in advance
Logged

Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You are making a stand alone Arduino.
http://arduino.cc/en/Main/Standalone
Logged

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

thanks for the quick reply....

i know that i m making standalone arduino but i cant run a simple program by doing so....
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27144
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

Your LED may be backwards - and don't forget a current limit resistor, something in the 180 (bright!) to 1K (dimmer) range. The sketch expects the LED anode on 19, then cathode to resistor, and resistor to Gnd.
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: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the reply "Crossroads"

I did that check to ........
( by the way thanks .......i finally bootloaded Atmega 328 because of you..... you guided somone to nick gammon's atmega bootloader program page snd i followed.... thanks again )

sorry for these stupid questions that i ask.... but i am in the process of learning......

i double checked everything....
 i even tried the chip back on arduino uno to see if it got damaged accidently ...... but it works perfectly....

i dont know what to do .... where should i start now .... i checked and duble checked the connections. still scratching my head smiley-sad
Logged

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

Any thoughts?
Logged

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

thanks alot for the hints you people provide.....
almost solved my problem...
just programmed the atmega 328 on internal clock and it works fine....
when i program it in 16mhz configuration then it is not working as it should ( I installed the clock to pin 9 , 10 with two 22 pf capacitors...)

i wonder i changed the crystals also to be sure that they are working as they should..... but still cant get them to work...
Logged

Pages: [1]   Go Up
Jump to: