Mini Pinball 06: Mechs + Microcontrollers

Поділитися
Вставка
  • Опубліковано 7 вер 2017
  • In a previous episode, the team worked on some mechanisms for their mini pinball machine such as target pop bumpers and Felix began wiring another revision of the prototype motherboard. There’s going to be two spots on the board for the Arduino and Teensy microcontrollers. Visit the Ben Heck page to Win Ben’s Raspberry Bitscope Mod: bit.ly/2wenrdf
    Visit the Ben Heck page: bit.ly/2gOhC03
    Learn more about Weidmuller - bit.ly/2eLsR97
    Felix gives an update on the progress of the pinball board. He goes over the headers for the Arduino and headers for the Teensy, the shift registers, the LED Driver, the MOSFETs, the amplifier, the screen, the regulator on/off switch, and the battery. There are also two headers for the inputs and the outputs to drive the lights, as well as, four headers to drive the solenoids. One more thing they will need to add are headers to drive the servos on this board. They will need to make sure that whatever mechanisms Ben comes up with will be supported by the main board. Felix runs various tests on the board and shows you what that looks like on the Arduino IDE.
    Ben reprinted the disk for the pop bumper. The conductivity the ring isn’t great to begin with but as long as there’s some conductivity the MCU should be able to detect the closed switch. After he’s unable to get a reading it becomes clear he’ll need to rewire and solder the wire to the ring. Ben goes to work putting the pieces together. He points out the mounting points for the pop bumper and the solenoid.
    While Ben is working on that, Felix fires up a switch example. He’s attached the solenoid and the two contacts to the board. There’s a bearing that appears to be working. It looks like it makes efficient contact and it can trigger the microcontroller to send a signal to actuate the solenoid.
    Servos are easy to use with the Arduino environment so Ben is using one of them for the ball loading mechanism. He points out the playfield and the positioning of it on the table. He then cuts a test portion of the lower playfield on which to mount the ball loading prototype. Ben puts a switch in place that tells you when the ball is drained. Servos keep pretty good track of their own position but a HOME switch will help dial things in even more. Once Ben figures out where to put the home switch they will be able to wire it up to Felix’s example board.
    Felix shows a hello world example for the LCD to confirm all the connections are correct. It’s a simple proof of concept to show that the LCD is working. After all that is in order, he is joined by Ben who hooks the mechanisms he’s constructed to Felix’s test board. Using switch case to make a State Machine is a good way to keep track of what your code is doing without staying stick in while(x) loops. Ben does some coding with Felix and demonstrates how you can use case statements to make programs within programs.
  • Наука та технологія

