Pages: [1]   Go Down
Author Topic: Examples->Digitals->Button problem  (Read 716 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For some reason, when I turn off the button it takes 2 seconds for LED to turn off at 3.3V and 4 seconds for LED to turn off at 5.0V.
Please help me understand the delay?
I use only one button like that: http://arduino.cc/en/Tutorial/Button
And connect the LED like that: http://arduino.cc/en/Tutorial/Blink
« Last Edit: February 18, 2013, 03:50:33 am by arduino187 » Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26519
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you sure you have the resistor wired in the circuit?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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

Thanks for your response.
Yup, I'm positive, there is a 330 k Ohm resistor, I even tried it without it - works the same way.  smiley-roll-sweat 
Logged

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 108
Posts: 4736
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe there is a capacitor in there somewhere.....

You link to two sketches but sounds like you have combined them. Maybe you should post the composite sketch and circuit?
Logged

The Elders of the Internet know who I am
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

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

Thanks, guys, I've figure it out.
Turns out breadboard is wired differently from what I thought. ABCDE and FGHIJ are NOT connected!
This is a very helpful image: http://www.ladyada.net/images/arduino/bbunderside.jpg
Logged

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 108
Posts: 4736
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's right, the idea is that you can insert a dip chip across the "gutter" and wire it in from both sides.

In the pic below, the two blue wires do not interfere with each other and pins opposite each other are independent.

Well done for spotting that- you were probably pulling your hair out.


* chip.JPG (25.7 KB, 232x375 - viewed 20 times.)
Logged

The Elders of the Internet know who I am
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

Pages: [1]   Go Up
Jump to: