caramoan tour package

caramoan tour package

Author Topic: counting backwards problem...  (Read 790 times)

Offline yhangel_07

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 2
counting backwards problem...
« on: May 01, 2012, 03:12:48 PM »
i have here yung schem na ginawa ko for poiting system... nilagyan ko cia 2 button for plus 1 and minus 1.. prob ko po.. pag 00 cia.. the press -1 button... nagiging nine.. panu ko po kaya maalis yun without removing yung -1 button nya pag may points na tlga??


Philippine Electronics Forum

counting backwards problem...
« on: May 01, 2012, 03:12:48 PM »

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1882
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: counting backwards problem...
« Reply #1 on: May 01, 2012, 05:24:28 PM »
Detect mo ang 00 condition and disable -1 when detected.
"Set your mind free!"

Philippine Electronics Forum

Re: counting backwards problem...
« Reply #1 on: May 01, 2012, 05:24:28 PM »

Offline kunimitzu

  • Size AAA Battery
  • ***
  • Posts: 51
  • Pogi/Ganda Points: 4
Re: counting backwards problem...
« Reply #2 on: May 01, 2012, 07:13:29 PM »
sa tingin ko po baka pwede maglagay ka ng AND gate sa output ng U7, un ung 1st input ng AND gate, 2nd input ay galing sa pin 13(TCD) ng U3, since pin 13 is low kapag ang count is 00... kaya kapag 00 ang count, ang 2nd input ng AND gate ay low(0) kaya kahit 1 ang output(1st input of AND gate) ng U7 since 0 ang 2nd input, 0 din ang output ng AND gate...  :)

Philippine Electronics Forum

Re: counting backwards problem...
« Reply #2 on: May 01, 2012, 07:13:29 PM »

Offline yhangel_07

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 2
Re: counting backwards problem...
« Reply #3 on: May 11, 2012, 07:40:11 PM »
not working po..

ang naisip ko sr xor.. para khit mgthrow ng 1 yung negative switch 0 padin ang output.. kaso d ko malaman kung san manggagaling yung detection ng isa pang 1 sa 0-0 display...

Philippine Electronics Forum

Re: counting backwards problem...
« Reply #3 on: May 11, 2012, 07:40:11 PM »

Offline yhangel_07

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 2
Re: counting backwards problem...
« Reply #4 on: May 11, 2012, 07:57:17 PM »
haha.. ang hindi ko po mafigure out.. pano nadedetect na true kapag ang display is zero??

Philippine Electronics Forum

Re: counting backwards problem...
« Reply #4 on: May 11, 2012, 07:57:17 PM »

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1882
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: counting backwards problem...
« Reply #5 on: May 11, 2012, 09:06:26 PM »
haha.. ang hindi ko po mafigure out.. pano nadedetect na true kapag ang display is zero??

Sinabi na ni kunimitzu kung papaano.

since pin 13 is low kapag ang count is 00

Ano pa ang kailangan mo? Na gawing high kung ang count ay 00? Eh i-daan mo sa isang 7404 inverter ang output ng pin 13.
"Set your mind free!"

Offline yhangel_07

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 2
Re: counting backwards problem...
« Reply #6 on: May 11, 2012, 09:34:20 PM »
eh ang prob nga po kc sir sa abanggit nya po,, pag may carry out na po.. hindi na pwedeng i-borrow..

9.. 8.. 7.. 6.. possible...
but if first digit is 0, hindi na ng bborow sa 2nd digit po

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1882
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: counting backwards problem...
« Reply #7 on: May 11, 2012, 09:59:29 PM »
Di ko maintindihan. Post the schematics and explain some more.
"Set your mind free!"

Offline zrehtiek/keitherz

  • Lead Acid Battery
  • *******
  • Posts: 772
  • Pogi/Ganda Points: 45
  • Gender: Male
  • PhilRoboKit Anito
Re: counting backwards problem...
« Reply #8 on: May 12, 2012, 08:08:04 AM »
Di ko maintindihan. Post the schematics and explain some more.
sir, i think he means ang nangyayari parang:
23, 22, 21, 20, 29, 28, ....
tens digit doesn't change.

Offline yhangel_07

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 2
Re: counting backwards problem...
« Reply #9 on: May 12, 2012, 09:47:06 AM »
hindi po sir... magstop na cia magcount backwards pag 0 na ang first digit..

23, 22, 21, 20... STOP

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1882
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: counting backwards problem...
« Reply #10 on: May 12, 2012, 10:07:15 AM »
Quote
hindi po sir... magstop na cia magcount backwards pag 0 na ang first digit..

Because you are probably using the TCD (pin 13) of the "first" (ones) digit. You should be using the TCD (pin 13) of the tens digit which (because of the cascading) goes low only when the count is 00.

"Set your mind free!"

Offline yhangel_07

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 2
Re: counting backwards problem...
« Reply #11 on: May 12, 2012, 10:31:45 AM »
sir.. tama nmn mga connections pero nadadamay yung 2nd digit pag ngccount-up po ako.. ngccount down cia..


Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1882
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: counting backwards problem...
« Reply #12 on: May 12, 2012, 10:47:14 AM »
Dapat NAND gate ang gamitin mo sa U6A imbes AND gate. Oscillator ang mangyayari pag AND gate ang pag feedback.

And imbes sa U7 ang connection ng pin 2 U6A, sa pin 3 U5A mo dapat i-connect. This is to reverse the inversion of using a NAND gate instead of an AND gate. BTW, may mali sa debounce circuit mo using S-R flip-flops. Dapat SPDT switch imbes pushbutton. It's a wonder gumagana yan.

This why I wanted you to post a full schematic. May mga subtle things that can't be explained by words alone.

"Set your mind free!"

Offline yhangel_07

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 2
Re: counting backwards problem...
« Reply #13 on: May 12, 2012, 11:12:54 AM »
sir.. thank po! your the best.. matanong lang sir.. bakit po magkaiba ng output ang U5:A and U7? eh db po nka criss-cross lang naman po??...

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1882
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: counting backwards problem...
« Reply #14 on: May 12, 2012, 11:38:56 AM »
One output is high while the other is low. Bale complementary dapat ang outputs. Except that in your schematic, pin 2 of U5A is always ground and so pin 3 of U5A is always high. So U7 lang ang umaandar.
"Set your mind free!"

Offline yhangel_07

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 2
Re: counting backwards problem...
« Reply #15 on: May 12, 2012, 11:51:03 AM »
ahh kaya po pala dapat spdt ang gmit.. thanks po ulit:)

Philippine Electronics Forum

Re: counting backwards problem...
« Reply #15 on: May 12, 2012, 11:51:03 AM »

 

Privacy Policy

Contact Us: elabph@yahoo.com