TeCoEd (Teaching Computing Education)
  • Home
    • Freelance
    • Book
    • Downloading
  • Python
    • Learn Python >
      • Python Modules
    • PyGame Zero
    • Python Programs >
      • Higher or Lower
      • Magic Calculator
      • Password Checker
      • Python Pit
    • What's News App
    • Pixels to Cells
    • Python Mosaics
    • Python OCR
    • L-1-AM
    • Web Scraping >
      • Scraping Trains
    • Weather App
    • Snakes and Windows
    • Python Web Server >
      • Flask
    • Python Picks
  • Raspberry Pi
    • All About the Pi
    • Getting Started
    • Remote Desktop and VNC
    • Static IP Address
    • Sonic Pi >
      • 3.14
    • Twitter Feed >
      • Tweepy
    • Android & Pi >
      • Advanced Apps
      • Odds
    • A.I on the the Pi
    • CRON
    • Pick Your Own
  • Pi Hardware
    • Pi HATS >
      • Sense Hat Hacks
      • AstroPi HAT
      • Unicorn-HAT >
        • Unicorn Alphabet Disco
        • Uni Codes / Programs
      • Skywriter
      • Piano HAT
    • STS Pi
    • Pi Camera >
      • Pi-Cam, Python & Email >
        • Time Lapse
      • Pi Noir
    • Pipsta >
      • Flask, Input & Printers
    • Raspberry Pi Power >
      • Energenie IR power
    • Pibrella
    • Distance Sensor
    • LCD Screen
    • Pi-Tooth
    • Robot Arm
    • PiGlow
    • PiFM
    • Accelerometer
    • PiFace >
      • Installing PiFace >
        • Python Commands
  • Pi-Hacks
    • Drone Hacks
    • Pi Glue Gun Hack
    • Blinkt!
    • Sonic Pixels
    • R2D2
    • Get to the chopper
    • Astro Bird
    • Twitter Translator
    • Hacking a Robot
    • Nature_Box >
      • Best Nature Photos
    • Wearable Tech >
      • Project New York
      • P.N.Y Part 2 Health
      • P.N.Y Part 3 Games
      • P.N.Y Part 4 Translation
    • Dino-Tweet
    • Other Links
  • Pi-Hacks 2
    • The Joker
    • Hologram Machine
    • Google Vision: Camera Tell
    • Yoda Tweets
    • Pi Phone
    • Darth Beats
    • Twitter Keyword Finder
    • Crimbo Lights Hack
    • Xmas Elf
    • Halloween 2016
    • Halloween Hack 2015
    • Socrative Zombie
    • Voice Translation
    • The Blue-Who Finder
    • GPIO, Twitter
    • Pi Chat Bot >
      • Dictionary Definitions
    • PiGlow & Email
    • Pibrella Alarm System
    • SMS with Python >
      • Spooking a Mobile
  • Pi-Hacks 3
    • Ferminal
    • Crypto Tracker
    • David Bowie
    • Lamp Prank >
      • TEST
    • Yoda FM
    • Retro Player
    • LED Pixel Art
    • TARDIS
    • Battleships
    • LED Board
    • Night Vision
    • Enviro+ Weather
  • Minecraft
    • Minecraft API
    • Minecraft Sweeper
    • PiGlove: Minecraft Power Up
    • Minecraft Photo-booth
    • Rendering Pixels
    • Speed Cube
    • Lucky Dip
  • Computing
    • Why Computing?
    • Can You Compute
    • micro:bit
    • Coding Resources
    • Learn to Code >
      • Coding with iPads
      • Apps Creation Tools
      • sKratchInn
      • Sound Editing
    • Cheat Sheets
    • Theory
    • HOUR OF CODING
    • BEBRAS Computing Challange
    • Computer Facts
    • Free Software and Links
  • Contact Me

Raspberry Pi Retro Player


​This Raspberry Pi project is called “Raspberry Pi Retro Player” or RPRP which is RP squared, and it consists of a cheap OLED display that is mounted inside an old Argus slide magnifier.  I've had the Argus viewer for a few years, and I bought it from either a charity shop or a summer fete for £0.50.  I tried to get it to work a few years ago but for some reason could not and gave up.  However, I came across an OLED set up guide by Souvik Saha at https://www.hackster.io/souvik-saha)  which was clear and simple and easy to follow.  It inspired me and I thought I would give the project another try.

SH1106 Driver


So, what is it, at the heart of it the project is a Raspberry Pi 3 which is running a Python program that uses Open CV.  The program code takes a video clip and breaks it down into individual frames, each one of those individual frames is then resized and converted to black and white, (grayscale) and then each one of the frames is then written back to the OLED display . This creates the illusion of motion and the video plays on the display.  ​The OLED display uses the sh1106 driver which is a slightly different code than the standard Adafruit circuit Python library used for sh1306 displays.  This required a little bit of investigation and a slightly different setup to normal Souvik Saha guide. However, I have produced a video with a detailed explanation on how to do this should you buy a sh1106 display yourself. 

FAILS


​Another fail occurred as I was nearing the end of the project.  I had completed all of the code and placed all the hardware inside the viewer.  I was testing the code to ensure that it worked correctly and found that the button was no longer working. I have a different code to test buttons which I tried but this also failed so, I unscrewed whole of the setup, took it apart to discover that the wire to the button had broken off.  This was quickly resolved by soldiering it back on!
​As with all projects there were several fails, “first attempt in learning”.  The first one was finding the correct software to run the OLED display. The majority of displays use a driver called sh1306, however cheaper displays use a different driver, the sh1106.  This meant that for several days the images on display did not display correctly.  UKScone pointed me to the Luma library which is available here.

Download the code from GitHub

Powered by Create your own unique website with customizable templates.