Version 8

    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

    The Learning Circuit
    sudo Sergeant
    See All Episodes

     

     

     

     

    Ben shows you a better way to retro game without miniaturizing an SNES mini. In this episode he shows you how to attach an LCD screen directly to your Raspberry Pi using the I/O.   No HDMI adapter required.  Meanwhile, Felix removes the GPIO header, camera port, DSI port, HDMI, USB, and AV jack from the Pi.  Also, Ben goes over creating a RetroPie disc image and what you'll need to tweak in order to drive a TFT-LCD screen similar to the one on the original PlayStation Portable.  

     

    Community Feedback 07: Raspberry Pi Hacks

     

    Community Feedback 09: Portable Rasberry Pi Tips

     

     

    Product NameManufacturer Part Number
    Quantity
    Part Link
    Raspberry Pi Model A, BCM2835RASPBRRY-MODA+-512M1Buy NowBuy Now
    PCB, No Holes, Single Clad12X12WEC112X12WEC11Buy NowBuy Now
    Display Panel, Capacitive Touchscreen, TFT, 480 x 272RK043FN02H-CT1Buy NowBuy Now
    EVQ-Q2W03WEVQ-Q2W03WTactile Switch
    EVQ-Q2W03WEVQ-Q2W03W16Buy NowBuy Now
    Micro SD Card, 16 GB
    TSRASPI10-16GTSRASPI10-16G1Buy NowBuy Now
    SMD Chip Resistor, 33 ohmMC0805S8F330JT5EMC0805S8F330JT5E21Buy NowBuy Now
    USB Hub, Bus Powered, USB 3.0, 4 PortsU3-4HUB1Buy NowBuy Now
    Ribbon Cable, 40 Conductor, 30 AWGHF447/40 100'10"Buy NowBuy Now
    Ribbon Cable, 50 Conductor, 28 AWGR2651DTSY50SC8510"Buy NowBuy Now
    Speaker, Buzzer, Piezo, 8 ohm, 83 dB, 0 Hz to 3 kHzMCKP2644SP1F-4748MCKP2644SP1F-47482Buy NowBuy Now


    Get the Full Bom, Datasheets, Design Files, and Schematics on Github

     

    Ben’s got a 480x272 TFT-LCD screen, pretty much the same screen that was in the original PlayStation Portable.   He’s going to wire it up into 16-bit color which would be 5 bits of red, 6 bits of green, and 5 bits of blue.  Ben insulates the screen with a piece of plastic. He bends the ribbon cable back so that he can attach the breakout board into position.  He can then see how to fit on the Raspberry Pi A module.   Felix is desoldering some parts and should have that for Ben very soon. The plan is to manually wire from the Raspberry Pi over to the module.  The 50 pin TFT breakout that he’s using is from Adafruit.   It gives you a bunch of solder points so you can attach things to a TFT screen.  There is also a voltage booster on this board.   It’s for the LED backlight.   The LED backlight on this runs at 21 volts and they’re going to power this off 5. They will need a booster circuit to take the 5 volts this runs at and bump it up to a higher voltage that’s just 21. There’s a chip and a coil that will give them their higher voltage. Ben pulls out the header and inserts the flat flex ribbon cable into it.  Once he knows it’s in place he can lay it down and that tells him optimum position to place this board.  Ben puts the LCD breakout board in place and puts the depopulated Raspberry Pi board in place. Felix removed the GPIO header, camera port, DSI port, HDMI, USB, and AV jack from the Pi. Ben takes a look at a super useful document he found at  https://elinux.org/RPi_BCM2835_GPIOs. It’s a list of all the modes the Raspberry Pi GPIO can go into.  The thing to look at here is the alt versions.  If you go to https://www.raspberrypi.org/documentation/hardware/raspberrypi/dpi/README.md  you can find a depiction of how the GPIO can be mapped to an RGB color space or RGB pixels.   Using both sheets, Ben can cross-reference how to do the breakout board.  That will give him all the colors and then there’s also the signal pulses, data sync, vsync, etc, and that is listed as well.

    Next, Ben shows you how to setup retropie using win32diskimager.  You can get a RetroPie disk image from https://retropie.org.uk/.   He’ll test to make sure everything is working on another Raspberry Pi A.  That way he can make sure everything is working and compile the DTS file, then bring it over to the board he’s working on.  Once the image is complete, Ben shows you what’s on the SD card. He opens up the config text file and shows you what the DTD file looks like. The DTD file is a device tree overlay blob file which basically defines a lot of the functions of the Broadcom system on a chip processor.    When the system boots up it looks at the config file and the DTB files and it tells it what it should do.   They can modify these files in such a way as to use the new interface. Ben finds the config file for the 4.3 inch TFT on the Adafruit site https://learn.adafruit.com/adafruit-dpi-display-kippah-ttl-tft/installation  , although they’ll probably have to modify it a little bit.   He copies the config file for the 4.3” TFT file and adds it to the bottom of the confi g file on the SD card.  Next, he takes the DT blob file that he found at Adafruit, and copies over the code for the Raspberry Pi A plus.  He sets up the Raspberry Pi with ‘sudo raspi-config’, configuring localization and enabling SSH.  He installs a compiler for DTS file:

    $ sudo apt-get install device-tree-compiler

    And uses the following command to compile:

    $ sudo dtc –l dts -0 dtb –o dt-blob.bin dt-blob.dts

    The DTS file has been compiled into a bin file and it’s now time to tweak the config file. Ben connects a Raspbery Pi A+ directly to an LCD and then used a blob file along with the config text file to drive it.

     

    Disclaimer

     

    Act
    StatusDescription
    Deadline
    Act 1: Submit Your Audition TapeOpen

    Top Ten receive a free Bill of Material

    3/9/18
    Act 2: Declare Your IntentOpen

    Everyone who wishes to Participate must do this!

    3/31/18
    Act 3: Submit Your Project VideoNot Started

    Submit a project video with a handheld video game device

    4/2/18
    Act 4: Maker Film FestivalNot Started

    Project Videos released to the Public!

    4/4/18
    Act 5: Voting for Favorites4/4/18

    Community Helps Decide Winners

    4/9/18
    Act 6: Winners Announcement4/12/18

    Top 10 Project Videos Win $500 and Grand Prize Winner Appears on TBHS

    4/12/18