element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
Ben Heck Featured Content
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • Ben Heck Featured Content
  • More
  • Cancel
Ben Heck Featured Content
Documents Logic Gate Board Game 01: Project Planning -- Episode 282
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Ben Heck Featured Content requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: pchan
  • Date Created: 23 Mar 2017 7:57 PM Date Created
  • Last Updated Last Updated: 17 Mar 2017 8:24 AM
  • Views 2798 views
  • Likes 4 likes
  • Comments 24 comments
Related
Recommended

Logic Gate Board Game 01: Project Planning -- Episode 282

image

element14's The Ben Heck Show

Join the Ben Heck team every week for amazing hacks! Watch them build and mod community-inspired projects using electronics!

Back to The Ben Heck Show homepage image

Logic Gate Board Game
Featured Bonus Content
See All Episodes

 

 

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

The Ben Heck Team begin mapping out the Logic Gate Game by considering its purpose, areas for improvement, reducing costs to build to scale, and materials to be used.  Ben uses a PIC microcontroller with plenty of I/O, wires up a breadboard, and uses ChipKit to quickly roll out code.  The team needs your help deciding on an LCD screen and a microcontroller with enough IO to connect with all the plugs!

 

Ben and Karen begin by mapping out a plan for their prototype using a diagram from a previous build.  They get rid of FLIP-FLOP, COUNTER, NAND, and NOR and keep AND, OR, XOR, and NOT. They can make NAND and NOR using the NOT gates. Each game set will come with 10-20 jumper wires to keep costs reasonable.  Ben and Karen offer different perspectives on how best to set up a learning game and who their target audience will be.

Next, it’s time to Ben and Felix to make a test circuit. Ben takes out a PIC32 starter kit with plenty of IO on it.  You program these with Microchip’s MPLB X IDE which can be found online. If they’re able to find a microcontroller with enough I/O they could conceivably simulate all the logic gates.  The other option would be to use an external I/O expander.  The idea is to use a line of female headers and another line of male headers to crudely simulate their logic gate connections and then trying to do a state machine loop MPlab to get it to simulate what they want.

