Using an Arduino Mega with CMRI For JMRI

  Рет қаралды 11,126

Lawrence Eggering

Lawrence Eggering

Күн бұрын

This video is the first in a series about using C/MRI with JMRI to control lighting and sensors on your model railroad. I created this as there are several videos that show that their code works, that did not fully vet the process. With help from my friend Dr. Geoff Bunza and four volunteers on the JMRI groups.io, I have created this sensor and output sketch that works every time.
This can be used for detection, signaling, or used to animate projects on your model railroad.
Links to the Major parts used
Arduino Mega 2560 - smile.amazon.com/gp/product/B...
Arduino Mega Blue Sensor Shield - smile.amazon.com/gp/product/B...
Arduino Mega Yellow Sensor Shield - smile.amazon.com/gp/product/B...
Small voltage regulator - smile.amazon.com/gp/product/B...
Link to the CMRA library - github.com/madleech/ArduinoCMRI
Link to the AUTO485 library - github.com/madleech/Auto485
If you would like a copy of the code, my contact information is on my web site. CreakyChairModels.com

Пікірлер: 33
@lestaylor7767
@lestaylor7767 2 ай бұрын
Only just stumbled on Creaky Chair Models while trying to solve problems with CMRI, Laurance's explanation was really helpful and was looking forward to his other video's he was proposing Was upset to find out he had passed away, passing on my condolences to family, friends. A loss to the model railway / railroad community. R.I.P.
@eXtremeFX2010
@eXtremeFX2010 5 ай бұрын
Edger, thank you for your contributions to the Hobby... May you R.I.P 😢
@danny117hd
@danny117hd Жыл бұрын
Finally some code that correctly uses uppercase constants.
@LawrenceEggering
@LawrenceEggering Жыл бұрын
Thank you! I hope it helps with your projects.
@scentgrasslakerailway
@scentgrasslakerailway Жыл бұрын
Lawrence is a genius, his understanding and presentation is exceptional!
@LawrenceEggering
@LawrenceEggering Жыл бұрын
Thank you so much for the compliment. I am happy to help!
@cvrailroadinhoscale8338
@cvrailroadinhoscale8338 2 жыл бұрын
Lawrence, thanks so much as I am doing my block detection and signaling with Cmri , jmri and Arduino mega’s as nodes as we speak, my DCC ++ has been working beautiful for years so finding your channel is awesome, Dave…
@LawrenceEggering
@LawrenceEggering 2 жыл бұрын
Thank you so much for your kind words. I am a bit behind on releasing my next video as life happened a bit. Maybe this upcoming weekend.
@adambeedle
@adambeedle 2 жыл бұрын
Great video mate really informative
@LawrenceEggering
@LawrenceEggering 2 жыл бұрын
Thank you, Adam! More to come within a few weeks.
@scottebersole412
@scottebersole412 2 жыл бұрын
This is a great video! Thanks so much for sharing. I love automation and code and since I’m just starting my Ho layout this is going to take it to a whole new level. I know it takes time to create this content and it’s much appreciated. I also enjoy hearing you on the Crossing Gate podcast. 👍🏻👍🏻
@LawrenceEggering
@LawrenceEggering 2 жыл бұрын
Thanks, Oh so much. It is my honor to be able to help out..
@IBOFSGUBK
@IBOFSGUBK 2 жыл бұрын
Thank you, Lawrence, this video explains step-by-step information for novices such as me. I enjoyed every minute of setting this up. This is the first step in building a new layout in oo gauge. I shall look at your other videos to see what I can add next.
@LawrenceEggering
@LawrenceEggering 2 жыл бұрын
Thank you Terry. That is what I strive to do…
@JohnHill-qo3hb
@JohnHill-qo3hb Жыл бұрын
Lawrence, you are a life saver, this is just what I was looking for, thank you very much, subscribed!
@LawrenceEggering
@LawrenceEggering Жыл бұрын
Thank you so much for the compliment. I try to teach others how to achieve their goals. I am so glad it worked for you. 😄
@rccrawlervenezuela
@rccrawlervenezuela 2 жыл бұрын
Thanks for sharing your experience, I find this C / MRI + JMRI solution for the management of sensors and lights very interesting. I had seen another video with some examples of the code and I was able to get my DCC, Sensors and some lights to work. I kept looking for other videos with no luck, until today. I hope to see your future videos on this topic, and learn a little more about its use and configuration. Thanks again for sharing your experience.
@LawrenceEggering
@LawrenceEggering 2 жыл бұрын
Thank you this was fun to get working and solve the riddle of the resetting Arduino Mega!
@robbhalverson7725
@robbhalverson7725 Жыл бұрын
This is exactly what I was looking for. I am rebuilding my layout and am planning half of it to be fully automated for those days when I just want to relax and let trains run. I am ordering these items so I can get started in the next few days. This weekend is my first track laying day!
@LawrenceEggering
@LawrenceEggering Жыл бұрын
Thanks for the kind words. I use this on my layout all the time with excellent results! The first day of track laying is always huge.
@Deltic1951
@Deltic1951 2 жыл бұрын
Thank you very much for this excellent video and for the code. With the benefit of your detailed explanations and experience, I have managed to get by Mega/CMRI/JMRI setup working well. Below, shaung75 mentioned that credit for the code should go to Little Wicket Railway. Rob, from that channel, inspired me to have a go but I could not get his code to work for me. I am delighted that yours worked first time. I am next going to experiment with the addition of PCA9685 servo driver boards.
@LawrenceEggering
@LawrenceEggering 2 жыл бұрын
Thank you for the kind words. I also had trouble with his explanation. It got me motivated to make this work. I have a friend who is getting ready to have 90+ servos on his layout that will be using the beginnings of this code so it was time well spent.
@flywheels1916
@flywheels1916 5 ай бұрын
Would you mind sharing the code please.i can't get robs project to work also.thanks
@MaquetedoPetersen
@MaquetedoPetersen 9 ай бұрын
Good morning! Why don't you use multi-item creation when adding sensors, lights or other things to JMRI tables. I also had another question about your videos. Create a C/MRI connection, create nodes, create items in tables. I realized that you save properties and exit and enter JMRI. Did you notice any extra need to "give time" for JMRI to notice all these creations?
@pwilliamssa
@pwilliamssa 2 жыл бұрын
When I try to upload the sketch I keep getting "Invalid Library...\CMRI: no headers files (.h)... I've tried from scratch on three different computers and two different Uno's.
@LawrenceEggering
@LawrenceEggering 2 жыл бұрын
Be sure you have added the C/MRI library to the libraries folder for Arduino. For PC it is usually located in documents/Arduino/libraries.
@shaung75
@shaung75 2 жыл бұрын
Credit for the code should go to Little Wicket Railway...
@LawrenceEggering
@LawrenceEggering 2 жыл бұрын
Not really, he did inspire me but his system does not work without extensive modification. Tom’s Trains and Things and the developer of the libraries had it out first.
@raymondjackson6069
@raymondjackson6069 6 ай бұрын
Hello, if you are still posting, could you direct me to your code?
@flywheels1916
@flywheels1916 5 ай бұрын
is there anyone here that would like to share the code ? R.I.P. Lawerence
@pawelkrupowicz2539
@pawelkrupowicz2539 Жыл бұрын
Official Arduino Mega recommended input voltage on DC power jack is 7 - 12V, so all this talk about required regulated 5V power supply makes no sense whatsoever...
@martinezjm6666
@martinezjm6666 Жыл бұрын
Thanks a lot for this video! Could you send me the copy of the code? Please let me know if you need my email. Thanks
@LawrenceEggering
@LawrenceEggering Жыл бұрын
Thank you sir. I will need your email address please.
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 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 97 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 139 МЛН
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 93 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 19 МЛН
32. Block Detection on McKinley Railway.
12:51
McKinley Railway
Рет қаралды 99 М.
Control Arduino In JMRI - Easy CMRI Set Up
14:34
Toms Trains and Things
Рет қаралды 9 М.
Arduino Block Signal for Model Trains
42:40
DIY and Digital Railroad
Рет қаралды 74 М.
Custom Keyboard From Scratch Part 2
17:13
Casual Coders
Рет қаралды 40 М.
DCC Block Occupancy Detection in JMRI for £3 per sensor!!! 😮
11:01
Little Wicket Railway
Рет қаралды 30 М.
Electronics - The ELEGOO MEGA2560 R3 Most Complete Starter Kit.
25:22
36 - Signal lights using JMRI with an Arduino and C/MRI
58:11
Newcastle Central (OO Gauge)
Рет қаралды 13 М.
Handheld BASIC Computer in Badge Format with the Arduino Uno
21:17
element14 presents
Рет қаралды 13 М.
JMRI: Layout Editor, Interlocking, Routes, Roster and Throttles
33:13
Trains and Dioramas
Рет қаралды 29 М.
路飞被小孩吓到了#海贼王#路飞
0:41
路飞与唐舞桐
Рет қаралды 67 МЛН
готова дочка 🤣
0:13
Равиль Дукат
Рет қаралды 7 МЛН
Всегда снимай кольцо на речке
0:34
RICARDO
Рет қаралды 2,3 МЛН
Speed punched Messi 🫢🥊
0:50
GoalAntics
Рет қаралды 16 МЛН