Shin-Yukari
  • Blog
  • Layout Description
  • Track Plan
  • LED Controller
  • Who am I?
  • Blog
  • Layout Description
  • Track Plan
  • LED Controller
  • Who am I?

​新ユーカリ駅

shin-yUkari station

N-gauge Japanese-style Model Train
​nゲージ鉄道模型

Tourist Info Display

21/6/2020

0 Comments

 
​Hardware components used:
* ESP32 (Lolin32) with 4BM Flash memory
* Tourist Information: 0.96" 80x160 RGB IPS display with ST7735 driver (only the top 80x80 pixels are used and visible)
  
  Connections:
  DISPLAY      ESP32
  --------------------
  GND            GND
  VCC             V3
  SCL             SCL       (SPI Clock)
  SDA            MOSI     (SPI Data (to slave))
  RES            GPIO4    (Reset)
  DC              GPIO2    (Data/Command)
  CS              SS/5      (Chip Select)
  BLK            GPIO15

Uploading files to the ESP32 flash:
Install ESP32 Filesystem Uploader in Arduino IDE
https://randomnerdtutorials.com/install-esp32-filesystem-uploader-arduino-ide/
https://github.com/me-no-dev/arduino-esp32fs-plugin/releases/

The size of the ESP32 SPIFFS partition can be set in the IDE as 1Mbyte or 3Mbytes.

Place the video/image files inside the sketch folder, in a folder called "Data".  Then upload all the files in the folder using the Arduino IDE "ESP32 Sketch Data Upload" option in the "Tools" menu.
​
The sketch loads
- an 80x80 pixel background image (back.jpeg) once at the beginning
- a sequence of up to one thousand 40x80 images (videoNNN.jpeg) stored in the built-in flash memory.
  
The videoNNN.jpeg files are built as follows:
- Scale and crop the source video to 40x80 (portrait) with Handbrake
- Extract the .jpeg files with ffmpeg:
    ./ffmpeg -i video.mp4 -s 40x80 -r 10 video%03d.jpeg
0 Comments



Leave a Reply.

    Categories

    All
    3D Printing
    Buildings
    DCC
    Electronics
    Kato
    Portram
    Rocrail
    Scenery
    Tomix
    Tomytec
    Tomytec Bus System

    Latest recap videos

    Archives

    November 2025
    September 2025
    August 2025
    July 2025
    May 2025
    January 2025
    December 2024
    September 2024
    August 2024
    April 2024
    March 2024
    February 2024
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    January 2021
    September 2020
    August 2020
    July 2020
    June 2020
    April 2020
    March 2020
    February 2020
    January 2020
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    October 2017
    July 2017
    November 2016
    October 2016
    August 2016
    March 2016
    September 2015

    RSS Feed

Powered by Create your own unique website with customizable templates.