Тёмный

Ben Heck’s Teensy Pinball Portable Part 1 

element14 presents
Подписаться 775 тыс.
Просмотров 116 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 156   
@MrTuffarts
@MrTuffarts 9 лет назад
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.
@Jamesah1975
@Jamesah1975 9 лет назад
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 лет назад
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.
@im.a.nickel
@im.a.nickel 9 лет назад
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!
@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.
@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
@TheYogurtdonkey
@TheYogurtdonkey 9 лет назад
I love the commentated time-lapse.
@Xzorbox
@Xzorbox 9 лет назад
I loved the "explaining detail" in this episode.
@1stage
@1stage 9 лет назад
This project is AWESOME! Thanks Ben!
@Good0Music0for0you
@Good0Music0for0you 9 лет назад
Very nice detailed method , keep up the good work and keep those details comming , you fans from London .
@rm2kdev
@rm2kdev 9 лет назад
Oh god, back to the parts again >.> lets hope we get part 2 next week and not next month >.>
@DogRox
@DogRox 9 лет назад
Wow! There was a lot of info crammed in that video! :-) good job dude!
@hoppend
@hoppend 9 лет назад
Very nice! Looking forward to the next episode!
@ByronBedenbaugh
@ByronBedenbaugh 8 лет назад
@sw1tched
@sw1tched 9 лет назад
"Too much input stefanie" .... unlike Number 5 .... MY HEAD exploded with the information in this video!!!!!
@axs203
@axs203 9 лет назад
This is a good video....could just about follow it with the bits n registers!
@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 :)
@rubysharp326
@rubysharp326 9 лет назад
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.
@fab1604
@fab1604 9 лет назад
Man, the new intro is so cool!
@jojoposter
@jojoposter 9 лет назад
Hmm, this alphawire ad was actually not so bad... nice ! And nice intro :) Project looks interesting, will follow that *thumsup*
@element14presents
@element14presents 9 лет назад
Niklas Mertens Thanks!
@matthew-sq4kz
@matthew-sq4kz 9 лет назад
Well done. You are amazing!
@jakeleith2000
@jakeleith2000 9 лет назад
he's a pinball wizard
@element14presents
@element14presents 9 лет назад
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?
@minor0confusion
@minor0confusion 9 лет назад
high speed cam shot of the screen would be amazing!!
@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!)
@TheeBuddylee
@TheeBuddylee 6 лет назад
Love episodes with more coding exploring like this one
@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.
@orinokonx01
@orinokonx01 9 лет назад
Welllll done!! Really enjoy these videos! Looking forward to the next part :) :)
@supersat
@supersat 9 лет назад
Gotta love the explicit "in two weeks!" comment, especially after the Dreamcast outcries ;)
@frollard
@frollard 9 лет назад
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 лет назад
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 :)
@smooooth_
@smooooth_ 9 лет назад
Ben looks like a mix between Gaben, Bill Gates and Conan O'brien
@ojtheaviator1795
@ojtheaviator1795 9 лет назад
Yes!
@kikicat123
@kikicat123 7 лет назад
he doesn't just look like it, he IS it
@FatLingon
@FatLingon 9 лет назад
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.
@gauge6513
@gauge6513 Год назад
Love this guy. He explains code like it makes sense. Its rules not logic which is why we arent aliens yet. haha
@CarrotsNotCake
@CarrotsNotCake Год назад
He's really great.
@michaelcullen7932
@michaelcullen7932 9 лет назад
Loved to see all the code!!
@stevobox8726
@stevobox8726 9 лет назад
Wow, you code wayyy more efficient than I do! And yeah at 96MHz that tniyduino is properly fast
@doffer987
@doffer987 9 лет назад
Great project!!!
@VacFink
@VacFink 9 лет назад
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.
@VacFink
@VacFink 9 лет назад
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.
@element14presents
@element14presents 9 лет назад
VacFink Thanks for the feedback :)
@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?
@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 ?
@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.
@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.
@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.
@element14presents
@element14presents 9 лет назад
Antoine Coppens It's just a text editor, Notepad++
@antoinecoppens6249
@antoinecoppens6249 9 лет назад
Ok thanks Ben (or Max) !
@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!
@jerviservi
@jerviservi 9 лет назад
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 лет назад
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 лет назад
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 лет назад
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.
@DeRaafMedia
@DeRaafMedia 9 лет назад
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. 
@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.
@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/
@davthomas223
@davthomas223 9 лет назад
can you do a guide on RetroPie? I'm having trouble with MAME compatibility
@DanielMonteiroNit
@DanielMonteiroNit 8 лет назад
for composing the score string, wouldn't snprintf be better? is it available?
@YommyRawr
@YommyRawr 9 лет назад
instead of the score divider, just use a bitmask and bitshift ?
@harryhttu4693
@harryhttu4693 6 лет назад
Is there a way to connect a vibration sensor to the segment display
@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 лет назад
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.
@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.
@ojtheaviator1795
@ojtheaviator1795 9 лет назад
Would 120fps slo mo capture the individual numbers
@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.
@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.
@DarkMetalSkies
@DarkMetalSkies 9 лет назад
love you ben
@element14presents
@element14presents 9 лет назад
Frostclaw20
@DarkMetalSkies
@DarkMetalSkies 9 лет назад
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 лет назад
I will register then
@Kick299
@Kick299 9 лет назад
Where'd you go to school?
@VitekSTZero
@VitekSTZero 9 лет назад
Nice intro BTW! :)
@element14presents
@element14presents 9 лет назад
***** Thanks :)
@Quaker763
@Quaker763 9 лет назад
Oh btw what chip was on the audio shield??
@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....
@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)
@Out_of_Czech
@Out_of_Czech 9 лет назад
I wish I could do any of this stuff :(
@Craft4Cube
@Craft4Cube 9 лет назад
What is your background music, in the vid?
@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
@CrashDK
@CrashDK 7 лет назад
Hallo Ben. What is your Education?
@MichielHaisma
@MichielHaisma 9 лет назад
Cool!
@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 ;)
@bland9876
@bland9876 9 лет назад
a prostitute themed pinball machine should have the Flying Spaghetti Monster in the center of the decal
@JadarDev
@JadarDev 9 лет назад
the audio levels are all over the place in this episode..
@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.
@element14presents
@element14presents 9 лет назад
Meep Walrus Well, y'know, with a few resistors...
@FiloTECH
@FiloTECH 9 лет назад
Finally ;)
@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
@XxShOoTnDiExX
@XxShOoTnDiExX 9 лет назад
Yaaaaas
@ZuiGe
@ZuiGe 9 лет назад
this is a really cool one! you need to work on your code though, ben. :)
@MegaEVOGamer
@MegaEVOGamer 9 лет назад
Can you do a ps4 controller charger for 4 controllers and more porable
@jaredcoon
@jaredcoon 9 лет назад
You should build a portable ps2. Now that would be amazing!! Or a raspberry pi controlled hand built 3d printer:) ( is that even possible if so you can do it) thanks!
@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).
@sampleexamplemusic
@sampleexamplemusic 9 лет назад
holy hell that title sequence was loud.
@aidan00ah
@aidan00ah 9 лет назад
Oh cool :3
@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 😉
@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?!?
@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...
@RickyLi
@RickyLi 9 лет назад
Is that an evil rabbit I see?
@element14presents
@element14presents 9 лет назад
Ricky Li With sharp pointy teeth?
@ebnicolaou
@ebnicolaou 9 лет назад
+The Ben Heck Show can i earn this pinball?
@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 лет назад
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?
@HazardOfExistance
@HazardOfExistance 9 лет назад
His divider was set to 10M instead of 1M like he said it was.
@macjaybirdpaintballer4848
@macjaybirdpaintballer4848 9 лет назад
i'm building the minecraft pinnball
@magnuswootton7368
@magnuswootton7368 6 лет назад
i hate the I/O restriction on these robot controller boards!!!!
@Jacefax
@Jacefax 9 лет назад
That intro was way too long and way too loud. Looked cool though.
@LPBenob
@LPBenob 9 лет назад
Second from Germany
@victordiaz1465
@victordiaz1465 9 лет назад
Do a ps4 portable pls
@letsgocamping88
@letsgocamping88 9 лет назад
Looks like notepad++
@phill80
@phill80 9 лет назад
29 minutes of utter gobbledygook.
@kielerkarl
@kielerkarl 9 лет назад
2 Weeks......Noooooooooooooooooooooooooooooooooooooooooo
@element14presents
@element14presents 9 лет назад
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
@eoinchedzey3154
@eoinchedzey3154 9 лет назад
First 😏
@Quin99
@Quin99 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.
Далее
Ben Heck’s Teensy Pinball Portable Part 2
29:35
Просмотров 98 тыс.
Ben Heck’s Game Brains Part 2
18:26
Просмотров 60 тыс.
GENIUS FOOD HACKS 🍰 #shorts
00:36
Просмотров 17 млн
Harder Drive: Hard drives we didn't want or need
36:47
Ben Heck's Game Brains Part 1
17:20
Просмотров 79 тыс.
The Micro Mechanisms in Your Phone
19:31
Просмотров 1,2 млн
High precision speed reducer using rope
20:19
Просмотров 1,8 млн
Ben Heck’s Raspberry Pi Media Center
25:09
Просмотров 371 тыс.
I built a retro Mac from BRAND NEW parts!
32:18
Просмотров 299 тыс.
The Original Atari Portable Gaming Mod Is Back!
15:48
Просмотров 185 тыс.
GENIUS FOOD HACKS 🍰 #shorts
00:36
Просмотров 17 млн