Offline
Full Member
Karma: 0
Posts: 207
|
 |
« on: August 15, 2012, 12:53:05 pm » |
Hey I just constructed a circuit where I solder a 28 pins socket and one 16MHz crystal for the circuit. I put a pull up resistor at the pin 1 too. Weird things happen is that my program sometimes work sometimes not working. Sometimes it loop for once .. Any problem ? Is it because I did not insert 2 cap at the crystal side ? Thank you 
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16485
Available for Design & Build services
|
 |
« Reply #1 on: August 15, 2012, 12:59:53 pm » |
That would be a good suspect. You should also have the Vcc pin connected to the AVcc pin, and a 0.1uF (100nF) on both of those pins going to ground.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #2 on: August 15, 2012, 01:18:50 pm » |
why is it needed ?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #3 on: August 15, 2012, 01:20:24 pm » |
I did connected the Vcc to AVcc..Just that I do not put a 100nF cap in between the Vcc and GND ><
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16485
Available for Design & Build services
|
 |
« Reply #4 on: August 15, 2012, 02:29:37 pm » |
The 100nF caps help provide power stability.
The 22pF caps allow the crystal to function.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #5 on: August 16, 2012, 09:14:17 pm » |
What will happen if I did not put the 100nF cap and 22pF cap ?
Thank you
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #7 on: August 16, 2012, 09:29:38 pm » |
Ok, I face that problem too..Hahaha..reboot sometimes. Then what is the importance of the 22pF cap ?
|
|
|
|
|
Logged
|
|
|
|
|
Chile
Offline
Edison Member
Karma: 28
Posts: 1146
Arduino rocks
|
 |
« Reply #8 on: August 16, 2012, 09:32:22 pm » |
Ok, I face that problem too..Hahaha..reboot sometimes. Then what is the importance of the 22pF cap ?
The same, it is one of the properties of a cap, but for the oscilator. In my tests, not that important compared to the cap in the power.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #9 on: August 16, 2012, 09:34:37 pm » |
So, the minimum circuit for an arduino based development board is a 16MHz crystal and the 100nF cap for power supply and pull up resistor for RESET pin ?
|
|
|
|
|
Logged
|
|
|
|
|
Chile
Offline
Edison Member
Karma: 28
Posts: 1146
Arduino rocks
|
 |
« Reply #10 on: August 16, 2012, 09:36:46 pm » |
So, the minimum circuit for an arduino based development board is a 16MHz crystal and the 100nF cap for power supply and pull up resistor for RESET pin ?
No, you can use the internal oscilator (there is a fuse). And the reset is not required. The minimum is just the cap for the supply
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #11 on: August 16, 2012, 09:38:06 pm » |
The minimum is just the cap for power supply ? Then how can I use the internal oscillator ? What setting should I change ?
|
|
|
|
|
Logged
|
|
|
|
|
Chile
Offline
Edison Member
Karma: 28
Posts: 1146
Arduino rocks
|
 |
« Reply #12 on: August 16, 2012, 09:44:41 pm » |
As I said it is a fuse, but you have to google for instructions how to set it, what value to use, etc I don't remember those.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #13 on: August 16, 2012, 09:55:32 pm » |
So, the minimum circuit for an arduino based development board is a 16MHz crystal and the 100nF cap for power supply and pull up resistor for RESET pin ?
No, you can use the internal oscilator (there is a fuse). And the reset is not required. The minimum is just the cap for the supply [/quoteWhy the reset is not required ? Thought it needs to be pulled high for normal operation ?]
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 1
Posts: 55
Arduino rocks
|
 |
« Reply #14 on: August 17, 2012, 07:35:54 am » |
The minimum is just the cap for power supply ? Then how can I use the internal oscillator ? What setting should I change ?
For avoiding the crystal, you should program the atmega as 8Mhz internal oscilator. Select arduino pro mino 8Mhz in arduino IDE as target board in order to obtain the right times.
|
|
|
|
|
Logged
|
|
|
|
|
|