No video

Control Arduino In JMRI - Easy CMRI Set Up

  Рет қаралды 8,827

Toms Trains and Things

Toms Trains and Things

4 жыл бұрын

Easily control your lighting in JMRI with a simple Arduino sketch using the CMRI Library. I'll take you through the steps to operate a number of LED's through the light table in Panel Pro.
There are many more possibilities for your model railroad operations through JMRI and Arduino. You can control your lighting, servos, relays, and much more. This is an easy introduction to get anyone started with Arduino & JMRI.
CMRI Library & Sketches:
github.com/madleech/ArduinoCMRI
JMRI:
www.jmri.org/
Arduino:
www.arduino.cc/
S U P P O R T THIS C H A N N E L
LOCALS: trainofthought.locals.com
Rumble: rumble.com/c/TomKvichak
Amazon Link:www.amazon.com/shop/tomstrain...
PayPal : paypal.me/tomstrainsandthings
Membership:
/ @tomstrainsandthings
Music on all videos from Epidemic Sound. Get One Month Free when you subscribe through this link. Here is a short playlist
share.epidemicsound.com/qj6qa...
CONTACT INFORMATION:
workbenchwednesday@gmail.com
tomstrainsandthings@gmail.com
tomstrainofthought.com/
#tomstrainofthought
#structurekits
#floridatrainshows
Disclaimers: all opinions are my own, sponsors are acknowledge.
Intended for viewers over the age of 14