КОМЕНТАРІ • 63

  • @Jmaca32
    @Jmaca32 7 років тому +16

    Jeez Felix is ripped

  • @TheScarvig
    @TheScarvig 7 років тому +7

    i would like to mention that you should have used enums or defines in combination with your switch statement for better readability and easier programming. that way you dont have to remember which state is which number but can just put in the defined statename as identifier for the state youre in

  • @VacFink
    @VacFink 6 років тому

    This is solid TBHS, great problem solving using mechanical design, software, and board making. Just a bonus its pinball.

  • @pesterenan
    @pesterenan 7 років тому

    That Arduino bit was so much enjoyable to watch! I love when coding and mechanic things go side by side ^_^

  • @reasonablebeing5392
    @reasonablebeing5392 7 років тому +12

    Awesome episode - tight editing, good flow, and useful information. Felix in "the soldering fume mask" during the trailer would put this episode over the top.

  • @allluckyseven
    @allluckyseven 7 років тому

    Great episode, you guys!
    Seems like everything went super smooth!

  • @YancySmithTurboRexPerformance
    @YancySmithTurboRexPerformance 7 років тому +2

    Your pop bumper ring has a black oxide coating on it to prevent corrosion. Buff that coating off with a wire wheel for better conductance.

  • @correia707
    @correia707 6 років тому

    It's getting very cool!!!

  • @gonzalorosario1278
    @gonzalorosario1278 7 років тому

    Great project!!!

  • @rick420buzz
    @rick420buzz 7 років тому

    I'd be all over a kickstarter for one of these.

  • @MikeGillett58
    @MikeGillett58 6 років тому

    Love pinball machines, thanks

  • @dudebro8856
    @dudebro8856 6 років тому

    love u guys for using KDE

  • @cosmicrdt
    @cosmicrdt 7 років тому

    Great episode after a few really ordinary ones.

  • @grambo1980
    @grambo1980 7 років тому

    Coolest job ever

  • @BobtheEvilWizzard
    @BobtheEvilWizzard 7 років тому

    11:25 damn Felix works out

  • @billfield8300
    @billfield8300 6 років тому +1

    Hey guys, How 'bout you do a DIY-duino for this project. Use an Atmel 328p-pu right on the PCB. Add a crystal and some caps etc... and you can wire it up for what you need and save some space as well.

  • @jonmayer
    @jonmayer 7 років тому +5

    Looks good, can't wait to build one (hope you do end up selling these).

    • @djpain
      @djpain 7 років тому

      Same. I really hope they do end up selling these as kits.

    • @TheFiftyQuid
      @TheFiftyQuid 7 років тому

      I agree. Can't wait to assembly one of these at home and get it working myself. It'd be a fantastic kit.

  • @thinktronics675
    @thinktronics675 6 років тому

    God I wish I could use all of the equipment you guys use.

  • @jeffkrupke3810
    @jeffkrupke3810 7 років тому

    looks awesome!

  • @SkaRobot
    @SkaRobot 7 років тому +1

    Yaas more Max

  • @hahuo1
    @hahuo1 6 років тому

    why dont you use the contacts on the bumper as the switch for the solenoid? you don't necessarily need to activate it with the micro-controller, you can activate a relay with the contacts of the bumper to send power to the solenoid

  • @kfirmaymon84
    @kfirmaymon84 7 років тому

    What's the name of the Compiler software he used to write the arduino code?

  • @tazdm1441
    @tazdm1441 7 років тому +2

    Hi ben

  • @kyu-kun4343
    @kyu-kun4343 7 років тому

    Can you please make a project using the UDOO x86 like HTPC. I have one but don't have any ideas on what to do with it lol

  • @anca30000
    @anca30000 7 років тому

    What is that Arduino IDE?
    It looks great.

    • @adamsfusion
      @adamsfusion 7 років тому +2

      It's Kate, a text editor for the KDE environment.

  • @LauS0
    @LauS0 7 років тому +6

    how much does Felix bench?

    • @Jmaca32
      @Jmaca32 7 років тому +10

      ShunMedia all the bench

  • @RaisingAwesome
    @RaisingAwesome 7 років тому +3

    The coding scene was edited in epic fashion. It showed the ebbs and flow of a true coder while speeding through the copy/paste. Ben narrated his thought stream precisely. In the past, I thought Ben was faking it and had an Element14 engineer writing the code and he was just hitting down arrow a bunch and smack talking. He validated that he was the real deal today.
    break;
    break;

    • @RichardBousquet
      @RichardBousquet 7 років тому

      Raising Awesome his work on America's Most Haunted should put any doubts about his coding to rest

  • @SirRelith
    @SirRelith 6 років тому

    hey everyone, I'm looking for a circuit board schematic of the Tascam dr60d audio recorder.
    I'm trying to modify it to take sony npf batteries.
    Any ideas on where to look?
    Random I know, but I figure this is a decent place to ask.

  • @HermanKruisman
    @HermanKruisman 7 років тому

    use conductive filament?

  • @saoirse147
    @saoirse147 6 років тому

    Could you make a wiiu portable with dual screens? There are no tutorials on the inter web and one would be apriciateted

  • @OriginalJetForMe
    @OriginalJetForMe 6 років тому

    Small request: hide the arrows you're not currently describing so it's clear what you're talking about.

  • @xKatjaxPurrsx
    @xKatjaxPurrsx 6 років тому

    Title is a reference to Mechs Vs Minions?

  • @molten_software
    @molten_software 6 років тому

    Felix, What desktop environment is that?

  • @ingmarm8858
    @ingmarm8858 6 років тому

    Do these three people dislike each other as much as they seem to dislike each other....

  • @keyboardbandit
    @keyboardbandit 6 років тому

    Gotta be honest, im not a fan of using a servo to load the ball... this could be hand actuated instead of servo actuated to save on costs.

  • @FC-xr1yp
    @FC-xr1yp 7 років тому

    is this going to be open source or available for purchase ?

    • @RichardBousquet
      @RichardBousquet 7 років тому

      Francis Chang I thought they talked about making this a kit for sale in part 1 but am unclear how much is involved. I hope that ends up happening, and I hope it's somewhat modular.

    • @FC-xr1yp
      @FC-xr1yp 7 років тому

      I really loves Ben hack shows and works. After watching Ben hack show it always give me the urge to assembly or fix something. It is hard to find Mid-tier DIY hobby kits in the internet these days. Hope that they can sell it as a kit. The concept of pin ball is a good starting point. Mid-tier as in the kit comes with pcb and components, we may have to diy solder all the parts and assemble them, but don't have to source parts individually in Element14.

  • @vysakhak191
    @vysakhak191 2 роки тому

    Ball drain?..........sorry.

  • @DAVIDGREGORYKERR
    @DAVIDGREGORYKERR 7 років тому

    Has anyone actually implemented this in 8086 code for the INTEL 8086 processor might be easier to program for.

  • @danmerillat
    @danmerillat 6 років тому +1

    Do yourselves (and viewers) a favor - enum or define those states instead of using magic numbers.

  • @brainimp
    @brainimp 7 років тому +7

    Quit making videos just to shoot down feedback about your builds, then disabling comments on the videos so people cant reply, I love your videos and love the stuff you build but it feels like a passive aggressive dirty trick, just to one up people that are only trying to help with their suggestions.

  • @OriginalJetForMe
    @OriginalJetForMe 6 років тому

    Did you guys seriously edit an ad into your video? I pay for UA-cam Red so I can avoid ads. If you're going to continue to do this, I'll avoid your videos.

    • @samgorfine6679
      @samgorfine6679 6 років тому

      plenty of people run baked in ads. it is the direction that advertising is going these days. either way sponsorship is what makes for quality videos and at least with hard encoded ads you can fast forward through them if you want.

    • @OriginalJetForMe
      @OriginalJetForMe 6 років тому

      sam sam Not a chance. They get money from my YT red subscription. I will simply stop watching their content. If it gets bad enough, I’ll cancel Red.

    • @samgorfine6679
      @samgorfine6679 6 років тому +1

      2 examples of this are this channel and a huge one is linus tech tips. both of them have no ad-sense ads even without red. they forgo their ad-sense/red revenue by coding the ads in. don't get me wrong, I was pissed when i got pay tv and it had ads on it. but for youtube content providers, I suppose they have to make their revenue the way that they think best suits them

  • @ImaginationToForm
    @ImaginationToForm 7 років тому +7

    The use of delay in 2017? eeeesh.

    • @Braeden123698745
      @Braeden123698745 7 років тому +1

      What's better? (I'm a newbie)

    • @pesterenan
      @pesterenan 7 років тому +2

      Typically people use a function to count milliseconds elapsed since the last action, so the program can do other things without being halted by a delay function.

    • @KuraIthys
      @KuraIthys 7 років тому

      If it aint broke, don't fix it? XD
      Well, anyway... I hope they don't paint themselves into a corner with it, but it's probably fine. Depends on a lot of factors.

  •  7 років тому

    There needs to be a space after // in comments.... Just so you know :|

  • @jondough76
    @jondough76 7 років тому +7

    No Karen = Thumbs down.

    • @davidfaszer209
      @davidfaszer209 7 років тому

      jondough76zqqqyq. Not ccssd

    • @hansdietrich83
      @hansdietrich83 7 років тому +8

      jondough76 No Allison = Thumbs down

    • @philipcross1586
      @philipcross1586 7 років тому

      maybe she is on holiday, if they wanna get rid of her permentantly, just send her to me i need a girlfriend.

    • @bioteqns928
      @bioteqns928 7 років тому +1

      Karen IS, quite honestly, one of the most gorgeous women I've seen in this industry.