Magnorail - how to use reed switches and Arduinos

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024

ความคิดเห็น • 198

  • @andrewjeffries8721
    @andrewjeffries8721 4 ปีที่แล้ว +63

    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 ปีที่แล้ว +5

      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 ปีที่แล้ว +3

      @@johnsminiatures8955 Can't wait!

  • @TrainLovers-TL69
    @TrainLovers-TL69 ปีที่แล้ว

    Super model diorama Nice!

  • @victormanuelsemanatesolis3229
    @victormanuelsemanatesolis3229 ปีที่แล้ว

    Buenos días, gracias por compartir este video, quisiera saber donde puedo comprar los - magnorail - gracias

  • @distinctlyaveragecyclist
    @distinctlyaveragecyclist ปีที่แล้ว +1

    Great video, John. may I ask if the cyclist figures are indeed OO gauge (1:78) or the HO standard (1:87)?

  • @elanli9833
    @elanli9833 ปีที่แล้ว

    超酷的

  • @DomWPC
    @DomWPC 4 ปีที่แล้ว +19

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

    • @jaystocky4845
      @jaystocky4845 4 ปีที่แล้ว +2

      we got em bois

    • @johnsminiatures8955
      @johnsminiatures8955  4 ปีที่แล้ว +15

      Who would have thought it 🤔

    • @jaystocky4845
      @jaystocky4845 4 ปีที่แล้ว +3

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

  • @mrab4222
    @mrab4222 ปีที่แล้ว +13

    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 ปีที่แล้ว +3

      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 ปีที่แล้ว

      @@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 ปีที่แล้ว

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

  • @bobuk5722
    @bobuk5722 ปีที่แล้ว +17

    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!

  • @graealex
    @graealex ปีที่แล้ว +18

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว

      @@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.

  • @RussellNelson
    @RussellNelson 4 ปีที่แล้ว +35

    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 ปีที่แล้ว +1

      This sounds brilliant! Thank you.

  • @AndrewKing-rc5jj
    @AndrewKing-rc5jj ปีที่แล้ว +6

    Hi John, I know I'm 3 yrs late in getting to the party, but what you've created is amazing. I'm now looking at doing something similar to my railway. Would there be any chance of a glimpse of your schematics and arduino sketches.?

  • @Mike_Hughes
    @Mike_Hughes ปีที่แล้ว +4

    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

  • @malcolmmcgrath9344
    @malcolmmcgrath9344 ปีที่แล้ว +1

    What an awsome model. The poor cyclist, hope he is alright!

  • @azyfloof
    @azyfloof ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว

      @@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

  • @psycho_memphis
    @psycho_memphis 4 ปีที่แล้ว +5

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

  • @schrodingerscat1863
    @schrodingerscat1863 ปีที่แล้ว +4

    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.

  • @timd9430
    @timd9430 ปีที่แล้ว +1

    8:27
    Dead bicyclist 🚴‍♂️ 💀 🤣

  • @modellbahnkeller
    @modellbahnkeller ปีที่แล้ว +3

    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 ปีที่แล้ว +1

      Guten Tag von Wales!

  • @dusseljeef
    @dusseljeef 4 ปีที่แล้ว +3

    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!

  • @happyboar1019
    @happyboar1019 3 ปีที่แล้ว +3

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

  • @DigiLab360
    @DigiLab360 ปีที่แล้ว +1

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

  • @BrekMartin
    @BrekMartin ปีที่แล้ว

    I’m sure this is great, but I just dropped in to say the thumbnail looks like a live animal sliced in half 😂

  • @buggy4696
    @buggy4696 ปีที่แล้ว +1

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

  • @medienmond
    @medienmond ปีที่แล้ว +1

    Whoaow. That's amazing...

  • @lander1591
    @lander1591 2 ปีที่แล้ว +1

    Coming from experience, any unsealed wood or cardboard creation will eventually succumb to humidity and will suffer warpage and breakdown, unless you live in a desert or a salt mine of course. You can use paper and cardboard but the trick is to paint it and seal it from the elements with a doping agent like a varnish of some kind.

  • @Harrydewulf
    @Harrydewulf ปีที่แล้ว

    I'm baffled why anyone would use a computer for this. The whole thing can be done with basic electronics and the most complex component you would use is a timer.

  • @JK-zx3go
    @JK-zx3go ปีที่แล้ว +1

    The diorama is really brilliant.

  • @diymicha2
    @diymicha2 ปีที่แล้ว

    So cute and made perfectly. But you need to program a stop start ramp for the ambulance to make it look more natural

  • @YunScarlet
    @YunScarlet ปีที่แล้ว

    Can I know what is your light setup look like? It look fantastic, almost like natural light on cloudy day. And because some part like the horse look shiny, it almost look like they all wet, and the light make it look like it just stop raining

  • @TesserId
    @TesserId ปีที่แล้ว +1

    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.

  • @hobbyrob313
    @hobbyrob313 ปีที่แล้ว

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

  • @JestersHammer
    @JestersHammer ปีที่แล้ว

    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.

  • @ronliebermann
    @ronliebermann ปีที่แล้ว

    Magnetic reed switches are most commonly used as part of a stainless steel float, that sits in a gas tank.
    When the float (which contains a magnet) drops to a certain level, it causes the two parts of the reed switch to stick together, completing the circuit.
    So it’s a low-fluid level warning device.
    This guy is using reed switches horizontally! That’s new.

  • @Wranorn
    @Wranorn ปีที่แล้ว

    1 Ardunio or 32 Arduinos -- Depends how many triggers and actions you want. 1:1 your good, what if you want one trigger and 5 actions, or 5:15. Easier to use one.

  • @christiank1251
    @christiank1251 7 หลายเดือนก่อน

    2:06 "Then have a good look inside the glass..." - that's where I paused the video and opened a bottle of Loch Lomond.

  • @Curious_Skeptic
    @Curious_Skeptic ปีที่แล้ว +1

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

  • @PeterRichardsandYoureNot
    @PeterRichardsandYoureNot ปีที่แล้ว

    Use a pair of fine needle nose pliers (plastic if you can get them) to pinch about 1/2 mm away from glass, and then you can bend beyond the pliers as needed.

  • @tvtoms
    @tvtoms 3 ปีที่แล้ว +2

    I'm currently building a small railway and incorporating magnorail. I thought I would mention how I plan to handle the warping / disintegrating photo card due to moisture issue.
    I've chosen to snip off the mounting points on the "track" and I'm gluing down strips of 8mm foam around the entire track area. Similar to how the cork is done in the video, but snug against the track. When I'm ready to plaster, I plan to remove the magnorail system, and cover the foam not with the photo card, but with some styrene sheet I have on hand. When plaster and maybe even landscaping is all dry, I should be able to slice out the styrene, fit magnorail and glue down the photo card. Even still I worry about the card. Is yours still holding up OK I wonder?
    I would love to use an arduino or two for triggering events along the bike path. Really fun idea and execution. I love the accident videos for inspiration. Thanks for sharing it.

    • @johnsminiatures8955
      @johnsminiatures8955  3 ปีที่แล้ว +4

      Make sure the plaster is completely dry if you are using photo card or it will delaminate with the moisture. I prefer styrene or polycarbonate sheet. Good luck.

    • @tvtoms
      @tvtoms 3 ปีที่แล้ว +2

      @@johnsminiatures8955 Ordered arduino starter kit today. Should arrive tomorrow. My magnorail channel in 8 mm foam is almost all glued down. It's tricky since it's all new construction and it's also my first time working with all of these materials and components. Fun times. Now here I am considering adding more to it.. will plastering ever get done? Is there a place I can check out your code by any chance?

  • @andrewmcdonald9674
    @andrewmcdonald9674 ปีที่แล้ว

    Wait... Did the paramedics just dump the cyclist in a shallow grave ?

  • @conorstewart2214
    @conorstewart2214 ปีที่แล้ว

    You say you put in extra magnets to trigger the reed switches due to the orientation of the magnet that drives the bike or vehicle. Couldn’t you just put the reed switch under the track and use a single magnet?

  • @danielguimaraes8644
    @danielguimaraes8644 4 ปีที่แล้ว +4

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

  • @DavidG-wd9fz
    @DavidG-wd9fz ปีที่แล้ว

    I love how the ambulance ignores the car which has crashed into the river like .. nope, not today !

  • @microdesigns2000
    @microdesigns2000 ปีที่แล้ว

    Reed switches, the most annoying and unreliable devices I have had to deal with for my entire career.

  • @marvinhensbergen1515
    @marvinhensbergen1515 ปีที่แล้ว

    Maybe you can use the arduino to speed control the magnets, than you can smoothly stop en start, making it look even better.

  • @ОлександрВонорд
    @ОлександрВонорд ปีที่แล้ว

    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!

  • @leandrolambardi9712
    @leandrolambardi9712 ปีที่แล้ว

    Great channel! Amazing job! I just subscribed.

  • @havenbastion
    @havenbastion ปีที่แล้ว

    Definitely reduce the time between the bike crashing events. It looks like three separate events now.

  • @ljliberto
    @ljliberto 4 ปีที่แล้ว +2

    Great job! Thanks for sharing.

  • @christopherbaglin4314
    @christopherbaglin4314 4 ปีที่แล้ว +3

    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.

  • @PeterRichardsandYoureNot
    @PeterRichardsandYoureNot ปีที่แล้ว

    Is that Biden crashing on his bike? Sorry…it was just too similar.

  • @alexanderstohr4198
    @alexanderstohr4198 ปีที่แล้ว

    use pliers for bending. put them between the parts main body and the curve you want to bend.

  • @computerjantje
    @computerjantje 9 หลายเดือนก่อน

    Thank you very much amazing creation. I love it

  • @milana8276
    @milana8276 ปีที่แล้ว +1

    The best idea

  • @daveygivens735
    @daveygivens735 ปีที่แล้ว +1

    Magnificent work. I've been trying to solve a problem with simulated running water. I've been relying on analog motors to transport a card stock "stream". I wonder if this could be harnessed for same?
    Cheers!

  • @watahyahknow
    @watahyahknow ปีที่แล้ว

    wow this could become a whole seperate hobby next to running modeltrains

  • @mikefranks4528
    @mikefranks4528 ปีที่แล้ว +1

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

  • @robindow5742
    @robindow5742 4 ปีที่แล้ว +2

    fantastic love te animation look forward to more videos

  • @muriellestepler1148
    @muriellestepler1148 2 ปีที่แล้ว +1

    Never seen something like this. Amazing. Thanks voor sharing

  • @Fifury161
    @Fifury161 ปีที่แล้ว

    Fantastic drama! That must be a dangerous section of road as I see what a Ford Fiesta in the river too!

  • @radiancetoday5664
    @radiancetoday5664 6 หลายเดือนก่อน

    great help bro. thanks. dbs from INDIA

  • @renekreisel8165
    @renekreisel8165 3 หลายเดือนก่อน

    Fantastic but for me to difficult the electric😢😢😢😢😢😢😢😢

  • @jumbledfox2098
    @jumbledfox2098 ปีที่แล้ว +1

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

  • @PepeSi7via
    @PepeSi7via ปีที่แล้ว

    What fucking magical shit have I just come across

  • @tnuag01
    @tnuag01 ปีที่แล้ว +1

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

  • @Phantomthecat
    @Phantomthecat 4 ปีที่แล้ว +3

    That’s very clever. 👍

  • @tonywincott8448
    @tonywincott8448 4 ปีที่แล้ว +2

    incredible idea and amazing detail. do you have any more information on it, more details please.

    • @johnsminiatures8955
      @johnsminiatures8955  4 ปีที่แล้ว +1

      Have you looked at the accompanying video on using reed switches and Arduino boards at th-cam.com/video/ieiawg7offE/w-d-xo.html

  • @PaulRestorer
    @PaulRestorer ปีที่แล้ว

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

  • @javierdarlington4858
    @javierdarlington4858 ปีที่แล้ว

    Incredible GREAT JOB!!

  • @Justwantahover
    @Justwantahover ปีที่แล้ว

    All you need is the trains.

  • @bobherbert6494
    @bobherbert6494 4 ปีที่แล้ว +1

    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.

  • @carloshnunez
    @carloshnunez ปีที่แล้ว

    Very nice
    🔵🔵🔵🙂🙂🙂👍👍👍🔵🔵🔵

  • @ranchitasweetnsour
    @ranchitasweetnsour ปีที่แล้ว

    What does this have to do with the soul of a man?

  • @mylittleparody2277
    @mylittleparody2277 ปีที่แล้ว

    Very nice!
    Thank you for sharing.

  • @ColorMeMozart
    @ColorMeMozart ปีที่แล้ว

    Wow, such amazing work, thank you for sharing!

  • @rexremedy1733
    @rexremedy1733 ปีที่แล้ว

    This is really funny and kind of cute!

  • @Venom2238
    @Venom2238 ปีที่แล้ว

    Loved it, the scene was very funny.

  • @chuckvoss9344
    @chuckvoss9344 ปีที่แล้ว

    Amazing work. Thanks for sharing.

  • @ConsultingjoeOnline
    @ConsultingjoeOnline ปีที่แล้ว

    Amazing work!!! Wow

  • @alanwhite4003
    @alanwhite4003 7 หลายเดือนก่อน

    Brilliant stuff- need more please

  • @kittonsmitton
    @kittonsmitton 4 ปีที่แล้ว +2

    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.

  • @ovalwingnut
    @ovalwingnut 8 หลายเดือนก่อน

    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

  • @ganeshutopia2197
    @ganeshutopia2197 2 ปีที่แล้ว

    what this product name from china

  • @ydoucare55
    @ydoucare55 ปีที่แล้ว

    7:45 - Polycarbonate has a glass transition temperature of 147deg C. It's one of the more heat resistant thermoplastics.

  • @charlesballard5251
    @charlesballard5251 ปีที่แล้ว

    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.

  • @FallsGaming
    @FallsGaming ปีที่แล้ว

    that looks Neat!

  • @JeffDM
    @JeffDM ปีที่แล้ว

    Polycarbonate is a higher temperature plastic than many that people generally work with. If you’re warping it with lighting then you’re probably going to have plenty of other problems too.

  • @samuelfellows6923
    @samuelfellows6923 ปีที่แล้ว

    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” 😄

  • @somedavechannel
    @somedavechannel ปีที่แล้ว

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

  • @JonnyMudMower
    @JonnyMudMower ปีที่แล้ว

    This is amazing model building

  • @thatotherneil
    @thatotherneil ปีที่แล้ว

    Thank you for sharing this.

  • @Andrea.Gandalf
    @Andrea.Gandalf 3 ปีที่แล้ว

    beautiful, good job, one small thing would be missing, the cyclist's scream and then the moans of pain 😀

  • @ABW941
    @ABW941 ปีที่แล้ว

    I build static models, most of the time, but i wonder if one could use black sandpaper for such a road? It looks like asphalt and can be altered to show wear and tear, the impact of the seasons etc. For static models it is quite nice.

  • @gazzak9657
    @gazzak9657 5 ปีที่แล้ว +1

    hi just found your channel what a brill idea have you any more details of programing via reed switches i have a faller system and would like to add some effects
    chers
    Gary

    • @johnsminiatures8955
      @johnsminiatures8955  4 ปีที่แล้ว

      Hi. If you want to message me I can send you the Arduino code

  • @ModelMakers
    @ModelMakers 2 ปีที่แล้ว

    Hello there. Thanks for your good videos giving such good information. Do you think magnorail system can do 12 working hours non stop? Any problem you think we might have?

  • @SleeTheSloth
    @SleeTheSloth ปีที่แล้ว

    Well done!

  • @lucianminea
    @lucianminea ปีที่แล้ว

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

  • @ZOMBIEHEADSHOTKILLER
    @ZOMBIEHEADSHOTKILLER ปีที่แล้ว

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

  • @CrazyCoupleDIY
    @CrazyCoupleDIY ปีที่แล้ว

    Man this is an absolute masterpiece

  • @matthewwalker7024
    @matthewwalker7024 ปีที่แล้ว

    Thank you for posting

  • @heikoh.6833
    @heikoh.6833 ปีที่แล้ว

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