Before going for it with MPlab, Ben first uses the Arduino ChipKit IDE to make things easier so he can roll out a quick example.  The ChipKit uses a PIC32MX795F512L which has plenty of I/O to test.  Ben wires up the breadboard and writes some code.  They’re writing the logic gates in code instead of using IC’s.

  • episode 282: logic board game 01: project planning
  • hack
  • logic_gate
  • logic_board_game
  • heck
  • ben
  • logic_gate_board_game
  • stem projects
  • tbhs_ep
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • beacon_dave
    beacon_dave over 8 years ago +4
    makerkaren - A compromise might be to make the magnetic connectors stackable so as to be able to bus the connectors together that way. (A bit like the stackable banana plugs from school physics.) Alternatively…
  • COMPACT
    COMPACT over 8 years ago +2
    Back in 1971 I learned digital logic at Infants school (6-7 years old) using nothing more than; A pair of Scissors, some cards, and Knitting needles. And Set theory using; a few cane hoops and wooden blocks…
  • chdabre
    chdabre over 8 years ago +1
    Hey Guys, I had a crazy idea about the gate layout: Instead of using a number of fixed gates printed on the board, you could try a modular approach with multiple small lcd displays (like the old cheap…
  • COMPACT
    COMPACT over 8 years ago in reply to dougw

    For magnetic connections to work you need to ensure that the contacts are clean for a reliable connection.

     

    I'd just use small clusters of machine pin sockets and 24AWG single core/strand insulated wire for interconnection.

    The wire is cheap and is easily replaced.

    The dexterity required to plug them in is good for the development of kids skills.

     

    PSoC 4 Rocks for $1 you get 36 I/O pins and some CPLD capabilities (including Shift registers and LUTs) !

    (Why not cascade two for 70 user I/Os)

     

    Using buffered LED drivers is the way to go if the price point permits it.

     

    The finished product must be Pb (Lead) Free and devoid of any dangerous residues and chemicals.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 8 years ago

    Staying with the magnet idea...

    • simply press fit magnets into a PCB at every input and output node
    • they can be glued on the bottom as long as electrical contact is retained
    • the SMT ICs can be on the underside, leaving the top clear for graphic gates to be silk screened
    • to interconnect, simply use steel wire, preferably insulated except for small segments at each end (paper clips come to mind)
    • this allows multiple low cost connections to each node
    • I like Gord Goebel's suggestion of current limiting resistors on outputs
    • the logic trainers I've seen in the past have had LEDs at all inputs and outputs, this could work if LED current is kept at .5 mA
    • the system will need some switches and pushbuttons to initiate or select sequences
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mribble
    mribble over 8 years ago

    Consider a shift in register instead of a high pin count micro (such as CD4021B).

     

    Using shift out and shift in registers with a big pcb means adding things like extra LEDs or detecting which ports have plugs wouldn't be that expensive.  These might be nice additions to help users find bugs or get them started (just connect the 2 flashing ports).

     

    You could also consider making this a headless IoT device using something like esp8266 or nrf52x.  There are some advantages to using a person's phone rather than having your own screen on the device.  But the obvious big downside is you need to write the mobile app.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • emiel682
    emiel682 over 8 years ago

    Hi  just seen the video and got a suggestion

     

    use a I2C controller for the LCD display than you have to use only 2 I/O ports for controlling the display.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • gordiegii
    gordiegii over 8 years ago in reply to COMPACT

    Sorry I thought you were referring to the argument between Ben and Karen over buses for single signals going to multiple gate inputs.

    So each input and each output would have an I2C module monitoring it or driving it? Or just a small/inexpensive MCU with I2C I/O expanders instead of a huge, powerful and expensive MCU just because it has lots of native I/Os?

     

    PS could you tell me more about learning logic with cards, scissors and needles?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • COMPACT
    COMPACT over 8 years ago in reply to gordiegii

    The buses I mention are not for the participant of the game but a way to wire up the components.

    I use buses often to reduce wire count.

    I2C, 1-Wire, Ethernet are schemes that only require two wires instead of a rats nest.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • gordiegii
    gordiegii over 8 years ago in reply to COMPACT

    You made your own McBee cards? That's very cool.

    I don't suppose you have any pictures, do you?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • gordiegii
    gordiegii over 8 years ago

    You don't need buses for complicated circuits, just two connectors at each input will let you daisy-chain sources to any number of inputs.

    The jumpers should be directional (an input end and an output end) and the connectors at each gate input should be one input and one output (pass-through) so you can't connect two sources to the same input (and thus to each other) to prevent damage to outputs. If you go with stackable connectors then each cable should only be stackable at one end. The end that goes to an input should only be able to connect to an input and only accept an output connector on top. The end that goes to an output should only be able to connect to an output or the back of an input connector.

    e.g. The output contact of each gate could be a magnet in a recess and the input contacts could be a bit of iron that sticks out. Then the output connector could have an iron bump that goes into the recess and touches output contact and the input connector could be a doughnut with a magnet in the middle of the hole. So an input connector would snap onto and input contact (either way) and leave a magnetic recess on top that the output connector could snap into to daisy-chain the signal.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • gordiegii
    gordiegii over 8 years ago in reply to tm14

    I was thinking of a pegboard cross-point switch but it has some potential problems and I realized your idea of slide switches has a lot of potential, especially if there is a way to make it look like a circuit diagram.

     

    The way I see it, there would be a slide switch for each input to select the signal source.  Sources could be one of the four data inputs or any of the gates outputs.

    Of course the four output lights would each have a slide (or rotary) switch to select its source.

    Multiple gate inputs could connect to the same source by setting them to the same position, and it's impossible to connect outputs to each other.

     

    The slide switches could be purchased but it would probably be cheaper to make 3D printed bits that slide across pads on the circuit board (built into the case) and the number of positions wouldn't be limited to what's available in stores. Of course you could use a bunch of slide pots but you would need a bunch of analog inputs. Or, digressing even further from the visceral jumper wire concept, you could have a bunch of LEDs (charlie-plexed of course) to indicate the position of virtual slide switches which could all be adjusted with just two rotary encoders.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • COMPACT
    COMPACT over 8 years ago in reply to COMPACT

    If space is not a constraint then you could use premade modular connectors as used for Ethernet and phone wiring.

    It's a great upcycle/reuse idea.

     

    Also Springs as connectors also spring to mind. image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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