Author Topic: Arduino 8 bit counter LED sketch problem(s) - SOLVED  (Read 3792 times)

0 Members and 1 Guest are viewing this topic.

Offline Electro FanTopic starter

  • Super Contributor
  • ***
  • Posts: 3283
Arduino 8 bit counter LED sketch problem(s) - SOLVED
« on: November 02, 2015, 12:15:57 am »
First I had a software problem.  Solved that but now have a hardware problem

http://www.electroschematics.com/9809/arduino-8-bit-binary-led/

The sketch loads fine but the counter doesn't run - no LED action whatsoever. 

As shown in the image I didn't exactly follow the breadboard instructions but I can't see what the problem is.  One symptom is that the resistor near the button is somewhat warmer than I would have expected.

I'm betting it's something pretty obvious and goofy.... :palm:

Any suggestions?  Thanks!

Update:  I turned the button 180 degrees and now the first LED lights but the button doesn't seem to advance the counter.  The resistor near the button is still overly warm.  (I know I used 200 ohm resistors instead of 220 ohms but I'm doubting that is the issue.)  I'll try substituting another button just in case it's a button defect.

Update:  tried another button and noticed that when I plugged in the new button the LED counter advanced - but pressing the button didn't advance the counter further.  So I removed the button and just manually jumpered the on-off with a wire touch to the breadboard and it advances the counter.  Pretty sure I just have a wiring issue with the button.

Update:  figured out how to rewire the button.  Counter is advancing as intended.   :-+
« Last Edit: November 03, 2015, 06:00:17 pm by Electro Fan »
 

Offline alsetalokin4017

  • Super Contributor
  • ***
  • Posts: 2055
  • Country: us
Re: Arduino 8 bit counter LED sketch problem(s) - SOLVED
« Reply #1 on: November 02, 2015, 01:29:25 am »
Was your button rotated 90 degrees from where it should be, when you had the problem? That would put the resistor in series between the positive and negative rails, thus accounting for the heating.
The easiest person to fool is yourself. -- Richard Feynman
 

Offline alsetalokin4017

  • Super Contributor
  • ***
  • Posts: 2055
  • Country: us
Re: Arduino 8 bit counter LED sketch problem(s) - NOT Solved
« Reply #2 on: November 02, 2015, 01:36:35 am »
From the symptoms you describe it really sounds like the switch has leads slightly too short to make solid reliable contact in the breadboard.
Can you try soldering some solid wire to them? Say about 1cm. Resistor leads off-cuts are useful for this.

That wouldn't cause the resistor to heat up. Only connecting the resistor directly across the rails will do that. Both leads on each side of the button are connected together. So if the button was in 90 degrees from the correct orientation, the two leads on the side closest to the Uno would directly connect the resistor to the negative rail, no matter if button is pressed or not.
« Last Edit: November 02, 2015, 01:38:36 am by alsetalokin4017 »
The easiest person to fool is yourself. -- Richard Feynman
 

Offline Electro FanTopic starter

  • Super Contributor
  • ***
  • Posts: 3283
Re: Arduino 8 bit counter LED sketch problem(s) - SOLVED
« Reply #3 on: November 02, 2015, 07:43:16 am »
Was your button rotated 90 degrees from where it should be, when you had the problem? That would put the resistor in series between the positive and negative rails, thus accounting for the heating.

Yes, I think this was probably the issue.  Thx
 

Offline Electro FanTopic starter

  • Super Contributor
  • ***
  • Posts: 3283
Re: Arduino 8 bit counter LED sketch problem(s) - NOT Solved
« Reply #4 on: November 03, 2015, 05:27:17 am »
From the symptoms you describe it really sounds like the switch has leads slightly too short to make solid reliable contact in the breadboard.
Can you try soldering some solid wire to them? Say about 1cm. Resistor leads off-cuts are useful for this.

That wouldn't cause the resistor to heat up. Only connecting the resistor directly across the rails will do that. Both leads on each side of the button are connected together. So if the button was in 90 degrees from the correct orientation, the two leads on the side closest to the Uno would directly connect the resistor to the negative rail, no matter if button is pressed or not.

Agreed, but I was adressing the OP's issue with the button. I have had a similar issue with short tactile button leads.

There is also some possibility that I was getting an intermittent contact due to the short leads on the button.  Thanks for the help.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf