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

​新ユーカリ駅

shin-yukari station

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

Construction site (4)

28/12/2022

0 Comments

 
​Working on the construction site this week.
First, new signboards and decals
Picture
Picture
Picture
Then, the first tests of the moving crane. The servo motor (controlled by an Arduino Nano) is right below the board. The rotation is not super smooth, I'll have to work on that!
0 Comments

Trains, trams and buses on the Yukari layout

9/1/2022

0 Comments

 
0 Comments

Tomytec Bus Automation (6)

20/6/2021

0 Comments

 
​Two years and five months ago, I managed to control a Tomytec bus by using an electromagnet under the road. I am now happy to report that I have finally been able to move the modules of the main street, bus interchange and Iwasehama station to the layout. All the wires for the bus control blocks, the hundreds of LED lights, the signals and the tracks are connected and everything seems to work fine. Well, not everything. There are still so many things to improve. These buses sometimes seem to have a mind of their own!
Next (major) step: finish the tram layout, and make sure that trams and buses don't collide! For that, I'll have to teach the Raspberry Pi Python application controlling the buses to talk to Rocrail! Interesting challenge.
0 Comments

Upgrading the Kato 23-600A Hino Poncho minibus

26/5/2021

1 Comment

 
1 Comment

Yukari Marui Building Display first test

21/6/2020

0 Comments

 
​- 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
0 Comments

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

Construction of the main street (2)

15/3/2020

0 Comments

 
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.
Picture
0 Comments

Tomytec Bus Automation (4)

9/3/2020

0 Comments

 
​This is where the bus guide wire crosses the tram track:
Picture
0 Comments

Tomytec Bus Automation (3)

8/3/2020

0 Comments

 
​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 🙂 
0 Comments

Tomytec Bus Automation (2)

2/2/2020

1 Comment

 
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:
Picture
Each bus block is a white rectangle. The block is highlighted
  • in red if there is a bus arriving or stopped inside
  • in yellow if the bus inside has stopped because of a traffic jam
  • in green if the bus is departing
For bus blocks that are bus stops, there is a timer that shows how long the bus will stop there.
The application makes sure that there is no collision. The video below shows the results of very the first test:
1 Comment

Tomytec Bus Automation

28/1/2020

0 Comments

 
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
  • Two bus lanes (one in each direction), with busses following each other and queuing at the bus stops and traffic lights.
  • Two car lanes, with all cars stopped because of the traffic.
  • The tram lane at the middle.
I have made significant progress in the past weeks and I am now able to
  • reliably detect the busses using hall sensors (placed just below the guiding wire)
  • stop the busses using electromagnets on the right side of the guide wire (the Tomytec busses detect the magnetic field and stop until it is switched off).
Under the bus lane, I will place “bus block” control units (I have built twenty of them so far) wherever I want the bus to (potentially) stop. This is what two bus blocks look like (seen from the bottom):
Picture
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):
0 Comments

Train speed measurement

27/10/2019

0 Comments

 
I used two infrared tracking sensor modules based on the TCRT5000 Reflective Optical Sensor to detect trains and measure their real speed. The sensor modules are "hidden" behind a concrete wall next to the track.
The sensors can be purchased from AliExpress (search for TCRT5000 module). They are connected to two digital input pins of an Arduino, itself connected to a small 128x32-pixel SSD1306-based OLED display.
The Arduino C code and more wiring information are available from my GitHub repository at:
https://github.com/madsing98/Yukari-Speed-Display
Picture
Picture
0 Comments

Welding station at the engine house

7/7/2019

0 Comments

 
0 Comments

One-minute transition from day to night

23/6/2019

0 Comments

 
0 Comments

New "sky" LEDs

22/6/2019

0 Comments

 
I changed the "sky" lighting to two rows of individually-controllable RGB+Natural White LEDs.
  • I am very happy with the Natural White color choice. The light is not as blue as cool white, and not as yellowish as warm white.
  • Using individually-controllable SK6812 LEDs means that the color of each LED can be set separately. They are controlled by an Arduino (or similar) microcontroller. Although I currently do not use this feature, it has been very easy to set up.
0 Comments

Tomytec bus system: Using an electromagnet to stop the bus

23/1/2019

1 Comment

 
Picture
I am studying how to automate the Tomytec bus system. There are many other blog posts describing how magnets are used to change the bus speed and temporarily stop the bus.
Here, I used an electromagnet placed under the track to stop the bus. As the electromagnet can be powered on or off, I will be able to remotely control the bus stop.
In this first test, I used a 13x27 12V 1W 10N (size 13x27mm, 12 volts, 1 watt, 10 newton force) electromagnet that can easily be purchased from AliExpress (look for solenoid, electromagnet, or follow this link). Its power consumption is about 100mA, which is reasonable, and the heat dissipation is not too high.
The bus stops when the electromagnet is powered, then restarts when I switch off the power supply.
1 Comment

Shin-Yukari Signs and Ceiling Lights

22/7/2018

0 Comments

 
Today I tested the signs and ceiling lights of the Shin-Yukari station entrance hall.
0 Comments

Shin-Yukari Station Signs

14/7/2018

0 Comments

 
To make lighted sign boards, I glued together six square white LEDs (connected as two groups of three), then added a thin styrene sheet before pasting the signs.
0 Comments

Speed measurement device

3/5/2018

19 Comments

 
This weekend, I developed a speed measurement device using
  • an Arduino Nano
  • two IR obstacle avoidance sensors connected to pins 2 and 3
  • a 128x32 pixel SSD1306 OLED display
​You will find the code below.
Picture
Code Editor

    
19 Comments

Uniqlo Store Display

15/4/2018

2 Comments

 
2 Comments

Lighting controller (1)

25/10/2016

0 Comments

 
Picture
This is the very first version of my lighting controller. It is based on a Raspberry Pi and several Adafruit 16-Channel PWM / Servo HAT modules. I will eventually not use these modules (see future posts about my lighting controller).
Picture
0 Comments

    Categories

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

    Archives

    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.