Skip to main content

Here is my broad goal: To expand what is possible with the LionChief remote/app.

Within that there are few projects I have going on: (most recent change will be highlighted)

1. A LionChief Gateway that interprets commands sent by the LC remote and adds things like new drive modes and accessory control. WORKS, Demo here: https://youtu.be/Ie4wmCQ8vOg

1b. LC App version of the same. WORKS, Demo here: https://youtu.be/ZtITYrEDdwc

2a. Lionchief remote control of TMCC/Legacy locomotives. Halfway done, demo: https://youtu.be/9tPro7mHm8A now done as of 3-29-21: https://youtu.be/S7KKZ_qipxE

2b. Legacy cab-2 control of LionChief trains. Demo here: https://youtu.be/4Ujb8xEGKEk

3a. An interior conversion board to add LC control to older Locos including postwar Pullmor motors.

          Bluetooth control demo here: https://youtu.be/KA2-Qvt5x-4

          Electro-Coupler working here: https://youtu.be/2E3mnqfNdRg

3b. A track power regulator that allows Bluetooth control of any conventional/transformer controlled loco. WORKS, Demo here: https://youtu.be/ZABna2tu9bE

4. An external sound board with a link to the LC remote or app via my LC Gateway project. Basically works as of 2-22-20 demo here: https://youtu.be/eIlx7CZphtk

5. Allow the synchronized running "Lashups" of multiple Bluetooth LC engines via Either the LC App or Remote. Works as of 2-8-20 demo here: youtu.be/mYDu9uKFSws

6. Build a Legacy cab-2 simulator for PC. I plan on using this as a development tool. https://youtu.be/guqH1td5vls

7. Voice Control integration through the Amazon Echo Smart Speaker (Alexa). Basic switching works as of 8-30-20 demo here: https://www.youtube.com/watch?v=fvsR4GAAetw

Probably more to come.



For now this will be restricted to the Bluetooth LC locos since the RF LC is a bit different.



Update from 8-30-20

Alexa voice control is now up and running with basic switch control to start off with.

demo here: https://www.youtube.com/watch?v=fvsR4GAAetw

Dedicated forum thread here: https://ogrforum.ogaugerr.com/...eaker-switch-control



Update from 5-31-20

Great news, I can now drive LionChief Trains using the Cab-2 Remote!

See it in action here: https://youtu.be/4Ujb8xEGKEk

I just recently bought a Legacy Cab-2 Remote System. My project of the last several months has been cracking/decoding the LionChief controller. I have now successfully integrated almost every feature of LionChief/LC+ into the Cab-2 remote using the correct buttons on the touch screen to set off the correct actions.





Update from 2-24-20

I got LC Electro-coupler control working on my postwar loco! https://youtu.be/2E3mnqfNdRg



Update from 2-22-20

Basic sound module built and tested. Just horn so far. A few glitches to work out: https://youtu.be/eIlx7CZphtk

Also I got LC control of a postwar locomotive working!! https://youtu.be/KA2-Qvt5x-4



Update from 2-15-20

TMCC control from LionChief remote is half done now. https://youtu.be/9tPro7mHm8A



Update from 2-8-20

Dual locomotive control from the LionChief app is up and running!

I also figured out synchronization of speed at least at the low end. Arguably a very useful feature.

Separate loco control is coming soon.

Theoretically I can do 20 LionChief locomotives like this. No idea how many will work in reality.

Video below.

youtu.be/mYDu9uKFSws

Update:1-28-20

Track power control for postwar via LC remote works! Video here: https://youtu.be/ZABna2tu9bE

I also picked up my new Union Pacific NW2 LionChief+ loco from TrainLand and am ready to start developing consists using the LC App and Remote.



Original post and other updates below

Hi everyone, My name is Ryan Morrison and I am new to the forum, the hobby and a new owner of a Lionel MTA LIRR M7 LionChief O Gauge Train. As a software engineer I am always into tying new things related to code and programming and so I wanted to try hacking into the communications between the LC remote and train. After a good amount of effort I am ready to present my first modification of the Lionel LionChief remote code.


