N-gauge Japanese-style Model Train
This is the catenary system for the tunnel section east of the underground station. It is built using Evergreen styrene H columns. The bottom (top on the photo below) is covered with aluminium foil.
These bathrooms were scratch built using styrene sheets. The outside walls are printed on photo paper protected by a dull clear coat.
The prototype can be found in front of Shin-Yokohama's station. They have been recently renovated and are part of the Do Amenity network.
This is what I have done with the "smallest display in the world"
The display is a tiny 72x40 0.42" OLED display, available from AliExpress here:
For this project, I have used a Seeeduino Xiao microcontroller.
I highly recommend it. The Seeeduino Xiao is compatible with the Arduino IDE, but it is much more powerful, using a SAMD21 chip with much more memory than an Arduino Nano (for example).
Fitting the display at the back of the truck was not easy. The display's flat cable is hardly long enough to hide the controller board under the street.
All LEDs are 0402 (0.5 x 1mm) LEDs purchased pre-wired from AliExpress (look for "wired 0402 led"). When fitting the LEDs:
The Round Cushion Drums and Barricade Chain Stand KY Blocks have been 3D printed locally. I modelled them taking these sites as reference:
I have designed the 3D model using Autodesk Fusion 360
The design of the main building of the tram terminal station was clearly inspired by the Iwasehama station (岩瀬浜駅, いわせはまえき), which is a town of the Toyama Port on the Sea of Japan and last station of the Toyama Chihō Railway Toyamakō Line (also called Portram).
- TFT display is 320x240 (240x320 portrait) ILI9341
- I use fbtft_device to drive the display
- The video is a h.264 mp4 file played by mplayer
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)
SCL SCL (SPI Clock)
SDA MOSI (SPI Data (to slave))
RES GPIO4 (Reset)
DC GPIO2 (Data/Command)
CS SS/5 (Chip Select)
Uploading files to the ESP32 flash:
Install ESP32 Filesystem Uploader in Arduino IDE
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
Received the new Greenmax 2594 (non working) Repeat Signals. They really look good!
Trying to fit 0402 LEDs into Kato 23-214 traffic lights. It works, but I am just going to install one LED (either green or red) in each signal.
Next step: the bus interchange. I have built a switch for the bus: a servo motor moves the guide wire towards one of the two positions.
It works 🙂
Today, I have started the integration of the system into the python application that runs on the raspberry pi (the same one that controls all the LEDs on the layout).
I have added a screen to control the busses, it looks like that:
Each bus block is a white rectangle. The block is highlighted
The application makes sure that there is no collision. The video below shows the results of very the first test:
For more than a year now I am trying to control the Tomytec busses (fitted with a BM-01, BM-02 or BM-03 motor). My ultimate goal is to make the street at the centre of my layout look like this:
There will be
They will all be connected to a Raspberry Pi, which will be able to control the traffic flow.
All of this is still under development, but this weekend I have been able to connect eight bus blocks, and this is the result (that I find really encouraging):