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 Mini Pinball 02: I Choose You, PIC32! -- Episode 287
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Ben Heck Featured Content to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: pchan
  • Date Created: 27 Apr 2017 7:34 PM Date Created
  • Last Updated Last Updated: 21 Apr 2017 7:24 AM
  • Views 1304 views
  • Likes 5 likes
  • Comments 4 comments
Related
Recommended

Mini Pinball 02: I Choose You, PIC32! -- Episode 287

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

Mini Pinball Kit
Featured Bonus Content
See All Episodes

 

 

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

Ben continues rebuilding the flipper mecs to get an idea how they can work with the smaller solenoids while Felix continues working on the Teensy 3.1, a popular microcontroller based on Freescale system on a chip.  Felix is going to try and get the DAC working, the digital to analog converter, so they can get it to play music and sound effects.

 

Felix takes a Teensy 3.6 and puts it on a board attached to a smaller board containing the MOSFETs and buttons to trigger the solenoids. He mounts the Teensy 3.6 onto a larger board.  He connects an audio jack to the DAC on the Teensy. There are also two outputs on the board for the solenoids.  Felix adds two more MOSFETs to give it a total of four solenoids, headers for three buttons, and a header for the servo. The Teensy is a 3.3 V logic with a 3 V regulator on it. On the board a battery goes into a regulator and the 5 Volts is going to the Teensy.  From the Teensy he has 3 Volts going to the little board he glued on for the logic. The 16 Volts in the battery when fully charged comes into the regulator which knocks it down to 5 V.  A switch separates the 5 V from the Teensy for programming purposes.  Felix goes to work on getting the DAC working.

Ben uses bandsaws, lasers, and 3D printers to create a mock-up while Felix is works on the circuits. He uses longer flippers than before to get more motion out of smaller solenoids.  Satisfied with how the test flipper is moving the ball, he builds the other flipper and a case at the right angle so he can then hook it up to what Felix is making.

Felix is having trouble with the SD card reading while getting the DAC working so Ben gives it a look. The mini pinball is intended to be a DIY kit so they're making sure it's Arduino programmable with the Teensy 3.6.  Felix puts some potentiometers on the board so they can change the duty cycle, to PWM it. As far as PWM goes, they're going to want a full burst when you push the button, so it has the power to go up and once it's up they'll start by counting to 1/10th of a second before switching to a PWM. PWM will allow them to hold the flipper up without keeping it fully on, which could damage the coil. Ben refines the code that Felix worked on. They'll hard-code these values in for the final version, potentiometers allow them to test quickly.  They blink an LED at full kernel speed and divide by 2 to determine the actual frequency with interpretation and wiring.  They pulse the LED, look at it in the oscilloscope, and use that to divide up the actual values they need.

Working in Autodesk Fusion 360, Ben goes to work on redesigning the flipper. He designs these flippers with a 15 degree slope (instead of the standard 30) to make the game easier. Felix continues troubleshooting audio on the Teensy 3.6. The newest Teensy uses the full 4 bits of the SD card, whereas older libraries only used 1 bit SPI mode.

  • hack
  • pic32!
  • questions_communityfeedback
  • heck
  • ben
  • tbhs_ep
  • episode 287: mini pinball 02: i choose you
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • DAB
    DAB over 8 years ago +1
    Great show. I like to see all of the details and failures. They show normal issues when you try to rush through a build. I can't wait to see the final kit. DAB
  • grahambest
    grahambest over 8 years ago

    Please look at the mechanics for the mini playfield in Stern's Family Guy/Shrek.

    Family Guy Stewie Mini Playfield - Complete Assembly: PinballLife.com

     

    They're using the same 5/8 ball, and have already solved the same problems you've encountered. My concern is that by changing the flipper angle from 30 to 15 degrees that you won't be able to execute a proper bounce pass.

     

    There's other ways of making the table easier, like an optional post between the flippers.

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

    Sorry, I just have realized, that the PciManager library used by SoftTimer, I have recommended, will not work on Teensy. This means, de-bouncing definitely will not work out of the box.

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

    Why don't you use a timer library for timing the PWM and the bouncing? I would recommend you the "Arduino SoftTimer" library, as I believe it can do a decent job in time-sensitive situations like this, (and not just because I have have wrote this library image).

    Cheers,

    Balazs

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

    Great show.

     

    I like to see all of the details and failures.

    They show normal issues when you try to rush through a build.

     

    I can't wait to see the final kit.

     

    DAB

    • 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