element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Is my 74HC08 bad?  (Weird results in Make: Electronics experiment 21)
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 14 replies
  • Answers 9 answers
  • Subscribers 289 subscribers
  • Views 3956 views
  • Users 0 members are here
  • make electronics
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Is my 74HC08 bad?  (Weird results in Make: Electronics experiment 21)

opalko
opalko over 4 years ago

So I have built the "combination lock" from Charles Platt's Make: Electronics experiment 21 a couple of times now without getting it working correctly.  The schematic for the lock is below. The experiment is supposed to take a combination (pressing buttons E, F, G, H in order) to unlock the lock and provide power at the leads marked "to computer".  The buttons E, F, G, H are tied to a 74HC08 Quad AND chip with each button tied to an AND gate.  Each gate is unlocked in series by providing logical high as input from the previous button.  That is how it is supposed to work, but mine does not!  Using a logic probe, mine always has logic high on both inputs of button E so it seems to have no effect.  Pressing buttons F and G then unlock the circuit (sending high to H) which does not appear to need be pressed at all. One other weird thing is that I can occasionally start with a logical low at AND gate E if I disconnect and reconnect the green jumper tied to pin 2 on the 74HC08 from the 10K resistor to the same AND gate input, but not always.

 

I have taken the 74HC08 out and tried each AND gate separately and they all appear to work correctly independent of experiment 21.  But put it back into my circuit and logic high is always present on both inputs of the gate button E is attached to before I ever get started.  Do I just need another chip to try this with (I don't have one)?  Any help on how to troubleshoot further is appreciated!!  Note: I have removed switch A in mine as it was too much trouble to keep it pressed while troubleshooting and just substituted a jumper.

 

Regards,
Robert Opalko

Schematic

Circuit as built

Platt's image of how to build circuit

  • Sign in to reply
  • Cancel

Top Replies

  • jw0752
    jw0752 over 4 years ago +2 suggested
    Hi Robert, Check the voltage to ground on both sides of the 10K resistor that ties pin one to ground. This resistor should pull pin one low unless the E button is pushed. If it doesn't you probably have…
  • DAB
    DAB over 4 years ago +2 suggested
    The HC logic is very sensitive to levels so make sure each input has a pull up resistor so that they have a well defined state transition. It looked to me like there were some inputs directly attached…
  • dougw
    dougw over 4 years ago +2 suggested
    Logic gates can be unpredictable or undefined as power is applied to the circuit. If the gate output is even momentarily high during power up, it will latch up the gate in the high state. Pushing switch…
Parents
  • DAB
    0 DAB over 4 years ago

    The HC logic is very sensitive to levels so make sure each input has a pull up resistor so that they have a well defined state transition.

     

    It looked to me like there were some inputs directly attached to outputs, which is fine for TTL circuits, but dangerous for HC logic.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • opalko
    0 opalko over 4 years ago in reply to DAB

    Ok I am going to try this..would it explain the diode issue I mentioned above?
    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jw0752
    0 jw0752 over 4 years ago in reply to opalko

    Hi Again,

     

    One more thing. The fact that the diode  between 4 and 6 does not raise pin 4 leads me to suspect that there may be some coating on the lead of the resistor between 1 and 7 that is not allowing it to make good contact to the pins in the bread board. Remove this resistor and use a little sand paper to clean the lead ends. Also make sure there is enough length to the leads so they can go deep enough into the bread board to make good contact.

     

    John

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • jw0752
    0 jw0752 over 4 years ago in reply to opalko

    Hi Again,

     

    One more thing. The fact that the diode  between 4 and 6 does not raise pin 4 leads me to suspect that there may be some coating on the lead of the resistor between 1 and 7 that is not allowing it to make good contact to the pins in the bread board. Remove this resistor and use a little sand paper to clean the lead ends. Also make sure there is enough length to the leads so they can go deep enough into the bread board to make good contact.

     

    John

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube