Ben Heck’s Teensy Pinball Portable Part 1

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 155

  • @MrTuffarts
    @MrTuffarts 9 років тому +11

    If you are going to have a beefy audio track on the opening credits, can you please balance the audio volume to match your own audio. It plays unbelievably loud.
    Rise above the YOUTube hype, you are much humbler than that, it is one of your best features.

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

    I had to come back to this video to figure out how exactly is this score display working. So brilliant it just blew my mind.

  • @im.a.nickel
    @im.a.nickel 9 років тому +1

    The Ben Heck Show What you were explaining about cabTemp and cabNet is called atomicity. This is used a lot when dealing with file systems or multi-threading environments. Also being a programmer I'm loving the amount of coding in this with hardware!

  • @shagg3d
    @shagg3d 9 років тому

    I am loving this, has been a project for years I've wanted to do replicate and convert the larger machines (Williams gottlieb) into a portable home tabletop. May still have a go when my 3d printer is built. So thanks Ben nice to see

  • @rm2kdev
    @rm2kdev 9 років тому +5

    Oh god, back to the parts again >.> lets hope we get part 2 next week and not next month >.>

  • @Xzorbox
    @Xzorbox 9 років тому

    I loved the "explaining detail" in this episode.

  • @1stage
    @1stage 9 років тому +2

    This project is AWESOME! Thanks Ben!

  • @Jamesah1975
    @Jamesah1975 9 років тому +15

    Is it just me that enjoys watching Ben's video's but literally has NO IDEA what he's talking about when he goes all technical?! lol

    • @furrymessiah
      @furrymessiah 9 років тому +4

      It's not just you.

    • @thesamuelbutler
      @thesamuelbutler 9 років тому

      Jim Nope. I try though.

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

      I reckon you would enjoy techmoan and 8 bit guy too.

  • @TheYogurtdonkey
    @TheYogurtdonkey 9 років тому

    I love the commentated time-lapse.

  • @hoppend
    @hoppend 9 років тому +1

    Very nice! Looking forward to the next episode!

  • @ByronBedenbaugh
    @ByronBedenbaugh 8 років тому

  • @JackTheDeergal
    @JackTheDeergal 9 років тому

    What would be really neat to make would be a pocket-sized synth/keyboard. You could use a small computer (arduino,raspberry pi,Etc) and install some kind of music writing software, they have a couple of knobs to adjust a few things (pitch bending, LFO rate, low pass filter,Etc) it just sounds like a cool project.
    Likeliness of you seeing this is incredibly slim, but I thought it was worth bringing up, have an splendid day :)

  • @jakeleith2000
    @jakeleith2000 9 років тому +18

    he's a pinball wizard

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

      The Leithal Gamer there has to be a twist..

    • @jakeleith2000
      @jakeleith2000 9 років тому

      The Ben Heck Show A pinball wizard's got such a supple wrist

    • @Freako
      @Freako 9 років тому

      The Leithal Gamer How do you think he does it?

    • @Freako
      @Freako 9 років тому

      sonicase
      What makes him so good?

  • @sw1tched
    @sw1tched 9 років тому

    "Too much input stefanie" .... unlike Number 5 .... MY HEAD exploded with the information in this video!!!!!

  • @VacFink
    @VacFink 9 років тому +1

    Hoping you share plans for this on Element 14 with parts list. I'd love to build my own as my first homebrew!

    • @element14presents
      @element14presents  9 років тому

      VacFink We've been wondering how best to present component lists and such on the community, if you have any ideas we'd like to hear them.

  • @fab1604
    @fab1604 9 років тому +1

    Man, the new intro is so cool!

  • @EmilFr
    @EmilFr 9 років тому

    Instead of using the read, modify, write on the pin registers, can't you use bitbanding? Teensy 3.1 is an ARM Cortex-M right? I'm not a 100% sure, it might be manufacturer dependent or something, but that would allow much faster access to individual pins as every bit in a pin register is aligned and can be accessed individually.

  • @minor0confusion
    @minor0confusion 9 років тому

    high speed cam shot of the screen would be amazing!!

  • @DogRox
    @DogRox 9 років тому +3

    Wow! There was a lot of info crammed in that video! :-) good job dude!

  • @Quaker763
    @Quaker763 9 років тому

    Ben! You should have totally used cstdint to specify fixed width values, like uint16_t. It makes everything so much easier to read, especially on a uC like the teensy.

  • @axs203
    @axs203 9 років тому

    This is a good video....could just about follow it with the bits n registers!

  • @Good0Music0for0you
    @Good0Music0for0you 9 років тому

    Very nice detailed method , keep up the good work and keep those details comming , you fans from London .

  • @supersat
    @supersat 9 років тому

    Gotta love the explicit "in two weeks!" comment, especially after the Dreamcast outcries ;)

  • @FatLingon
    @FatLingon 9 років тому +1

    Ben, you are an animator, but you choose a display that really can't be that animated. I would have loved for this to be a 3 parter, where you improve on ordinary pinball-machines and use a modern LCD/LED display and make a few short animations in full RGB color.

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

      FatLingon the goal here was to make a small and simple portable pinball machine.

  • @rubysharp326
    @rubysharp326 9 років тому +3

    I really enjoy watching and listening to your words what come out your mouth, I just wish I understand what the hell your talking about.

  • @frollard
    @frollard 9 років тому +2

    Worth noting: In teensyduino, the author wrote functions called 'digitalwritefast' and 'digitalreadfast' that take only 1 cpu cycle to complete...much faster than default :D (without needing to resort to port addressing)

    • @Robonza
      @Robonza 9 років тому

      frollard How about using the SPI port and have half that stuff happen with no processing at all haha.

    • @frollard
      @frollard 9 років тому +2

      Robonza Definitely a trade between novice usability and efficiency...I just mentioned that one because ports and bitwise operations are a bit heavy for the beginner and if the other goal is speed then it's already been taken care of :)

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

    Love episodes with more coding exploring like this one

  • @bzhmaddog
    @bzhmaddog 9 років тому

    What would be nice is to have more detailled schematics available (on Github for example). What diode did you use for the Solenoid driver. 1N4001 ?

  • @MaeveFirstborn
    @MaeveFirstborn 9 років тому

    I know that there is a low chance of you doing this. But I can't find a lot of videos explaining how to add buttons or hopefully a joystick to a teensy. After this, think you could make a video on adding a joystick and button to teensy?

  • @VacFink
    @VacFink 9 років тому +1

    Any listing is a great and can be improved with feedback over time. As a newb, part numbers and links to items I can buy on E14 are great. Since so some of this is from scrounged parts, substitutions or specs for similar parts would be helpful. I would think over time makers who give it a try will share their own links and sources for scrounged parts or alternative parts as well and it can grow organically. That's my take from someone just stepping into the pool, others who are already knee or hip deep probably don't need as much or have other preferences. I hope that helps.

  • @matthew-sq4kz
    @matthew-sq4kz 9 років тому +1

    Well done. You are amazing!

  • @Skyman2596
    @Skyman2596 9 років тому

    I'm very interested in making a similar project but have some fundamental questions. How do you turn the closing of a switch (say a stationary target on the play-field being hit by the pinball) into a digital signal that can be used to increase the score?
    Also how would the same concept work but this time the ball would hit a switch which activates a solenoid (say a kicker)?
    Thanks!

  • @planetWayne
    @planetWayne 9 років тому

    The Ben Heck Show I might be missing a trick - but on the score 'number' to string code, could you not just use cstr to convert the actual number to an ascii string. Then all you would need is a loop through and replace the 'val' of each -48 to get the ascii values correct. Would read a lot easier I think. Also as a quick thing, don't forget to right justify your score :) (I don't know about Arduino or Teensy code but in the old days of basic you could set the length of string you wanted to return and justify your number in it)
    - just my 2p worth :)
    Cheers
    Wayne.

  • @jerviservi
    @jerviservi 9 років тому +3

    On the Mosfet, Ben called the diode a 'Fly-back' however I have learnt it as a 'Rerversed Bios'. If this just language diffrence (I am from the UK) or have I learnt it wrong?

    • @EngineeringVignettes
      @EngineeringVignettes 9 років тому +1

      Reversed bias.

    • @bsvenss2
      @bsvenss2 9 років тому

      Thomas Jarvis _A flyback diode (sometimes called a snubber diode, freewheeling diode, suppressor diode, suppression diode, clamp diode or catch diode) is a diode used to eliminate flyback, which is the sudden voltage spike seen across an inductive load when its supply voltage is suddenly reduced or removed._

    • @FalbertForester
      @FalbertForester 9 років тому +1

      Thomas Jarvis No, you learned it right. The reversed biased diode is being used in a fly-back configuration, across the coil in the relay. This is one of the many uses of a reverse-biased diode - flyback voltage spike suppression across a DC-driven inductor.
      When the MOSFET switches from on to off, the magnetic field in the coil collapses, but while it does, it can generate a substantial reversed voltage spike across the coil. The diode provides a safe way to drain the energy within the coil, thus preventing you from "flying back across the room" from touching a coil that is supposedly "off". Here, it's primarily to protect the MOSFET from damage, but in higher-energy circuits, it can prevent arc events.

    • @jerviservi
      @jerviservi 9 років тому +2

      Falbert Forester
      Ah, okay. Thanks. That makes sense now.
      I have my electronics exam this week and there is always a question on Mosfets or BJTs with an electromagnetic thing, so that very useful.

  • @smooooth_
    @smooooth_ 9 років тому +9

    Ben looks like a mix between Gaben, Bill Gates and Conan O'brien

  • @antoinecoppens6249
    @antoinecoppens6249 9 років тому

    What is the IDE you are using? I like the fact that you can expand and collapse functions. It makes the code better organized.

  • @jojoposter
    @jojoposter 9 років тому +1

    Hmm, this alphawire ad was actually not so bad... nice !
    And nice intro :)
    Project looks interesting, will follow that *thumsup*

  • @leno5682
    @leno5682 9 років тому

    Hey Ben I've have a pair of broken heads laying around, well they not broken I guess. They still work its just the right plastic thing broke off. I was wondering if you could fix it or even make it better some how. Please send me a message if you can.

  • @stevobox8726
    @stevobox8726 9 років тому

    Wow, you code wayyy more efficient than I do! And yeah at 96MHz that tniyduino is properly fast

  • @Bladedragonlord
    @Bladedragonlord 9 років тому

    Crikey you have to remember so much info... WOW! :D (I used to program so I get some of what you are talking about, but still Wow, so much info!)

  • @davthomas223
    @davthomas223 9 років тому

    can you do a guide on RetroPie? I'm having trouble with MAME compatibility

  • @michaelcullen7932
    @michaelcullen7932 9 років тому

    Loved to see all the code!!

  • @DeRaafMedia
    @DeRaafMedia 9 років тому +8

    The Gods will be displeased. Very displeased, ...... maybe end of world displeased.
    You don't shrink pinball machines, you make them bigger.

    • @TommieTF
      @TommieTF 9 років тому

      Volgens mij heb je teveel gedronken

    • @DeRaafMedia
      @DeRaafMedia 9 років тому

      Tommie Terhoeve The Gods forbid that kind of frivolous activity.

    • @TommieTF
      @TommieTF 9 років тому

      DeRaafMedia ehm ok dan... Je weet dat dit een tech channel is je :)?

    • @DeRaafMedia
      @DeRaafMedia 9 років тому

      Tommie Terhoeve The Gods forbid that kind of frivolous activity. 

  • @YommyRawr
    @YommyRawr 9 років тому

    instead of the score divider, just use a bitmask and bitshift ?

  • @orinokonx01
    @orinokonx01 9 років тому +1

    Welllll done!! Really enjoy these videos! Looking forward to the next part :) :)

  • @ojtheaviator1795
    @ojtheaviator1795 9 років тому

    Would 120fps slo mo capture the individual numbers

  • @Out_of_Czech
    @Out_of_Czech 9 років тому +1

    I wish I could do any of this stuff :(

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

    Is there a way to connect a vibration sensor to the segment display

  • @doffer987
    @doffer987 9 років тому +1

    Great project!!!

  • @JoxArcade
    @JoxArcade 9 років тому

    Hello I would like to see a video in which you convert a single android tablet into a tablet gamepad as JXD and please send a mail with how make this....

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

    How does he not run into data bottlenecking issues with so few pins? I would put everything on its own port (excluding group operations) but I guess that would make it more complicated.

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

      I guess he has it set up to only run one function at a time.

  • @DanielMonteiroNit
    @DanielMonteiroNit 8 років тому

    for composing the score string, wouldn't snprintf be better? is it available?

  • @helloworld6569
    @helloworld6569 9 років тому

    I haven't finished watching the video yet, but I've gotten to the start of the code portion. Why are you storing the numbers as ASCII values and then subtracting 48 instead of just storing them as integer values to start with?

    • @johanrg70
      @johanrg70 9 років тому +3

      Hello World! The compiler will optimize away the subtraction so it's just more convenient to let it do the math like that and makes it easier to modify for the programmer.

  • @AmericanToxin
    @AmericanToxin 9 років тому

    Thumbs up. Just a quick question would you do a N64 portable?

    • @element14presents
      @element14presents  9 років тому

      Trevor Woodworth Ben did, some time ago, it was a pain to do: www.benheck.com/n64-portable/

  • @gauge6513
    @gauge6513 Рік тому +1

    Love this guy. He explains code like it makes sense. Its rules not logic which is why we arent aliens yet. haha

  • @Craft4Cube
    @Craft4Cube 9 років тому

    What is your background music, in the vid?

  • @Meep3692
    @Meep3692 9 років тому

    At 5:58 you said USB bus. Suggesting you don't want to power the LEDs off the universal serial bus bus.

  • @Kick299
    @Kick299 9 років тому

    Where'd you go to school?

  • @yemmohater2796
    @yemmohater2796 9 років тому

    I have an idea for a project. A customizable and versatile Raspberry Pi Game kit that can be used by noobs and has no soldering involved.

  • @MegaEVOGamer
    @MegaEVOGamer 9 років тому

    Can you do a ps4 controller charger for 4 controllers and more porable

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

    Hallo Ben. What is your Education?

  • @Quaker763
    @Quaker763 9 років тому

    Oh btw what chip was on the audio shield??

  • @Jensen567
    @Jensen567 9 років тому

    Cannot recommend the Teensy enough. The price/performance is so far above anything else I have seen in the MCU world. PJRC also has some of the best support for software on their forums.

  • @cooliofoolio
    @cooliofoolio 9 років тому

    MOAR DREAMCAST PORTABLE!!

    • @element14presents
      @element14presents  9 років тому

      UNKNOWNGAM3r D: It's made already! (but thanks :)

    • @supersat
      @supersat 9 років тому

      The Ben Heck Show needs moar WiFis (for games that supported the broadband adapter)

  • @Shoopity
    @Shoopity 9 років тому

    Some of this information would've helped while I was deciphering the code for making a Virtual Pinball table of America's Most Haunted. :-P

  • @letsgocamping88
    @letsgocamping88 9 років тому

    What IDE are you using? I wish the arduino IDE would collapse functions like that.

    • @highac3s
      @highac3s 9 років тому

      It's notepad++ (not an ide just a text editor)

    • @kcajBr
      @kcajBr 9 років тому

      Benjamin Harvey it looks like notepad++.

    • @element14presents
      @element14presents  9 років тому

      Benjamin Harvey At the end of the day it's just text files, so you can use whatever you like. The IDE just packs in avr-gcc to make things simpler.

    • @BGBTech
      @BGBTech 9 років тому

      The Ben Heck Show
      yeah. personally I prefer Notepad2, which is used more like the original Notepad (IOW: you open a bunch of instances in parallel, with one instance for each file).

    • @letsgocamping88
      @letsgocamping88 9 років тому

      I clocked it was notepad++ when I saw the full screen ;)

  • @VitekSTZero
    @VitekSTZero 9 років тому +1

    Nice intro BTW! :)

  • @Bloodthirsty9000
    @Bloodthirsty9000 9 років тому

    Hey Ben I was wondering how do we contact u about building us something

    • @element14presents
      @element14presents  9 років тому

      Bloodthirsty9000 Thanks for asking, you need to use the 'suggest a build form' on the element14 Community, here's the link: ow.ly/NBYFa

  • @JadarDev
    @JadarDev 9 років тому +1

    the audio levels are all over the place in this episode..

  • @ZuiGe
    @ZuiGe 9 років тому

    this is a really cool one! you need to work on your code though, ben. :)

  • @bland9876
    @bland9876 9 років тому +1

    a prostitute themed pinball machine should have the Flying Spaghetti Monster in the center of the decal

  • @DarkMetalSkies
    @DarkMetalSkies 9 років тому +1

    love you ben

    • @element14presents
      @element14presents  9 років тому

      Frostclaw20

    • @DarkMetalSkies
      @DarkMetalSkies 9 років тому +1

      I am studying Electrical Engineering to be like you.

    • @element14presents
      @element14presents  9 років тому

      Frostclaw20 Excellent, if it helps, the element14 community's a good place to learn from, too.

    • @DarkMetalSkies
      @DarkMetalSkies 9 років тому +1

      I will register then

  • @olivier2553
    @olivier2553 9 років тому

    Ben, I enjoy your show very much - I think I just finished watching all the past episodes - but the parts where you teach programming are almost impossible to follow: there is not always a good synchronization between what you say and what is shown, there are too many lines of the program that are highlighted at the same time, and by the time the viewer has found what line you are describing, there are some comments that are added at the bottom of the screen... You are going way too fast! And I am a programmer. While the electronic part is much easier to understand, even for me with no prior knowledge of electronic (or a level way more limited than my computer knowledge).

  • @ryanamberger
    @ryanamberger 9 років тому

    When you said portable pinball I was looking forward to a laptop pinball machine that also plays Xbox 360 and Vectrex games...What gives Ben?!?

  • @MichielHaisma
    @MichielHaisma 9 років тому

    Cool!

  • @MetroidChild
    @MetroidChild 9 років тому

    is this 24 or 30 fps? this is really weird for my brain

    • @element14presents
      @element14presents  9 років тому

      ***** about 24fps

    • @supersat
      @supersat 9 років тому

      The Ben Heck Show I noticed this too, but this is the first episode in a while that I've watched on my laptop (as opposed to my phone). Maybe eevblog's 60 fps is screwing with me...

  • @sampleexamplemusic
    @sampleexamplemusic 9 років тому

    holy hell that title sequence was loud.

  • @probastian
    @probastian 9 років тому

    Your buildings are so amazing, and i want to build them, but im only 12 Years old, and cant build your Projects... Is there any Solution (except asking Elders or Relatives for Help), that i can build your Projects?
    P.S. Mostly Problems are 3D Printing, the lovely Money. Time is not the Problem

    • @probastian
      @probastian 9 років тому

      Oh forgot to mention you! The Ben Heck Show 😉

  • @odindj_slayer8729
    @odindj_slayer8729 9 років тому

    at 7:47 Poll I/O spells Pollio,lol

  • @systemmaster128
    @systemmaster128 9 років тому

    22:30 This is not true! bitRead, bitWrite, bitClear and bitSet are macros in wiring.h (Teensyduino) or in Arduino.h (Arduino), they are bitwise operations, that run just as fast as your functions.
    For digitalWrite and digitalRead your argument is only true if you run these commands with dynamic parameters otherwise they will be single-cycle instructions.

    • @mrlazda
      @mrlazda 9 років тому +1

      systemmaster128 There is little correction, writing constant to SFR on ARM or Atmel is not single-cycle instructions (it is possible to be single-cycle instruction only if you have prepared values in general-purpose, which is rarely case) changing one bit on SFR usually take 3 instructions.
      bitWrite is macro but it use conditional assignment to select which macro it will use (which can be determined during compilation for static parameter if you use some good compiler, GCC dont do that)
      digitalWrite and digitalRead are never single-cycle instructions (they never cant be even compiled to 3 instructions), and there is no difference if you use dynamic parameters or static parameter.

  • @joelingtonmcjoule5603
    @joelingtonmcjoule5603 9 років тому

    who ever thought light blue writing on a whiteboard was a good idea?

  • @RickyLi
    @RickyLi 9 років тому

    Is that an evil rabbit I see?

    • @element14presents
      @element14presents  9 років тому +1

      Ricky Li With sharp pointy teeth?

    • @ebnicolaou
      @ebnicolaou 9 років тому

      +The Ben Heck Show can i earn this pinball?

  • @FiloTECH
    @FiloTECH 9 років тому +1

    Finally ;)

  • @macjaybirdpaintballer4848
    @macjaybirdpaintballer4848 9 років тому +1

    i'm building the minecraft pinnball

  • @HazardOfExistance
    @HazardOfExistance 9 років тому

    His divider was set to 10M instead of 1M like he said it was.

  • @aidan00ah
    @aidan00ah 9 років тому

    Oh cool :3

  • @Jacefax
    @Jacefax 9 років тому

    That intro was way too long and way too loud. Looked cool though.

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

    i hate the I/O restriction on these robot controller boards!!!!

  • @XxShOoTnDiExX
    @XxShOoTnDiExX 9 років тому

    Yaaaaas

  • @victordiaz1465
    @victordiaz1465 9 років тому

    Do a ps4 portable pls

  • @LPBenob
    @LPBenob 9 років тому

    Second from Germany

  • @letsgocamping88
    @letsgocamping88 9 років тому +1

    Looks like notepad++

  • @phill80
    @phill80 9 років тому +1

    29 minutes of utter gobbledygook.

  • @kielerkarl
    @kielerkarl 9 років тому +1

    2 Weeks......Noooooooooooooooooooooooooooooooooooooooooo

    • @element14presents
      @element14presents  9 років тому +2

      kielerkarl www.nooooooooooooooo.com/

    • @kielerkarl
      @kielerkarl 9 років тому

      :) like it :)

    • @blvm
      @blvm 9 років тому

      The Ben Heck Show Hahahahaha

  • @Colt159
    @Colt159 9 років тому

    11th

  • @jackj3596
    @jackj3596 9 років тому

    First

  • @Quin99
    @Quin99 9 років тому

    first

  • @eoinchedzey3154
    @eoinchedzey3154 9 років тому

    First 😏

  • @balika011
    @balika011 9 років тому

    This code is bad on so many levels. This makes me feel sad:(

    • @element14presents
      @element14presents  9 років тому

      Triszka Balázs How would you improve it?

    • @balika011
      @balika011 9 років тому

      Can you upload the code somewhere? pastebin for ex.

  • @cgcgcg
    @cgcgcg 9 років тому

    Fools, normalize your intro, or gonna get a bill for a pair of speakers..