This will probably be the first step in my DIY LC Bluetooth controller gateway project. For proof of concept I played the start of Wish Upon a Star using my Lionel M7 LIRR Lionchief train. One of the features I am adding is musical horns, In theory I can do any song that is possible in 5 different sound pitches or less. This is done by sending custom command codes through a custom program on my phone.
Watch the video below to see it in action. I compared it against/based it on the Disney Dream Cruise Ship Horn. Warning, it sounds terrible but it is only meant to be a proof of concept using rapid fire commands from custom code.

Wish Upon a Lionel LionChief Train: https://youtu.be/qYZuRjHYGk0

This should work in theory with any Bluetooth based LionChief Train, however further testing would be required to confirm.(UPDATE:12-30-19, It definitely works on their LC engines, I took my app to Trainland and had a random train in the store playing wish upon a star)

I plan to go a bit crazy with this and add programmed routines to my LC M7 LIRR train. First thing I had in mind was an automatic speed limit for certain areas of my track. After that I will probably work on other features, Possibly TMCC integration (not something I currently own anyway though), Automation via layout buttons, Multi LC train speed synchronization, Anything is possible in theory.

And to be clear this only works on the newer Bluetooth LionChief models, The older 2.4ghz LC remote would require a totally different interface.

My Project does not have any connection with the original remote or the official app. All custom hardware on the control side. At the moment my code is simple enough that I can just make my own android app out of it if I wanted. (I may still do that anyway, and add multi engine control while I'm at it) And who knows, I may end up selling this stuff to possibly help fund this new Lionel addiction I have.



UPDATE:12-30-19

I will likely try to make a new sound board/amp package that gets triggered by the LC Universal remote(I would like to gauge the interest level in this on the forums) as an alternative to using phones.

My top priority right now is to create a gateway that allows me to add external speed limits and momentum to the LC remotes and official app. As we know the LC app's momentum and speed limit settings do not apply to the non app based remotes. You can't just set the speed limit in the app and then hand a child the LC remote with a new speed limit applied to it. Same thing with Momentum. If we want to simulate a heavily loaded LC based freight train with momentum, the only current option is to use the LC phone app. My gateway will in theory allow me to implement those options as a master setting for all remote options. That way when you want to impose a speed limit for anyone who uses any remote it will be an option. With expansion interfaces I should also be able to have my gateway allow multiple remotes on one LC engine at the same time. Maybe allow you to designate a supervisor remote that overrides all other remotes. maybe you want multiple remotes to be able to trigger the horns and bells separately. Maybe you want a horn only remote that ignores speed input that you can hand to any kid without the chance of them creating a collision situation. All this is possible now that I cracked the code of these remotes. I am also trying to gauge interest in this type of gateway. Anyone interested?

As of two days ago I got the first hard part started, I have replaced the original app horn pitch change slider so that I can play musical horns, This is just to demonstrate that I have taken control of the train without the app. This will be a critical function for my gateway project. maybe I should call it a gatekeeper project though. Anyway the next thing I am working on is the code to get the original LC remote to connect to my gateway instead of the original engine.

UPDATE:12-31-19 3AM

I just cracked the other half of my gateway project. I just convinced the official LionChief app and the official bluetooth remote that came with my train to connect to my own controller board. This was a critical step in building my gateway project.

Updated 1-20-20

I am now controlling not only the LionChief train but also switches and postwar operating accessories all using the official LionChief App.

See the new YouTube video for details. https://youtu.be/ZtITYrEDdwc



Updated 1-23-20

here is the demo video showing the LionChief remote controlling not only the current generation of LionChief locomotives but also some post-war stuff. https://youtu.be/Ie4wmCQ8vOg

I am also working on hardware to convert postwar locos to LionChief.  I have two methods of attack for this problem. One is to regulate the track power via LionChief, and have a helper board to do electro-coupler control, lights and sound. And the other is to make a module that does it all on the locomotive side. I plan on starting with the track method since it will be easier to design and go from there.

Last edited by Ryaninspiron
Original Post

Replies sorted oldest to newest

I would like a Bluetooth device I could mount in one of my Box Cars and play music, train sounds, voice or what ever comes up. That would be cool too.

i have a blue tooth speaker I temporarily mount in a car but it has to he recharged regularly. If you had something like that where track power can charge it up, I am all in

@PSU1980, the power board @Brendan just suggested definitely seems like a good idea, however you just gave me an idea, I think I will try to whip up a soundboard that can be controlled from the universal LionChief remote. I would use the speed knob for sound track selection. You could turn the knob for a certain sound and press a button to trigger it. I would technically be simulating a train to the remote, I could probably repurpose the bell button for light control in cars with lights.

Last edited by Ryaninspiron

@PSU1980 I just went to microcenter and picked up components to prototype the Bluetooth box car module I had in mind. This is not going to be a simple Bluetooth speaker but a standalone mp3/mp4 file player that uses an SD card for storage. If I can figure out the code side of it it will be controlled via the LC universal remote. 

I feel like I should probably end up putting the audio module discussion in a topic of it's own soon. The dual speakers (stereo audio) plus the microcontroller, Bluetooth module, mp3 module, and power supply all fit within 1-1/4 inches of hight, 4-3/4 inches of length, and 1-3/8 inches of width. That has the option of running on a battery or a power pickup from the car (probably a light bulb wire). 

Here are some pictures of that sound package: 20191228_23214020191228_23173320191228_23161920191228_23122120191228_231124

Attachments

Images (5)
  • 20191228_232140: Tack power converter
  • 20191228_231733: Battery option
  • 20191228_231619: 4-3/4 inches long
  • 20191228_231221: 1-3/8 inches wide
  • 20191228_231124: Top down view
Marty R posted:
Brendan posted:

@PSU1980 Groove cube or this one would work.  You can power it with this.  

Brendan

 

Brendan,

that’s a cool find for stepping down the power. Is it a constant DC output, if the input AC varies? I power my track with a z4000. Somewhere between 18 and 22 Vac. I’m definitely not consistent. 
thanks

Marty

@Marty R I can answer that, The voltage you chose with the little screw potentiometer is fixed to within a few thousandths of a volt. I just tested an almost identical buck converter board on my Z1000 transformer and as long as the transformer was putting out more than 6 volts I was getting an almost perfect constant 5 volts output. That regulator can handle more than these transformers put out. Just test with a meter to make sure you have the output dialed in correctly first since these are adjustable regulators.

BOB WALKER posted:

For several years, a number of my BlueRail Trains equipped bluetooth controlled engines included an on-board bluetooth amplifier and speaker. The BlueRail app connects with the amp and provides a wide variety of sounds. Power to the amp is regulated to 5V and is sourced from either track AC or DC.

2GP9SNDB

Certainly a nice package there, nice to see, Even before I really got going into trains again like this I have heard of BlueRail. At this point I have a personal goal to get the official LC remote to send commands to a device of my own design and after that my plans open up a bit.

I will likely try to make a new sound board/amp package that gets triggered by the LC Universal remote(I would like to gauge the interest level in this on the forums) as an alternative to using phones. Maybe people would like the ability to keep cell phones out of the train room as a way to show kids these days that there are things that can be done without a smartphone. 

Also as I just added to my first post, my top priority end game right now is to create a gateway that allows me to add external speed limits and momentum to the LC remotes and official app. As we know the LC app's momentum and speed limit settings do not apply to the non app based remotes. You can't just set the speed limit in the app and then hand a child the LC remote with a new speed limit applied to it. Same thing with Momentum. If we want to simulate a heavily loaded LC based freight train with momentum, the only current option is to use the LC phone app. My gateway will in theory allow me to implement those options as a master setting for all remote options. That way when you want to impose a speed limit for anyone who uses any remote it will be an option. With expansion interfaces I should also be able to have my gateway allow multiple remotes on one LC engine at the same time. Maybe allow you to designate a supervisor remote that overrides all other remotes. maybe you want multiple remotes to be able to trigger the horns and bells separately. Maybe you want a horn only remote that ignores speed input that you can hand to any kid without the chance of them creating a collision situation. All this is possible now that I cracked the code of these remotes.

Exactly, I mean you can literally buy several LCs for the price of one legacy anyway. plus however many Bluetooth LC engines already are out there. 

One thing I have in mind for my LC gateway is setting up an ATC or even ATO function. I in my simple two level track only layout that I setup so far, I have an issue where my LC based M7 can derail depending on the position of a track switch when coming down hill as it gains a bit too much speed for the switch to handle it seems. Well I will try and add sensors to the track that will add a temporary speed limit to the train on its way down the incline (and only when it heads down hill since I need the speed to make it up said incline) and release the limit after the switch. an option that may also allow me to run tighter turns at "full tilt". I imagine such speed zones would also be nice for those with layouts including hard to reach switches (that they may want to always run slowly over). I have had Fast Track remote switches for example that only like being run below half throttle due to a manufacturing defect in the switch.(In my case that switch has since been replaced at no charge thankfully)

Last edited by Ryaninspiron
Landsteiner posted:

Nice work.  Perhaps Lionel would be interested in contracting with you to develop this as full blown commercial project?

Thank you, and as they say, your lips to God's ears lol. Either  that or a greenlight/LCS Partnership would be great. Though a contract would be a dream of course! I love my current job (Though not as cool as Lionel) but some contract stuff on the side would be amazing right now.

As soon as I can afford an LC+ locomotive I will be testing multi engine simultaneous controll from the app. I even have a plan to let you calibrate the speed of the locomotives.

In the meantime I will keep adding on new features to this gateway. I haven't run out of ideas yet. I would hope that the community can see this and possibly think of things they would like to do with LionChief if anything were possible. I have a feeling multi engine lash-ups are high on that list. 

I think it might be worth emailing Ryan Kunkle and/or David Olsen with links to your YouTube page and these threads.  Perhaps let them know you'd love to develop this further with their assistance/collaboration, and that perhaps they would consider providing you with a Legacy base and a couple of LionChief locos to facilitate this process.  State that you are open to anything from just their assistance to a formal developer status with Lionel, the latter with all the usual NDAs and lawyerly necessities, but that you realize it's their call.

If they are interested in the intellectual property perhaps a more formal contract and co-development arrangement (paid) could come now or down the road.  Back in the day, Lionel provided some folks who had technical skills (including a few who eventually became key Lionel employees) with early products for testing and suggestions. 

As you may know, for example, a guy named Jon Zahornacky developed TMCC receiver/command modules at the Electric Railroad Co.  He later became Lionel's chief technology officer and they bought out ERR from him.  Mike Reagan at TrainAmerica Studios, had Bob Krivacic design a similar device that was quite popular in the late 1990s and early 2000s, if I remember the years correctly.  These guys were gifted as product developers/engineers with day jobs but were entirely hobbyists in this regard, at least initially. 

Mike Reagan became an important executive at Lionel for many years in a variety of capacities.  Perhaps the current management are still open to such arrangements?  Worth a try.  If they say no, you can proceed on your own, since you are initially doing this for your own amusement and for the community good.  Hopefully they won't go all MTH on you and have their lawyers tell you you cannot develop or sell such products.  Obviously they cannot stop you from playing with the equipment in any way you like, whatever their lawyers say . They have no legal basis to do that. You bought it and can do with it whatever you like as long as you don't sell it. I very much doubt they will take that course, but it's a possibility.  Would be very disappointing if they did, and they would hear about it from lots of folks who benefited from the efforts at Train America and ERR in their day, including me.

Add Reply

Post

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
Link copied to your clipboard.
×
×