Magnorail - how to use reed switches and Arduinos

Information on how to control Magnorail tracks using reed switches and Arduino boards, and the various problems I had associated with laying the roadbed for the Accident model

Пікірлер: 198

  • @andrewjeffries8721
    @andrewjeffries87214 жыл бұрын

    John, what a delight to see the end result! A very creative scene that goes far beyond the usual static scenery of a model! Bravo, sir! Although I have other areas in which my creativity is focused I can appreciate that you had to plan, design, test, tweak and work a lot to make the finished product. God bless you, John! Well done!!

  • @johnsminiatures8955

    @johnsminiatures8955

    4 жыл бұрын

    Andrew, thanks for your kind comments. If you appreciated this video, I'm certain you'll like the next one that is going to be even more unusual and innovative. But it will take me about 4 months to make the new model.

  • @TimberSurf

    @TimberSurf

    4 жыл бұрын

    @@johnsminiatures8955 Can't wait!

  • @Mike_Hughes
    @Mike_Hughes11 ай бұрын

    OMG ! John, thank you SO much for 'introducing' me to this ! - I had absolutely NO knowledge of Magnorail... I did some work for Gerry Anderson on Thunderbirds (a very long time ago!) and know he, as I am now, would have been stunned at how useful this could have been !!! Take care, Mike

  • @bensonwr
    @bensonwr11 ай бұрын

    Started watching these videos intrigued by the creativity . THEN i recognised then I recognised your voice. Thank you for so much joy over the years

  • @Curious_Skeptic
    @Curious_Skeptic10 ай бұрын

    No idea how or why I'm here on this channel, but thanks KZread! This is just amazing! Mad skills on so many levels! Looks like fun, but no way I'd have the patience for all this.

  • @graealex
    @graealex11 ай бұрын

    Interesting to see this now. A few years ago, we used this system for a professional exhibit. But we used hall sensors and replaced the DC motors with servo stepper motors, so we could get synchronized travel, repeatable speed and just used one hall sensor per track as a reset point. Also used a fast Arduino Due.

  • @conorstewart2214

    @conorstewart2214

    10 ай бұрын

    For something basic you don’t need a fast microcontroller. The classic arduinos are slow but are definitely fast enough for models like this, people have even made drones with classic arduinos and they require a lot more precise timing and computation than a model. If you find you need a more powerful microcontroller for something basic it generally means you have inefficient or lazy code. You should also use everything available to you. Driving stepper motors directly from microcontrollers is a waste (not saying you did but just pointing it out). Just get a cheap stepper driver and then all you need is a signal to tell it the direction you want and a signal to tell it to step and the stepper driver will handle the actual motor movements and can do things like microstepping to get smaller steps or if using “silent” stepper drivers then the motor itself won’t make any noise.

  • @graealex

    @graealex

    10 ай бұрын

    @@conorstewart2214 For each level of micro stepping for example, you also need to provide double as many pulses to the stepper driver, for the same amount of rotation. So again having a fast micro is advantageous. Actually a lot of examples where the good old 8-bitters CAN perform, but DON'T particularly well. And there is no reason to optimize software to run on an underpowered micro if you're doing a one-off.

  • @modellbahnkeller
    @modellbahnkeller Жыл бұрын

    What an incredibly beautiful diorama with Magnorail. Thank you for your explanations. Best model railway greetings from Germany and thanks for sharing!

  • @Mike_Hughes

    @Mike_Hughes

    11 ай бұрын

    Guten Tag von Wales!

  • @bobuk5722
    @bobuk572211 ай бұрын

    Hi folks, I suggest using needle nose pliers or similar to hold the reed switch wires between the bend and the glass to further minimise the risk of damage. This action model looks wonderful does n't it!

  • @psycho_memphis
    @psycho_memphis4 жыл бұрын

    that's on a whole other level mate, congrats!

  • @Wolfyjinny
    @Wolfyjinny11 ай бұрын

    I love this little scene, so well thought out and executed.

  • @tnuag01
    @tnuag0111 ай бұрын

    Absolutely superb modelling - one of the most interesting videos I have watched in a long time. Thank you!

  • @mikefranks4528
    @mikefranks452811 ай бұрын

    Wow the finished product is amazing to watch. Just love it.

  • @jumbledfox2098
    @jumbledfox209811 ай бұрын

    This is incredible!! Absolutely beautiful and breathes life into a scene

  • @miccadehond3427
    @miccadehond34272 жыл бұрын

    What a delightfull masterpiece! A big compliment to you Sir from the Model Railway Club Deventer MSCD!

  • @schrodingerscat1863
    @schrodingerscat186311 ай бұрын

    First of all, this is a very good scene and takes Magnorail way further than I have seen before. Here's a suggestion though, something that would add a bit more realism would be to extend this concept to also control the speed of the Magnorail motor slowing it down so it's more realistic when vehicles go round corners.

  • @JK-zx3go
    @JK-zx3go11 ай бұрын

    The diorama is really brilliant.

  • @marcotrivelli2116
    @marcotrivelli211610 ай бұрын

    Brilliant! You confirm the discussion I had with a model maker-integralist: for him the models shouldn't be mobile, but all fixed! Evidently ten years ago I could already see far! But your model; very nice... only ever seen such a curved short bridge!!! 😊

  • @happyboar1019
    @happyboar10193 жыл бұрын

    The final result is wonderful 🤩 you did a great job 👍

  • @dusseljeef
    @dusseljeef4 жыл бұрын

    I like those "howto's" with technics as Arduino's. Thanks for sharing.. the video is well explained en the scenery is outstanding. Till next time!

  • @somedavechannel
    @somedavechannel11 ай бұрын

    just happened across this. you have a wonderful talent, and the diarama obviously tells a story... great work!

  • @kittonsmitton
    @kittonsmitton4 жыл бұрын

    What a fantastic addition, more tips tricks and special effects please.

  • @johnsminiatures8955

    @johnsminiatures8955

    4 жыл бұрын

    I'm starting work on a brand new model in the new year which I think will intrigue people! If you subscribe to my channel you will be notified when the video goes on line. Thanks for your interest.

  • @titusllewelyn
    @titusllewelyn11 ай бұрын

    Wow! The action model is wonderful! I now want to see all of them.

  • @heikoh.6833
    @heikoh.683311 ай бұрын

    Absolutely brilliant work. I love this idea and the craftsmanship. Greetings from Germany.

  • @DarwinsChihuahua
    @DarwinsChihuahua11 ай бұрын

    This is the coolest thing I've seen all day! That's amazing work on many levels!

  • @danielguimaraes8644
    @danielguimaraes86444 жыл бұрын

    Fantástico. Você é um mestre! Parabéns

  • @muriellestepler1148
    @muriellestepler11482 жыл бұрын

    Never seen something like this. Amazing. Thanks voor sharing

  • @charlesballard5251
    @charlesballard525111 ай бұрын

    THAT WAS WONDERFUL!!!!! Reminds me of a major accident or two that I had on my bike when I was a kid. Except no ambulance.

  • @robindow5742
    @robindow57424 жыл бұрын

    fantastic love te animation look forward to more videos

  • @colinrimmer789
    @colinrimmer7895 жыл бұрын

    Nice video John very informative 👍

  • @ZOMBIEHEADSHOTKILLER
    @ZOMBIEHEADSHOTKILLER11 ай бұрын

    i was impressed untill the bike crash.... then i was blown away, that was very unexpected, and well done.

  • @Gambiarte
    @Gambiarte11 ай бұрын

    The accident effect is very nice!

  • @ljliberto
    @ljliberto4 жыл бұрын

    Great job! Thanks for sharing.

  • @JohnGunter_Johnprime
    @JohnGunter_Johnprime3 жыл бұрын

    Great looking diorama!

  • @CrazyCoupleDIY
    @CrazyCoupleDIY11 ай бұрын

    Man this is an absolute masterpiece

  • @alanwhite4003
    @alanwhite40035 ай бұрын

    Brilliant stuff- need more please

  • @craigkershaw8593
    @craigkershaw85935 жыл бұрын

    Very clear and informative thank you

  • @Vonzack
    @Vonzack11 ай бұрын

    That's fantastic, what a great application of the magnarail and arduino's

  • @timchalk6810
    @timchalk681010 ай бұрын

    I love the mechanisms ised to illustrate the bicycle crash. Very clever 👍

  • @ovalwingnut
    @ovalwingnut5 ай бұрын

    That "motion" is so increadably smoooooooth. It's really quite breath·tak·ing. Thank you for the video. Cheers from So.CA.USA 3rd House On the Right

  • @ColorMeMozart
    @ColorMeMozart11 ай бұрын

    Wow, such amazing work, thank you for sharing!

  • @Orlabahner
    @Orlabahner3 жыл бұрын

    Wunderschöne Idee und sehr gut gemacht.

  • @RJHElias
    @RJHElias11 ай бұрын

    What a fantastic job! Respect!

  • @PaulRestorer
    @PaulRestorer11 ай бұрын

    Never seen something like this. Amazing. Thanks voor sharing👍

  • @AS-br6wd
    @AS-br6wd11 ай бұрын

    Absolutely brilliant

  • @billsmith3195
    @billsmith31952 жыл бұрын

    First time i have seen this and its most interesting.

  • @DomWPC
    @DomWPC4 жыл бұрын

    jeez, its almost like you've been a special effects expert for years and designed roller coasters or something 😉😂

  • @jaystocky4845

    @jaystocky4845

    4 жыл бұрын

    we got em bois

  • @johnsminiatures8955

    @johnsminiatures8955

    4 жыл бұрын

    Who would have thought it 🤔

  • @jaystocky4845

    @jaystocky4845

    4 жыл бұрын

    @@johnsminiatures8955 nice to see you're enjoying you're retirement John.

  • @ConsultingjoeOnline
    @ConsultingjoeOnline11 ай бұрын

    Amazing work!!! Wow

  • @RussellNelson
    @RussellNelson3 жыл бұрын

    Do you know about state machine programming? It's where you have a place in the code for every combination of events. So, the initial state would be "motors off". The next state would be "bicycle running before accident". The next state would be "bicycle stopped, rider thrown". Etc. The transition between the states is driven by the inputs, or a timer. So you would have a timer with a random timeout (so the scenario gets run at random intervals), which gets set when entering State 0 (motors off). When that timer fires, it sets the state to State 1 (bicycle running before accident) and turns on the motor for the bicycle magnorail track. It stays in State 1 until the reed switch fires saying that the bicyclist has reached his doom, then it enters State 2. Etc. It makes it very easy to make a script, because once you have created the engine that drives the state machine, the states themselves are like Lego(tm) bricks. If you want to change the script, just move the states and their actions and their triggers around.

  • @Mike_Hughes

    @Mike_Hughes

    11 ай бұрын

    This sounds brilliant! Thank you.

  • @TheEgoNaut
    @TheEgoNaut11 ай бұрын

    brilliant work👍

  • @mrab4222
    @mrab422211 ай бұрын

    4:55 You don't need the external pull-down resistor. The Arduino's I/O pins already have an internal pull-down resistor that's takes effect when you configure the pin with INPUT_PULLDOWN.

  • @gblargg

    @gblargg

    11 ай бұрын

    Earlier Atmega CPUs don't have that, just internal pull-ups. Of course he can just wire the reed switches to connect to ground and invert the meaning of the inputs.

  • @conorstewart2214

    @conorstewart2214

    10 ай бұрын

    @@gblargg all of the arduino clones I have used have had both pull ups and pull downs so I would imagine the genuine arduinos are probably the same.

  • @gblargg

    @gblargg

    10 ай бұрын

    @@conorstewart2214 Take a look at e.g. the Pro Micro schematic and the Atmega32u4 datasheet. No pull-down resistors.

  • @chuckvoss9344
    @chuckvoss934411 ай бұрын

    Amazing work. Thanks for sharing.

  • @lucianminea
    @lucianminea10 ай бұрын

    Very, very cool !!! Well done !!!

  • @javierdarlington4858
    @javierdarlington485811 ай бұрын

    Incredible GREAT JOB!!

  • @JohanSchwarz-Nielsen
    @JohanSchwarz-Nielsen Жыл бұрын

    Very impressing!👍

  • @Martin-pb7ts
    @Martin-pb7ts11 ай бұрын

    Very cool. I can only imagine how many hours of work went into this. I did a project some years ago where we wanted to demo something at a convention so we built a slot car track and we wanted to time the laps and have a board with the information in real time. We started with reed switches but couldn't get them to measure the passing cars accurately. I don't know if there was lots of electrical interference from the slot or if the car just went by too fast but we had to go with another solution. I did not know at the time that the orientation of the reed switch was important. We had an intern at the time doing the electronics and I wonder if he knew, he was really smart so he might have. If I ever bump into him I will have to find out. Maybe that was a reason for the problems we encountered.

  • @SleeTheSloth
    @SleeTheSloth11 ай бұрын

    Well done!

  • @buggy4696
    @buggy4696 Жыл бұрын

    Very nice video and I'm interested in knowing more about the special effects

  • @Daleb007
    @Daleb007 Жыл бұрын

    haha how cool is that bike, I love the little crash scene mate, very well done

  • @nitrorrat8190
    @nitrorrat8190 Жыл бұрын

    Awesome job sir

  • @matthewwalker7024
    @matthewwalker7024 Жыл бұрын

    Thank you for posting

  • @mylittleparody2277
    @mylittleparody227711 ай бұрын

    Very nice! Thank you for sharing.

  • @patrickrichmond9896
    @patrickrichmond989611 ай бұрын

    This is very educational as we learn also how the vehicles move on the Thomas the Tank Engine model series. I was wondering myself how the make vehicles like Bertie the Bus move or how sometimes the trucks or lorries move. And this is how it's done!

  • @user-dk9je2mb4x
    @user-dk9je2mb4x11 ай бұрын

    It is great! It is a cool story in the one little village! Decorations very cool! I mean you can add traffic light and other! Very cool!

  • @thatotherneil
    @thatotherneil11 ай бұрын

    Thank you for sharing this.

  • @JestersHammer
    @JestersHammer11 ай бұрын

    Now Scale it up from a Mini-Miniaturwunderland to a Miniaturwunderland. This little piece really leaves you in awe of what the guys in Hamburg have created.

  • @DigiLab360
    @DigiLab36011 ай бұрын

    4 Years late, but it is still brilliant in 2023.

  • @Phantomthecat
    @Phantomthecat4 жыл бұрын

    That’s very clever. 👍

  • @Venom2238
    @Venom2238 Жыл бұрын

    Loved it, the scene was very funny.

  • @computerjantje
    @computerjantje6 ай бұрын

    Thank you very much amazing creation. I love it

  • @leandrolambardi9712
    @leandrolambardi971211 ай бұрын

    Great channel! Amazing job! I just subscribed.

  • @radiancetoday5664
    @radiancetoday56643 ай бұрын

    great help bro. thanks. dbs from INDIA

  • @CONTAINERMAN68
    @CONTAINERMAN683 жыл бұрын

    This was FRICKIN COOL!

  • @christopherbaglin4314
    @christopherbaglin43144 жыл бұрын

    Marvellous stuff! Something to delight me as a 50 year old, but the 'magic' of it would have fascinated my (former) 5 year old self even more! Could vehicles designed for the Faller Car System work? Advantage being having working lights (though no doubt functionality would be limited versus a proper Faller road system), but maybe the front steering would function more like a real vehicle. Obviously the vehicle would need the motor to be removed or mechanically isolated. Problem with the Faller system seems to be that the vehicles need to be quite large to accomodate the drive system and battery, meaning that you are restricted mostly to commercial vehicles. With Magnorail, normal cars, as well as bikes and presumably motorbikes, could be used- but not as autonomously, since all vehicles on a chain would start and stop together. But I bet both systems could at least be used side-by-side.

  • @computersocsci
    @computersocsci10 ай бұрын

    The cheery music while panning up to reveal a freshly dug grave is some Monty Python level humor

  • @TrainLovers-TL69
    @TrainLovers-TL6911 ай бұрын

    Super model diorama Nice!

  • @TesserId
    @TesserId10 ай бұрын

    Would have liked to see more about the assembly, configuration, and operation of the track underneath. I suppose I should see if can look that up. Anyway, very charming scenario for the sequence.

  • @ianmusic19
    @ianmusic192 жыл бұрын

    ingenious. Well done.

  • @JonnyMudMower
    @JonnyMudMower11 ай бұрын

    This is amazing model building

  • @FallsGaming
    @FallsGaming11 ай бұрын

    that looks Neat!

  • @derailroad
    @derailroad Жыл бұрын

    great stuff here

  • @kevinbonner2308
    @kevinbonner230811 ай бұрын

    That's fantastic!

  • @arkyajyotighosh7051
    @arkyajyotighosh70513 жыл бұрын

    this is so awesome!!!

  • @medienmond
    @medienmond10 ай бұрын

    Whoaow. That's amazing...

  • @milana8276
    @milana8276 Жыл бұрын

    The best idea

  • @pauldejongh9524
    @pauldejongh9524 Жыл бұрын

    Very impressive.

  • @azyfloof
    @azyfloof11 ай бұрын

    I'd never heard of Magnarail before watching this, and I', so fascinated! :O The thumbnail looked particularly wild, like a robotic looking spin fossilised in stone :O Regarding Arduinos, I have a few genuine ones I got from Maplin years back (remember Maplin? :O) and I used those with the ISP program to problam bare chips. I can make incredibly miniaturised circuits that way

  • @luminousfractal420

    @luminousfractal420

    11 ай бұрын

    I used to run and get the maplins catalog of parts like it was my childhood comic 😊 Helped with tearing down vcr's and things for investigation. Loved brass and steel mechanicals in electronics.

  • @azyfloof

    @azyfloof

    11 ай бұрын

    @@luminousfractal420 I took apart an older model VCR a few years back, and the mechanism and arrangement of components compared to more modern VCRs is so much more wildly complex and satisfying :D The VCR really is the perfect marriage of electronics and mechanical engineering

  • @hobbyrob313
    @hobbyrob31311 ай бұрын

    How nice to see! the technique is also very well done! respect! Healthy and Friendly Greetings from the Netherlands! Rob

  • @rexremedy1733
    @rexremedy1733 Жыл бұрын

    This is really funny and kind of cute!

  • @dostoevsky1852
    @dostoevsky185211 ай бұрын

    Super job

  • @fipskirchinger319
    @fipskirchinger3194 ай бұрын

    Brilliant 😍

  • @F4ngel
    @F4ngel11 ай бұрын

    That... is amazing.

  • @samuelfellows6923
    @samuelfellows692311 ай бұрын

    The sequence that I saw was quite funny; the “magnetic” cyclist appears to cycle out of the barn > along the road and between the chevron signs and crashes > the ambulance appears and drives to the crashed cyclist, picks it up and wizzes off and the camera panned to the church yard and “there is the cyclists grave being dug” 😄

  • @roddiretor
    @roddiretor Жыл бұрын

    Fantastic

  • @sannyassi73
    @sannyassi735 ай бұрын

    Very cool!

  • @dxiixb
    @dxiixb11 ай бұрын

    very nice!

  • @torquebiker9959
    @torquebiker99595 ай бұрын

    Amazing!!!

  • @xfredstudio1779
    @xfredstudio1779 Жыл бұрын

    Amazing 😳👍🏻

  • @bobherbert6494
    @bobherbert64943 жыл бұрын

    This is outstanding and very clever. I want to build a variation of this idea and wonder if the script for the Bicycle Accident is available. It would be a good starting place.

  • @pypes84
    @pypes8411 ай бұрын

    WRT using photopaper as the running surface, polypropylene poster paper is pretty widely used in print for outdoor posters, it's similar to the stuff the new banknotes are made of, and I'd imagine it would work well as a replacement. If you had it printed on a suitable UV printer it would get a nice scale-accurate-ish matt finish for tarmac etc surfaces.

  • @Hermann.Ennenbach
    @Hermann.Ennenbach2 жыл бұрын

    inspirierend, vielen Dank

  • @ericperkins3078
    @ericperkins30783 жыл бұрын

    Wonderfully clever and skillfully executed. The cyclist was a hack, obviously, but everything else superb!