OLEDを使った鉄道模型の幕回し Model Railroad Rollsign using OLED @diorama111
OLEDを使った鉄道模型の幕回し Model Railroad Rollsign using OLED  @diorama111
Uploaded August 2020 | Updated September 2026, 5 hours ago
YOMIXさんが小型液晶で幕回しをされているのを見て私も作ってみました。
使った模型はHOゲージの485系、ディスプレイは0.6インチのOLEDです。
このOLEDは64×64ドットの表示ができるのですが、模型の方向幕の穴から見えている部分は40×40ドット(約6.5×6.5mm)だけです。
操作は安価なMP3プレーヤーに付属していたリモコンで行います。
リモコンの1~9のボタンに各方向幕を割り当て(LEDタイプは1~3の3種類)、Modeボタンで幕とLEDタイプの切り替え、音量ボタンで明るさの調整ができるようにしました。
マイコンとOLEDの通信方法はSPIです。
画像データは40×40ドットのBMP画像をGIMPや自作のプログラムを使ってRGB233(赤2bit,緑3bit,青3bitの8bit 256色)に変換してから、マイコンに合うようHファイルに変えました。
これらのデータはマイコンのSRAMに入り切らないのでプログラムメモリに入れています。
このためHファイルにした画像データはプログラムのmain.cファイルと同じフォルダに置いてビルドする必要があります。

※映像に出てくる回路図のインダクタ(コイル)の数値が間違っています。正しくは10μHです。下記のリンクの回路図は訂正済です。申し訳ありません。

Mr.YOMIX made the rollsign of a model railroad using a small LCD, so I made it too.
My model is HO scale 485 series, and the display is 0.6 inch OLED.
The OLED can display 64x64 pixels, but the part visible from the hole in the model is only 40x40 pixels (about 6.5x6.5mm).
The operation is performed using the remote control that came with the inexpensive MP3 player.
Each rollsign is assigned to the buttons 1 to 9 on the remote controller(3 types from 1 to 3 LED sign), the rollsign and LED type can be switched with the Mode button, and the brightness can be adjusted with the volume button.
The communication method between the microcontroller and OLED is SPI.
40x40 pixels BMP image was converted to RGB233 (8bit 256 colors of red 2bit, green 3bit and blue 3bit) using GIMP and self-made program, and converted into an H file to match the microcontroller.
Since these image data cannot be stored in the SRAM of the microcontroller, they are stored in the program memory.
Therefore, it is necessary to put all H files in the same folder as the main.c file of the program and build it.

* The value of the inductor (coil) in the circuit diagram shown in the video is incorrect. The correct value is 10μH. The circuit diagram of the link below has been corrected. I'm sorry.


YOMIXさんのツイート
twitter.com/YOMIXtrains/status/1283011734953852934


【Circuit Diagram】
drive.google.com/file/d/1Qia2v5zrSm7eF1a_k1ZgFzGbKBV2iug0/view?usp=sharing

【Program】
drive.google.com/file/d/13K1UfzExmFZC6UT_GI6gXh4i9ZPrZUF3/view?usp=sharing

【Rollsign Image Data(zip)】
drive.google.com/file/d/1CP_n5BraeJqhOAcPKWXxjDw2IjV13PbY/view?usp=sharing


NHD-0.6-6464G Datasheet
drive.google.com/file/d/1EH_DopbbBcSPWaa_CXC0QHwHkCBiJp69/view?usp=sharing

SSD1357 Technical Data
drive.google.com/file/d/1lcKN6JQs9CoaeM8bFmoVpZLTazT4Ha4q/view?usp=sharing

ATmega328P Datasheet
drive.google.com/file/d/1WprIE4iQ44UWOJwr4xKxN__OYKwcKRcM/view?usp=sharing

MT3608 Datasheet
drive.google.com/file/d/11aQWzOoJkTMo8kWQvksDKjeUkQceH4FQ/view?usp=sharing

BGMはbeco様の「空を見上げれば」を使わせていただきました。
soundcloud.com/baron1_3/sora_wo_miagereba


0:00 OLED接続回路
1:22 メイン基板
3:21 プログラムの書き込み
4:45 動作確認
5:32 車両への取り付け
7:23 完成・動作確認

.
OLEDを使った鉄道模型の幕回し Model Railroad Rollsign using OLED1/18 AUTOart Skyline 2000RS-X (DR30) LED Light System1/150 N-scale Rollsign using a 0.42 inch LCD 幕回し Nゲージラジコン鉄道模型の作り方【鉄道模型】 LED 照明付 ディスプレイケース Display Case Lighting楽プラ AE86 トレノ TRUENO 1/32 SNAP KIT TOYOTADB20 動力化   MOD Motorized1/150 DIY Micro RC Truck & Trailerバッテリーインジケーター Battery IndicatorDiecast Car Collection 1/18 Autoart Lamborghini Reventon LED Scale Model Car1/10 ラジコン用 回転灯 パトライト エアロブーメランタイプThe Smallest DC-DC Step Up Boost Converter【1-4.5V to 5V】
diorama111 |

OLEDを使った鉄道模型の幕回し Model Railroad Rollsign using OLED

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER