Mini Pinball 07: Designing the PCB
Вставка
- Опубліковано 2 лис 2017
- The prototype for the mini pinball machine has a 16x2 LCD display, audio amplifier, 16 switches in, 16 lights out, 4 MOSFET controllers, and 4 servo ports. In today’s episode, Ben translates this prototype into an Eagle design. Felix works on finding the libraries and the part numbers while Ben Does the layout. Visit the Ben Heck page at: bit.ly/2h7TgCK
Visit the Learning Circuit: bit.ly/2yqZkhp
Visit the Mini Pinball Space: bit.ly/2hAL1fy
Visit Project14: bit.ly/2zbsBff
Ben puts together the PCB for the mini pinball machine in Eagle. He starts with some of the more cumbersome areas first, namely the lights and switches. He’s going to use these molex 2.54 or .1 inch pitch headers. He puts in the 16 switch molex connectors in and 16 for the lights. He’s got to think about how to orient the circuits in relation to the 16 switch molex connectors. He creates spacing so that they are able to make an adapter board that can attach for testing. He won’t run the traces until he has the main components on the board. There should be enough space between these.
He lays out placement for the power, the microcontroller, the screen, and input/output plugs on the lower-left. He shows the schematic of the constant current LED driver. Ben reuses a layout of an eagle file for the schematic of the constant current LED driver. They used the TLC59282 constant-current sink driver in the persistence of vision episode and Super Space Shuttle. You source the LED with current and then it sinks into the device.
Ben uses a schematic of an LCD display that fits his requirements but lacks an Eagle file so he’ll have to do his own. When working with schematic design software it is often necessary to either hunt down a library or make one. For rare parts it can be quicker to make one. For the schematic, the symbol is representative of the part, whereas the package detail comes from the datasheet. Ben creates a package that matches the physicality of the hardware.
After laying out a lot of the parts for the board to run the digital signals Ben needs to attach the SPI signals between the Teensy/Arduino and the I/O chips. At this point he’s added 2 MOSFET packages, headers for the solenoids, voltage regulator, placement for the Teensy and Arduino, and some resistors. After running the traces the PCB is done. Power comes in through the 2.1 millimeter jack and goes to a push button switch. A large capacitor for the 12 volt line goes to a 5 volt regulator which also has an electrolytic capacitor on it. This regulator goes to the 5 volt input of the Arduino or the 5 volt input of the Teensy. Both the Teensy and the Arduino output their own built-in regulators. That 3 volt regulator goes to the switch integrated circuits.
There are 16 switches and 16 lights. The light driver has 16 bits of switch input. There are connectors for 4 servos, a large electrolytic capacitor next to those servos because servos can draw a lot of power and cause spikes in power. The audio amplifier is set to a fixed gain and finally the speakers where they hook up. Then there is the LCD screen with a silkscreen along the screw holes. The silkscreen is .26 inches in diameter. This represents the head of the screw to make sure that it’s not bumping into anything. After doing a design check, the design is ready to be sent off to get boards made. - Наука та технологія
Neat project! Pinball sure is up there as one of my favorite games as a kid.
Eagle tip: instead of placing lines and then editing their properties to put them at the right coordinates, you can type in coordinates into the command line at the top in (x y) notation. So for making the entire outline of the LCD you could type (after selecting the line tool) "(-2.4015 -0.866) (-2.4015 0.866) (2.4015 0.866) (2.4015 -0.866) (-2.4015 -0.866)" and it would all appear *as if by magic*. Same goes for holes at specific coordinates.
thanks, didn't know of that
This looks great. I can't wait for this kit to be released. Hoping I learn a lot and can use it to upscale this project and build my own full size Pinball machine... ah .. a boy can dream.
pinball themed pinball machine; it'll be a great success
Hey there Ben. In order to be able to view the traces after hitting ratsnest, you can go to the terminal bar above and type "RIPUP @;" (without quotes) to ripup all polygons. You can limit this to polygons of a list of signals by typing "RIPUP @ GND VCC MYSIGNAL;"
Ben doesn't spend much time on here so I shared your comment with him. His response, "That sounds useful." Thanks for sharing.
You're welcome! :D
The PCB _'talk through'_ was awesome! It would really make great short osmosis style 'learning circuits' videos!
Last show before basic training. I'm going to have a Heck of a marathon when I get out.
I see what you did there. Good luck in basic!
Ben, did you just make that DC connector center ground, that's evil.
ZEROSTATIC72 Doesn't look that way to me. When it comes to not using center grounds, "in Ben we trust".
we use that LCR Display on some of our Vitamix boards. I've been soldering those for years.
Eagle tip: If you have clicked ratsnest after placing a ground polygon, you can write "ripup @;" to just remove the visual polygon fill, so you can continue routing, and still see what you do. Clicking ratsnest again would show you/calculate the fill again.
1. You can double-click in the pin list to assign one to whichever signal is currently highlighted without using the "connect" button.
2. You didn't assign a direction to any of those pins. Some should be set to input only, some output only, and some to power. That allows you to use the ERC to find errors you otherwise might miss.
3. Once you had one short and one long side of the LCD, you could have just cloned each one and stuck them in place. (Or just use Brent Allen's tip to make it in one go).
I miss this
It's a mini pinball so Antman theme seems like a good fit
Heckputer. Love it :)
Same here XD
You can manually type in hole diameters in Eagle. so, you can have a 3.5mm diameter hole.
Also, your LCD pinout may be incorrect... the datasheet showed that pin 1 is actually pin 14...
too bad they don't read the comments :(
at 17:58 you can see that pin 1 is actually connected to ground :) so Ben must have noticed that
17:23 - Aha! I see you've corrected the number of pins on your custom component part. It appeared to me that you made the same mistake of jumping one pin number twice!
Next week on the Ben Heck Show...
Yay, pinball!
Hahaha Ben was so fucking over "Heckputer"
IS IT BEST TO PUT GND PLANE ON TOP OF BOARD AND ON BOTTOM ? OR CAN YOU PUT GND ON ONE SIDE AND VOLTAGE ON OTHER ?
Can you not use seven segment display modules or the alphanumeric modules but which uses 16 pins of the number of pins that the 7 segment display modules,VFD tubes require at least 64volts for it to work.
I wanted you teel me what program you use please and please do more básicos videos.
question so im building a gaming laptop and im trying to make it chargable but im also using desktop parts but i wanna adapt the battary to the chords, sorry if you dunno what i mean.
REPLY
No input protection?
How about a Pinball themed Pinball Machine.
I was thinking the Hec 9000 series
what do you mean in 19:20 ? :)
I'm guessing since the wire is there it's easier to go around the jack, as opposed to straight through (slamming the side parallel to the base)
When will we see a tear down video of Xbox one x
Wouldn't that be a rule of finger
No to the Heck Computer hmm, maybe he was hoping for a Heckmobile.
I'd let ben populate my io :^)
When are you going to tear apart a xbox one x?
Pretty much as soon as it comes out.
Whoever was getting messages in the background should really put their phone on silent while filming.
now it has to be sloth themed or i'll be dissapointed
Why can't you just draw the part using 0, 0 as the origin and centre it afterwards? Seems like dividing everything by 2 is a tedious and error-prone way of doing things...
at 10:19 he explains why...
Tomorrow xbox one x teardown
Star Trek Discovery Theme..
who else checked their hangouts for messages that weren't there while watching this?
good femplacement
The what now?
Nice Ballmer joke
It's funny after he noticed that the pads were wrong, he redid them and they were still wrong, skipping number 8, meaning there were a total of 17 pads. But after the "Finishing up the design" card, suddenly there are 18 pads. It's also infuriating to see someone click on something and then move their mouse to the cancle button. Just use the escape key if you have to do repetitive tasks like this so you don't have to move your mouse that much.
first?
Congratulations, you win -1 internets