Пікірлер: 42
@pdrrengineer1404
@pdrrengineer1404 4 жыл бұрын
Thanks Tom. Very well presented and explained. This should encourage more people to explore both JMRI and the use of an Arduino to control things on the layout. Art...
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
Glad it was helpful Art! That's my hope, that more modelers will get involved with both JMRI & Arduino.
@bernardc2553
@bernardc2553 4 жыл бұрын
He sure has opened my eyes to the endless possibilities Tom is Mr.Arduino ! Great man
@kenamosjr.bo_51
@kenamosjr.bo_51 4 жыл бұрын
Wow, now I've got to get some more arduino boards and have a go at this while I'm still planning my layout redo. Thank you Tom, we'll presented and looks like a heap of fun things will become possible here.
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
I'm always finding new things to do. I surprise myself sometimes. lol Currently working on some projects to expand on this video.
@iannelson6323
@iannelson6323 Жыл бұрын
This has been such a helpful, clear and simply explained video to help me debug - everything now works - fantastic. Thank you so much.
@TomsTrainsandThings
@TomsTrainsandThings Жыл бұрын
Glad it helped!
@iannelson6323
@iannelson6323 Жыл бұрын
@@TomsTrainsandThings I am now getting interference on feedback. Using twisted pairs for a and b connections to usb to rs485 module. Have grounded usb to rs485 module and also routed the CMRI bus away from other wires as far as possible. Any tips please?
@nesr8786
@nesr8786 4 жыл бұрын
Great job Tom, love your Arduino tutorials, i still have a little laugh at the new you, sounds as though you ate a news anchor lol , love it take care buddy,till the next time. Mac
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
Glad you enjoyed it Mac. Thought you were going to say "ate a bag of Doritos" lol
@nesr8786
@nesr8786 4 жыл бұрын
@@TomsTrainsandThings lol well that crossed my mind whilst i was watching, the Doritos and a flask for after the presentation,with your good Lady lol, you take good care of each other. :-) Mac
@alexs5700
@alexs5700 4 жыл бұрын
Cheers Tom interesting video will have a go @ this
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
Thanks Alex. So easy, I can even do it. lol
@FBMRR
@FBMRR 4 жыл бұрын
Ahhh ur teasing me... ok saving this for later.
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
I knew that would get your attention. The wheels are already turning. lol
@ramonvinualesgarcia4340
@ramonvinualesgarcia4340 2 жыл бұрын
Interesting, Thanks
@TomsTrainsandThings
@TomsTrainsandThings 2 жыл бұрын
Thanks for watching!
@dannydzware2023
@dannydzware2023 3 жыл бұрын
Amazing. thanks for the videos. I have a question: What is the simplest way to connect and control light signals? Is there an arduino code, where the arduino works as an dcc decoder? The arduino mega has a lot of outputs, so I could connect a lot signals. Thanks for your help
@TomsTrainsandThings
@TomsTrainsandThings 3 жыл бұрын
Geoff Bunza has a few videos & articles in Model Railroad Hobbyist Mag on making a decoder from Arduino. A lot of great ideas in his articles. model-railroad-hobbyist.com/blog/geoff-bunza
@robertlynnkim1
@robertlynnkim1 4 жыл бұрын
Amazing what you can learn from watching your videos. Not related to this subject, I have an Arduino Mega that I think went bad at the USB power in. It seems to still power up and had a sketch on it but does not do anything. I've been trying to load a sketch around the USB with no luck. The port does not show so I connected my adapter from my Pro Mini and the port shows but still it times out. Any ideas if it is fried? Thanks, Robert
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
Glad I could help! Sounds like you fried your Arduino.
@SheltonDCruz
@SheltonDCruz 3 жыл бұрын
Thanks Tom - question - can you have the DCC++ base station and CMRI running from the same arduino?
@TomsTrainsandThings
@TomsTrainsandThings 3 жыл бұрын
No.They are capable of only running one sketch. It's best to get another Arduino preferably a Mega
@redwoodcityintheuknscalera7179
@redwoodcityintheuknscalera7179 5 ай бұрын
Hi tom i am using common positive signals and trying to get them to work with cmri have tried the pca9685 route and failed miserably can you do a video which would help i have the cmri master loaded on my mega and a sensor shield
@TomsTrainsandThings
@TomsTrainsandThings 5 ай бұрын
Unfortunately CMRI is an old technology written before the PCA9685 came out. I have not tried it since this something completely different. You may want to check into DCC-EX in their use of the PCA9685 for servos and LED at the same time in rr automation. I'll give you an invite for their Discord where the developers monitor the chat and answer questions daily discord.gg/vrXrKQgs
@FredE528
@FredE528 4 жыл бұрын
Can I setup another configuration for my SPROG3 to supply power to the track along with the cmri setup?
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
Your only limited to the USB ports available. I use a USB port extender on my laptop
@FredE528
@FredE528 4 жыл бұрын
Thanks Tom.
@HumancityJunction
@HumancityJunction 4 жыл бұрын
Can you control the LEDs with a throttle or only through the Panel?
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
Working on figuring out all the possibilities. Everything is stored in the tables and can be controlled there, and also if you build a panel, it can be controlled there also. There is an option for a controller through inputs to control outputs. I"ll have to see what all is available.
@seasea3273
@seasea3273 2 жыл бұрын
How do you know what pins on the Arduino board to use?
@TomsTrainsandThings
@TomsTrainsandThings 2 жыл бұрын
You choose the pins you want. Just stay away from 0 & 1, those are Rx & Tx
@mattsynth
@mattsynth 3 жыл бұрын
I have an Uno running 24 servo controlled turnouts on my layout. I also have a Digitrax Zephyr to run my DCC functions and track power. Do you know of a way I could use the Zephyr switch function to trigger the Arduino turnouts using JMRI? That would entitle running Digitrax Zephyr and CMRI at the same time in JMRI. Would they talk to each other?
@TomsTrainsandThings
@TomsTrainsandThings 3 жыл бұрын
What means are you using to control 24 servos with an Uno?
@mattsynth
@mattsynth 3 жыл бұрын
@@TomsTrainsandThings two pcm9685 boards using I2C bus.
@johnm2004
@johnm2004 3 жыл бұрын
Tom, I followed your instructions and things went well until I restarted JMRI. The light table comes up but it is empty. The .XML file is there but it does not get loaded. Any idea where I went wrong? Thanks
@TomsTrainsandThings
@TomsTrainsandThings 3 жыл бұрын
You need to load the file
@johnm2004
@johnm2004 3 жыл бұрын
@@TomsTrainsandThings got it. Thanks.
@CM-ARM
@CM-ARM 4 жыл бұрын
I'm still lost. Think I might just use a switch.
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
More to come with turnout control
@MMRails
@MMRails 4 жыл бұрын
Beep boop beep. Does not compute.
@TomsTrainsandThings
@TomsTrainsandThings 4 жыл бұрын
Did you unplug your computer, and plug it back in? Did you clear your cache & cookies? Did you restart your program?
Basic Setup Of JMRI Panel Pro Layout Editor
10:44
Toms Trains and Things
Рет қаралды 18 М.
Easily Add Sensors & Outputs To DCC++ Part 2
11:30
Toms Trains and Things
Рет қаралды 6 М.
No empty
00:35
Mamasoboliha
Рет қаралды 11 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 31 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 29 МЛН
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Using an Arduino for Model Railroad Speed Matching
23:27
DIY and Digital Railroad
Рет қаралды 11 М.
Switching my layout and JMRI from using CMRI connections to using MQTT ones
17:29
Connecting CMRI over a wifi network using JMRI and ESP32 or Arduino boards
31:37
Wirenwood Model Railway
Рет қаралды 1,3 М.
Easily Add Sensors & Outputs To DCC++
11:05
Toms Trains and Things
Рет қаралды 15 М.
CMRI & JMRI Servos using an Arduino  Nano
29:50
Lawrence Eggering
Рет қаралды 2,9 М.
Arduino, CMRI and JMRI - Part 1 - Combined Sensors and Servos
13:43
Little Wicket Railway
Рет қаралды 27 М.
Model Railway Automation using JRMI Dispatcher and Simple Signal Logic
40:40
Little Wicket Railway
Рет қаралды 45 М.
Cheap and Amazing!  DCC-EX 2 Years Later
10:46
DIY and Digital Railroad
Рет қаралды 24 М.
Dennis Ferguson - Narrow Gauge Model Railroad - RGS Ophir Loop in On3
19:18
No empty
00:35
Mamasoboliha
Рет қаралды 11 МЛН