JMRI and MQTT with Arduino part 3 of 3 - Supporting shift registers

  Рет қаралды 1,015

Wirenwood Model Railway

Wirenwood Model Railway

Күн бұрын

Пікірлер
@ebjamville
@ebjamville 10 ай бұрын
Chris if you want to save some bits you can define signal heads as if they were on a SE8C in JMRI thus representing four aspects with 2 bits: turnout address. Tried it with CMRI, likely works with MQTT. You have me sold me on MQTT for layout and home automation. Doesn't quite work with the shift registers - oops. I'm using ws2812 LEDs for search light signals. Similar to SP RR.
@WirenwoodModelRailway
@WirenwoodModelRailway 9 ай бұрын
Hey Joe! I remember reading about those but was never short of bits or addresses really. I think it's useful for people who use DCC for turnouts as it saves on decoders. And yeah, MQTT! Perfect for what i need! Regards, Chris
@ebjamville
@ebjamville 9 ай бұрын
@@WirenwoodModelRailwayChris I don't use Digitrax I was curious if its definition worked and sure enough it does. As to descrete signal head LEDs: Adafruit HT16K33 Breakout will drive 128 on I2C.
@WirenwoodModelRailway
@WirenwoodModelRailway 9 ай бұрын
@@ebjamville thanks Joe. Dale mentioned something very similar i think, they do sound very convenient, especially if they do away with the need for resistors. Chris
@yenraccarnivor
@yenraccarnivor Жыл бұрын
Great Vids, i've now also migrated away from CMRI to use MQTT, as i already had the broker for home assistant ( which i plan to use to assist with some of the automations i have planned. I've gotten the turnouts and sensors all migrated fine, but the LED's i had on the PWM boards I cant work out how to utilise, i used to be able to on/off and set a brightness with CRMI. but you use shift registers which i currently have none of. Is there a "simple" mod to the code i can make to use leds on PWM?
@WirenwoodModelRailway
@WirenwoodModelRailway Жыл бұрын
Hi, i should think so as shift registers just complicate things really, so without them should be a little straightforward. There's an email address on the channel info, feel free to contact me if you like, I'm sure we'll work something out if you can give me a little more detail! Regards, Chris
@Nealos101
@Nealos101 3 ай бұрын
Thanks for all of your contributions there. I'm in no position to start something like this but I'm hoping to in the near future, and it is really hard to resist just up and getting all the parts and having a little play. We shall see; I do have a make shift workbench I can tide my time over until I can construct a proper layout. Are you still having relative success with MQTT? From your latest video it seems like you are, but always good to check as I don't recall hearing any gripes about it haha.
@WirenwoodModelRailway
@WirenwoodModelRailway 3 ай бұрын
Thank you! Short answer is yes, definitely! I keep meaning to make a 'two year review' kind of a video (it would be two and a half years now!) and when I was thinking about that, it got me thinking about the best and worst decisions I've made so far, in terms of cost in time, money etc. DEFINITELY the worst decision was to go with RS485, in terms of time. I just couldn't get it running reliably. I had nothing against C/MRI, it was just that RS485 was its natural conduit, I guess. RS485 was constantly failing, the cheap Chinese components incredibly sensitive and destructive - if one went, it seemed it could take out lots of other components on the RS485 bus, the issues spread like a virus. MQTT on the other hand, over ethernet and Wifi, which I'm much more familiar, comfortable and experienced with, has just worked and never caused any issues. The only slight issue is JMRI occasionally having timeout issues (usually at startup) with MQTT but that's very specific to my setup, and something the devs are actively helping me with (there are a few threads on the JMRI user group board if you're interested enough to search them out!) I think a test setup on a workbench is a good idea too, especially as you're starting out. On a smaller, concentrated setup it's easier to weed out any issues you might encounter while you're getting used to it all. Regards, Chris
@Nealos101
@Nealos101 3 ай бұрын
@@WirenwoodModelRailway that is very good to hear! My first degree course was around IP networking and MQTT had that familiarity about it, especially in terms of MAC address, IP Addressing and the like. I think I will in fact go for it in that case. The Mrs and I are currently in the process of moving you see, well, waiting for the contract process to move along to moving day, so after then I will have space to build my layout but before then yes I'll see if I can get a test rig setup. Thanks a lot - glad to hear it is working out and the only issue you've had is being investigated; I do know from friends the devs for JMRI are helpful like that and it's something to look forward to if I ever get stuck myself. Cheers Chris!
@sid21177
@sid21177 Жыл бұрын
I’m curious why you’re sticking with mqtt when you got cmri working over Ethernet ??
@WirenwoodModelRailway
@WirenwoodModelRailway Жыл бұрын
Ha good question! I think MQTT has more potential, for me. It's more than 0s and 1s, it can carry messages, like reporter output, RFID tags etc. It was a close run thing though and I definitely think that CMRI is among the best options for anyone who wants to minimise the amount of code involved. Regards, Chris
@anfieldroadlayoutintheloft5204
@anfieldroadlayoutintheloft5204 Жыл бұрын
good vid
@joedoe6471
@joedoe6471 Жыл бұрын
Great video Chris! I sent you an email about bitwrite and stuff.
@WirenwoodModelRailway
@WirenwoodModelRailway Жыл бұрын
Thanks Tom, I finally replied!
Using JMRI, sensors, Dispatcher and LogixNG to automate the parking of my trains
53:37
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Introducing: UniFi Access 3.0 and G3 Readers
1:23
Ubiquiti
Рет қаралды 19 М.
Build an Arduino EEPROM programmer
57:30
Ben Eater
Рет қаралды 1,6 МЛН
Retro MS-DOS Coding - Recreating the Iconic Award BIOS Screen
18:16
NCOT Technology
Рет қаралды 73 М.
EP. 20: HO Scale Resistor Wheelsets for Block Detection made EASY!
11:36
Using RFID over MQTT to help track trains around a model railway layout
34:35
Wirenwood Model Railway
Рет қаралды 3,6 М.
Upper deck progress - laying straight flexi-track and soldering dropper wire
26:28
Connecting CMRI over a wifi network using JMRI and ESP32 or Arduino boards
31:37
Wirenwood Model Railway
Рет қаралды 1,7 М.
Why build an entire computer on breadboards?
28:43
Ben Eater
Рет қаралды 3,2 МЛН
Configuring multiple occupancy sensors for one block in JMRI
16:39
Wirenwood Model Railway
Рет қаралды 1,9 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН