Schlagwort: OLED Display

  • Take things up a notch by turning the humble OLED into a rotary dial

    Take things up a notch by turning the humble OLED into a rotary dial

    Reading Time: 2 minutes

    Arduino TeamMay 3rd, 2022

    The 128×64 I2C/SPI OLED display is often included in a myriad of projects that need some way to show data, including text, shapes, or basic graphs. YouTuber ‘upir’ was able to take this concept one step further by turning his graphic OLED screen into a virtual circular dial that can respond in real-time to an external potentiometer connected to an Arduino Uno using the U8glib library.

    His very thorough video steps through the entire process of creating this setup, as everything from wiring to advanced graphics programming is covered. He started by flashing some demo code that takes continuous readings from a potentiometer via an ADC pin and showing the numeric value as text. After knowing that the values can be read correctly, upir then began work on the dial itself, which works by placing a series of tick marks at predetermined distances from each other. Lastly, value labels were included below every increment of 10 for improved readability.

    Originally, the system achieved an average of 10 FPS, but upir wanted to push it even further for maximum performance. Sending new pixel values to the screen caused the pixel calculations to be run multiple times, so by placing the intermediate data into a series of buffers and only drawing pixels once per page instead, a new FPS of 27.53 was achieved — an almost 3x improvement.

    To see more about this project, you can watch its video below.

    Website: LINK

  • Take things up a notch by turning the humble OLED into a rotary dial

    Take things up a notch by turning the humble OLED into a rotary dial

    Reading Time: 2 minutes

    Arduino TeamMay 3rd, 2022

    The 128×64 I2C/SPI OLED display is often included in a myriad of projects that need some way to show data, including text, shapes, or basic graphs. YouTuber ‘upir’ was able to take this concept one step further by turning his graphic OLED screen into a virtual circular dial that can respond in real-time to an external potentiometer connected to an Arduino Uno using the U8glib library.

    His very thorough video steps through the entire process of creating this setup, as everything from wiring to advanced graphics programming is covered. He started by flashing some demo code that takes continuous readings from a potentiometer via an ADC pin and showing the numeric value as text. After knowing that the values can be read correctly, upir then began work on the dial itself, which works by placing a series of tick marks at predetermined distances from each other. Lastly, value labels were included below every increment of 10 for improved readability.

    Originally, the system achieved an average of 10 FPS, but upir wanted to push it even further for maximum performance. Sending new pixel values to the screen caused the pixel calculations to be run multiple times, so by placing the intermediate data into a series of buffers and only drawing pixels once per page instead, a new FPS of 27.53 was achieved — an almost 3x improvement.

    To see more about this project, you can watch its video below.

    Website: LINK

  • Raspberry Pi retro player

    Raspberry Pi retro player

    Reading Time: 2 minutes

    We found this project at TeCoEd and we loved the combination of an OLED display housed inside a retro Argus slide viewer. It uses a Raspberry Pi 3 with Python and OpenCV to pull out single frames from a video and write them to the display in real time.​

    TeCoEd names this creation the Raspberry Pi Retro Player, or RPRP, or – rather neatly – RP squared. The Argus viewer, he tells us, was a charity-shop find that cost just 50p.  It sat collecting dust for a few years until he came across an OLED setup guide on hackster.io, which inspired the birth of the RPRP.

    [youtube https://www.youtube.com/watch?v=sOkLrHYF0rQ?feature=oembed&w=500&h=281]

    Timelapse of the build and walk-through of the code

    At the heart of the project is a Raspberry Pi 3 which is running a Python program that uses the OpenCV computer vision library.  The code takes a video clip and breaks it down into individual frames. Then it resizes each frame and converts it to black and white, before writing it to the OLED display. The viewer sees the video play in pleasingly retro monochrome on the slide viewer.

    Tiny but cute, like us!

    TeCoEd ran into some frustrating problems with the OLED display, which, he discovered, uses the SH1106 driver, rather than the standard SH1306 driver that the Adafruit CircuitPython library expects. Many OLED displays use the SH1306 driver, but it turns out that cheaper displays like the one in this project use the SH1106. He has made a video to spare other makers this particular throw-it-all-in-the-bin moment.

    [youtube https://www.youtube.com/watch?v=LdOKXUDw2NY?feature=oembed&w=500&h=281]

    Tutorial for using the SH1106 driver for cheap OLED displays

    If you’d like to try this build for yourself, here’s all the code and setup advice on GitHub.

    Wiring diagram

    TeCoEd is, as ever, our favourite kind of maker – the sharing kind! He has collated everything you’ll need to get to grips with OpenCV, connecting the SH1106 OLED screen over I2C, and more. He’s even told us where we can buy the OLED board.

    Website: LINK

  • Dragon Ball Z head-mounted Scouter computer replica

    Dragon Ball Z head-mounted Scouter computer replica

    Reading Time: 2 minutes

    Dragon Ball Z head-mounted Scouter computer replica

    Arduino TeamOctober 26th, 2018

    Those familiar with the Dragon Ball Z franchise will recognize the head-mounted Scouter computer often seen adorning character faces. As part of his Goku costume, Marcin Poblocki made an impressive replica, featuring a see-through lens that shows the “strength” of the person he’s looking at, based on a distance measurement taken using a VL53L0X sensor. 

    An Arduino Nano provides processing power for the headset, and light from a small OLED display is reflected on the lens for AR-style viewing.

    It’s not exactly perfect copy but it’s actually working device. Inspired by Google virtual glasses I made virtual distance sensor.

    I used Arduino Nano, OLED screen and laser distance sensor. Laser sensor takes readings (not calibrated yet) and displays number on OLED screen. Perspex mirror reflects the image (45 degrees) to the the lens (used from cheap Google Cardboard virtual glasses) and then it’s projected on clear Perspex screen.

    So you will still see everything but in the clear Perspex you will also see distance to the object you looking at. On OLED screen I typed ‘Power’ instead distance because that’s what this device suppose to measure in DBZ. 😀

    Print files as well as code and the circuit diagram needed to hook this head-mounted device up are available on Thingiverse. For those that don’t have a DBZ costume in their immediate future, the concept could be expanded to a wide variety of other sci-fi and real world applications.

    Website: LINK