No video

Arduino for Lego Trains #3: Motorized Track Switches

  Рет қаралды 3,961,297

Arduino Lego Trains

Arduino Lego Trains

Күн бұрын

Пікірлер: 208
@nvanderbyl
@nvanderbyl 8 жыл бұрын
What an amazing instructor - love the approach, humor, and keeping it simple by using plain English... more, more!!
@schwarzerritter5724
@schwarzerritter5724 6 жыл бұрын
I like that you put a clutch in there, most other versions connect the motor directly to the switch.
@keeganmyers7627
@keeganmyers7627 3 жыл бұрын
Yeah I put a solid gear and it always grinded until I put the clutch on it
@dezzodarling
@dezzodarling 8 жыл бұрын
I have always been a firm believer in that if you put technology into toys, then kids will WANT to learn - and what more universal toy than a train set - being a Lego train set, this now combines 3 hobbies into one - model trains, Lego and Arduino! Well done!
@ElectraFlarefire
@ElectraFlarefire 8 жыл бұрын
I didn't even know LEGO had a clutch! All the LEGO trains stuff is fairly unknown to me, I didn't know it was quite this sophisticated, but that might also be the impression your setup gives. Also; your videos are well presented and entertaining. Watching the one presented on hack-a-day made me want to watch more.
@newgreenmusic99
@newgreenmusic99 7 жыл бұрын
Electra Flarefire ķ
@TheRealChrisOwen
@TheRealChrisOwen 5 жыл бұрын
I understand that there's effectively nothing too complicated in this, but I'd just like you to know that you just blew my mind. I've never coded and you just hit hero status in my book. That would be a "Like" and a Subscribe!
@JoeParkerAndThePower
@JoeParkerAndThePower 2 жыл бұрын
Expect lots of ppl know this but there was a magnetically switched set for the older (12-15VDC) sets
@Flec2507
@Flec2507 4 жыл бұрын
Please come back man, I love your tutorials
@Echolic
@Echolic 3 жыл бұрын
A Brit dude with brilliant story telling educating me about arduino and trains? YES PLEASE
@dr.trains119
@dr.trains119 Жыл бұрын
they did make a track switch for the gray 12v trains but the are very rare so its just easier to make this
@mondhaus
@mondhaus 9 жыл бұрын
The older 12V system had switches that were remote controlled. 753 and 754 seems to be an older version (blue) while I had two in grey.
@contactATashleygriffin
@contactATashleygriffin 3 жыл бұрын
7858 for the grey 12v switcher, they did ALOT, lights that stopped the trains and de-couplers
@LordPhobos6502
@LordPhobos6502 7 жыл бұрын
I built a couple of these, they're great! :) Can be modified easily to work with power functions motors as well.
@ArduinoLegoTrains
@ArduinoLegoTrains 7 жыл бұрын
Great to hear!
@dumthapa7688
@dumthapa7688 7 жыл бұрын
Arduino Lego Trains Jdbxhye
@GordieGii
@GordieGii 6 жыл бұрын
Great video! I have a comment about your programming, and you have probably figured this out, but I feel I should put in my two cents worth. It's not a void. It's a subroutine. Void is the return type, which is to say, some subroutines return some value to the calling code, kind of like a function, and some don't. When a subroutine is meant to return a value you have to specify what type of value, like integer or float so the compiler knows how much memory to reserve for the return value. When a subroutine is meant to just perform some action and not return any value the return type is void (none, null or N/A) so the compiler knows it doesn't have to reserve any memory for the return value.
@flamurbedrolli802
@flamurbedrolli802 6 жыл бұрын
Amazing. Like that you can build a city and make it intelliegent.
@NeoSephirothVal
@NeoSephirothVal 8 жыл бұрын
Thank you so much for this video. It helped me a lot. But I use old 4,5v motors and a 12v train transformer to remote control it. It works perfect. Just like the old 12v stuff but with 9v tracks
@ArduinoLegoTrains
@ArduinoLegoTrains 8 жыл бұрын
+NeoSephirothVal Great to hear! Why not make a short video showing us what you've done?
@NeoSephirothVal
@NeoSephirothVal 8 жыл бұрын
Sure, I will do that when the parts from bricklink arrive. Atm it's way to colorfull. I want that complete dark blue gray.^^
@ArduinoLegoTrains
@ArduinoLegoTrains 8 жыл бұрын
Yes, one of the hardest parts of this design is finding all the pieces in one colour! The old 9v points use dark grey (not dark blue grey), which isn't easy to find any more... especially when you have 12 points!
@NeoSephirothVal
@NeoSephirothVal 8 жыл бұрын
I tried to get the parts in dark grey, but I would had to buy in 6 different shops and it would cost me 3 times as much. That's why I use dark blue gray.
@goldfing5898
@goldfing5898 2 ай бұрын
@@ArduinoLegoTrains I wouldn't mind chosing a different color, as long as it looks good. After all, the 12V switches of the 1980s had light grey rails and housings of the switch motors, but dark grey sleepers. Another channel here shows several colors of the gearbox, like red, yellow, blue etc., which helps color coding different switches and looks nice.
@NANONilsWORLD
@NANONilsWORLD 8 жыл бұрын
Ich ärgere mich auch noch immer das LEGO hier keine elektrischen Weichen anbietet. So eine große Firma, und sie geben uns Kunden nicht das was wir möchten.. schade. Mal sehen wann endlich was rauskommt. Danke für dies Video !!
@schwarzerritter5724
@schwarzerritter5724 6 жыл бұрын
Es ist LEGO, wir brauchen keine speziellen Weichen.
@Metal-Possum
@Metal-Possum 6 жыл бұрын
Lego DID solve this problem. The old 12v train system had motorised switches available.
@goldfing5898
@goldfing5898 2 ай бұрын
Yes, but they never solved it for the 9v switches introduced later in 1991.
@RickJando
@RickJando 6 жыл бұрын
Very clever.A very nice video to see.
@alohava
@alohava 8 жыл бұрын
Amazing! Thank you for explaining this so simply. Would you be able to post a list of parts used? I can't quite tell from the video which size gears and axles you used. Thanks!
@goldfing5898
@goldfing5898 2 ай бұрын
He added a parts list in the description, which was very helpful to me, too.
@5hanesBoard
@5hanesBoard 8 жыл бұрын
Im not into the new gear, but as a child I am sure we had electronic points in the 12v days.
@DENPTrains
@DENPTrains 8 жыл бұрын
Yes 12V did have that and more
@NarendraSingh-xj8ww
@NarendraSingh-xj8ww 6 жыл бұрын
5
@EricTheYounger
@EricTheYounger 9 жыл бұрын
This series is really great! However, right now you are demonstrating how to modify the old 9V lego train kits, which are no longer produced. It'd be great if you could show us how to modify the newer RC ones.
@shaikhppllk4oisaif907
@shaikhppllk4oisaif907 6 жыл бұрын
EricTheYounger vvğ
@sabinabakiri9237
@sabinabakiri9237 6 жыл бұрын
EricTheYounger hf
@afifahwinda4330
@afifahwinda4330 6 жыл бұрын
EricTheYounger ducat I don't know
@rixakunter1747
@rixakunter1747 6 жыл бұрын
EricTheYounää
@user-bx1in2ji7z
@user-bx1in2ji7z 6 жыл бұрын
EricTheYounger ั
@gregorioeugenioragazzini1824
@gregorioeugenioragazzini1824 8 жыл бұрын
Hello, your videos are very helpfull and i would like to control my lego 9v trains too. I have already an arduino and driver motor, coud you explain me in more details how the Motorized Track Switches works, and where i can find the 9V Motor with Gear Reduction 5225 ( i suppose)? thanks!
@akhuskie
@akhuskie 6 жыл бұрын
Any suggestions for when the switch is too stiff and the clutch engages too soon?
@ArduinoLegoTrains
@ArduinoLegoTrains 6 жыл бұрын
You can try switching the position of the large gear and the clutch gear. This has helped me with some stiff switches.
@akhuskie
@akhuskie 6 жыл бұрын
This seems to do the trick, thanks!
@sheraz14
@sheraz14 7 жыл бұрын
Good work mate I love it.
@jazzmine3446
@jazzmine3446 8 жыл бұрын
awesome love it
@michelvandenbergofficial
@michelvandenbergofficial 8 жыл бұрын
that moment when he says fuck when the train fell off XD
@s.spydiraju4844
@s.spydiraju4844 7 жыл бұрын
.h
@dmgfutny3852
@dmgfutny3852 7 жыл бұрын
this is my favourite video
@phanmayyong2618
@phanmayyong2618 6 жыл бұрын
Futny XD knvnjen
@bluebear6186
@bluebear6186 8 жыл бұрын
i really want to do this but i don't know how to code with arduino. do you suggest any getting started tutorials for working with lego
@ArduinoLegoTrains
@ArduinoLegoTrains 8 жыл бұрын
Sure, just check out my channel and start from video 1!
@SUPERgamer-bi5hm
@SUPERgamer-bi5hm 7 жыл бұрын
Blue Bear Creel to no no
@SPiKExGamerKage
@SPiKExGamerKage 8 жыл бұрын
if you don't wana listen to the code stuff then skip to 6:02 and youl skip how the stuff works
@SimonRancourt
@SimonRancourt 6 жыл бұрын
Lego train swiches looked better 45 years ago.
@TheFogOfWar1wvdm
@TheFogOfWar1wvdm 7 жыл бұрын
you dont need to use arduino, you can also use lego mindstorms to control the train etc
@ArduinoLegoTrains
@ArduinoLegoTrains 7 жыл бұрын
Yes, but mindstorms cost a huge amount of money compared to Arduinos, and can only control what, four motors? My arduino setup controls 12 (check out video 10 for details).
@austinhunter1586
@austinhunter1586 8 жыл бұрын
This settles it, I'm getting an arduino. And Legos. For science.
@austinhunter1586
@austinhunter1586 8 жыл бұрын
Also, how did you connect the arduino? Did it have pins?
@ArduinoLegoTrains
@ArduinoLegoTrains 8 жыл бұрын
+Austin Hunter all connection info is in Tutorial 1: Introduction.
@NewBuildmini
@NewBuildmini 8 жыл бұрын
12v legos have remote controlled stuffies such as crossings, points and decouplers. I recommend u to get it working somehow with 9v.
@jittapa9272
@jittapa9272 7 жыл бұрын
I love Lego trains
@burgerlx8871
@burgerlx8871 7 жыл бұрын
Lego king Lego king I too ilove Arduino And lego
@goldfing5898
@goldfing5898 2 ай бұрын
One question: the original Lego 9V switch has a very strong spring (locking mechanism), and thus it takes lots of force to actuate it. Did you have to remove the spring on the downside (interior) of the switch, prior to building the motor onto it? Or is the Technic 9V motor, in combination with the clutch, strong enough?
@goldfing5898
@goldfing5898 2 ай бұрын
Regarding the version of the Technic 9V Motor: I saw that you used the version called "Heavier Weight", not the version called "Lighter Weight" on BrickLink. I am going to try out both versions and see if the weight affects the performance of the switching. Also, whether the locking mechanism must be removed from the switch or not.
@goldfing5898
@goldfing5898 2 ай бұрын
Correction to your Parts List: you need three rather than two Plate 2x3, as depicted in your video at 1:20.
@dvsujan1148
@dvsujan1148 6 жыл бұрын
Great videos
@harryyates3093
@harryyates3093 8 жыл бұрын
At 6:40 u can hear him swear
@TF2Scout_YT
@TF2Scout_YT 7 жыл бұрын
Hazzer who cares
@gamersstop9734
@gamersstop9734 7 жыл бұрын
Hazzer hai
@ankurpruthi7666
@ankurpruthi7666 6 жыл бұрын
poornima
@letsget100subscriberswitht6
@letsget100subscriberswitht6 6 жыл бұрын
Hazzer I
@abdoamar9822
@abdoamar9822 6 жыл бұрын
Hazzer هتتتاب
@dejvg8952
@dejvg8952 8 жыл бұрын
Very good
@ArduinoLegoTrains
@ArduinoLegoTrains 8 жыл бұрын
+Dima Vichkutkin Thanks!
@dmgfutny3852
@dmgfutny3852 7 жыл бұрын
dejv CZE no very good. this is a super video
@captainnaveedbbai6424
@captainnaveedbbai6424 6 жыл бұрын
Great Nice Good Job
@michaelakopov845
@michaelakopov845 8 жыл бұрын
great serious. thanks. one question - how you build motor itself?
@agungdwiaditya9233
@agungdwiaditya9233 7 жыл бұрын
Michael Akopov hjj
@alaeriia01
@alaeriia01 6 жыл бұрын
It's a Technic 9V motor part. It's one brick.
@daddyrnr
@daddyrnr 5 жыл бұрын
Can you provide the part numbers for the components used to build this for beginners?
@andreasyufrizal73
@andreasyufrizal73 8 жыл бұрын
Nice project
@dmgfutny3852
@dmgfutny3852 7 жыл бұрын
very nice
@paramsidana1274
@paramsidana1274 7 жыл бұрын
nice
@jerepleijeri
@jerepleijeri 7 жыл бұрын
very nice
@skipzoneskipzone6242
@skipzoneskipzone6242 7 жыл бұрын
I typed out my code but is failing to compile... what does '!' mean in LDR2state? and what does LightSensorCounter % 2 == 0 mean? thanks PJ
@contactATashleygriffin
@contactATashleygriffin 3 жыл бұрын
Lego made kits to solve that problem..... kit 7858
@RatebSallal
@RatebSallal 7 жыл бұрын
Amazing!, thank you, your elaboration are so useful, do you suggest another motor instead of Electric, Motor 9V Mini-Motor, newer/older versions (43362c01/71427c01), as its price is high and few lots on Bricklink?
@michaelplace3837
@michaelplace3837 9 жыл бұрын
very clever.
@sampath4832
@sampath4832 7 жыл бұрын
Nice
@amirraza6587
@amirraza6587 5 жыл бұрын
love 🇫🇴🇫🇲🇫🇯🇫🇮🇪🇷🇪🇹🇪🇺🇫🇲🇬🇩🇬🇱🇬🇮🇬🇮🇬🇭🇬🇲🇬🇲🇬🇪🇬🇬🇫🇴🇫🇴🇫🇲🇫🇲🇫🇲
@ManBrickStudios
@ManBrickStudios 2 жыл бұрын
ty for this video!!!!
@FARIS__KHAN
@FARIS__KHAN 7 жыл бұрын
DO you mind stating the parts needed in words?:)
@ArduinoLegoTrains
@ArduinoLegoTrains 7 жыл бұрын
I've added the parts list to the video description for you.
@TheLegomane
@TheLegomane 7 жыл бұрын
can you tell the number of the motor? i can't find it on bricklink. is the motor you show all in one part or there are more than one connected? thanks
@RehanAnsari-vf1jn
@RehanAnsari-vf1jn 6 жыл бұрын
Faris Khan j
@trainvideosandthegamesvide2732
@trainvideosandthegamesvide2732 7 жыл бұрын
I liked
@trainvideosandthegamesvide2732
@trainvideosandthegamesvide2732 7 жыл бұрын
ok
@nasraanjum9699
@nasraanjum9699 6 жыл бұрын
train videos and the games videos videos good
@mbogobot
@mbogobot Жыл бұрын
super puper automat !
@JoeParkerAndThePower
@JoeParkerAndThePower 2 жыл бұрын
Also I'm puzzled by you referring to the methods via their return types eg 'void Loop' etc. Is this a thing Arduino ppl do routinely? I thought you couldn't overload method names in Arduino, so the namespace would prevent a (say) 'void Loop' and an 'int Loop' both compiling? Sorry if I've missed something mind you, not an Arduino dev. Great vid tho.
@davidrubio8673
@davidrubio8673 5 жыл бұрын
when are you going to upload a new video?
@yekutielbenheshel354
@yekutielbenheshel354 7 жыл бұрын
Thank you!
@progaming-jf9mc
@progaming-jf9mc 8 жыл бұрын
I heard you say a bad word whenever the train stopped
@madyman
@madyman 6 жыл бұрын
how can we get station detector ????
@WamzaShortz
@WamzaShortz 4 жыл бұрын
@Arduino Lego Trains can you supply the code?
@dhanirambeg7820
@dhanirambeg7820 5 жыл бұрын
How to use to point switch sir i want to know this
@mdjavedmdjaved9670
@mdjavedmdjaved9670 6 жыл бұрын
Good
@hjhuk555
@hjhuk555 5 жыл бұрын
Anyone used a different motor for this? Or perhaps an stl file to print out this lego motor case and add hobby motor in instead?
@bob1412
@bob1412 6 жыл бұрын
6:41 listen
@itz_lexiii_
@itz_lexiii_ 8 жыл бұрын
why not a remote control with a lego servo motor?
@itz_lexiii_
@itz_lexiii_ 8 жыл бұрын
+LEGO CREATIONS | SpartaGames but this is friggin brilliant
@ArduinoLegoTrains
@ArduinoLegoTrains 8 жыл бұрын
+LEGO CREATIONS | SpartaGames Remote Control is covered in #7, so it's really easy to combine that code with this tutorial to make a remote-controlled switch. No need for servo motors; my solution uses the cheapest combination of motors and bricks available.
@itz_lexiii_
@itz_lexiii_ 8 жыл бұрын
Arduino Lego Trains ok :D
@devaodeva2343
@devaodeva2343 7 жыл бұрын
Wao »beautiful
@chotansarkar5607
@chotansarkar5607 7 жыл бұрын
how
@rajimangesh7972
@rajimangesh7972 4 жыл бұрын
Can you please give the code?
@pawangupta-do6nv
@pawangupta-do6nv 5 жыл бұрын
areal car kitena ke milta hai
@hollandmeester347
@hollandmeester347 4 жыл бұрын
Old news. The automatic infrared train detector is much better...... Trust me.
@sonnythecuckoobird650
@sonnythecuckoobird650 4 жыл бұрын
Is this dude darth vader
@zipponvr7043
@zipponvr7043 8 жыл бұрын
it would be better to work with a PF servo motor
@ArduinoLegoTrains
@ArduinoLegoTrains 8 жыл бұрын
+Zippo NVR Yes, the PF servo motor has more torque. But it is a much bigger motor, which makes the whole mechanism extend past the length of the switch track (so you can only connect the switch to straights, not curves). It also requires an extra cable to convert from PF to old technic 9V (unless you want to cut the PF motor cable), and is much more expensive than the old 9V motors.
@zipponvr7043
@zipponvr7043 8 жыл бұрын
+Arduino Lego Trains Yes, but the main advantage is that it is rotated only by 90 degrees, so you will not need to use the clutch. Although you did not use it in your video =)
@serdiuk2774
@serdiuk2774 8 жыл бұрын
this is soo hard
@JamesSleeman
@JamesSleeman 9 жыл бұрын
Why on earth are you calling functions "voids"?! Void is the return type of those particular functions, that is, they do not return anything, they are not "voids", they are functions without return values.
@ArduinoLegoTrains
@ArduinoLegoTrains 9 жыл бұрын
Because this series of tutorials is designed for people with no prior coding experience. Using the word "function" when it doesn't show up anywhere on the screen gets very confusing for beginners. But you're completely correct, of course.
@goldfing5898
@goldfing5898 2 ай бұрын
Or "procedures" (e.g. in Pascal).
@ademguney3818
@ademguney3818 7 жыл бұрын
nereden satın alabilirim turkhis
@pavitraghadai4281
@pavitraghadai4281 6 жыл бұрын
Adem Güney Nice
@jatindodiya9425
@jatindodiya9425 7 жыл бұрын
how u made wireless connection
@ArduinoLegoTrains
@ArduinoLegoTrains 7 жыл бұрын
There is no wireless connection in this video. Watch video #14 to see how you can control motors wirelessly (requires two Arduinos).
@RUBEN-ee5up
@RUBEN-ee5up 6 жыл бұрын
The easy is to use both hands
@gkbrickworks7924
@gkbrickworks7924 7 жыл бұрын
6:40 did you just swear?
@sirtinley-knot2944
@sirtinley-knot2944 3 жыл бұрын
I heard it too! 😂
@klebestiftlp5943
@klebestiftlp5943 6 жыл бұрын
take a invisible wire and pull it bruh
@sathishgaddam2570
@sathishgaddam2570 6 жыл бұрын
Ya
@berkahayambakar2977
@berkahayambakar2977 7 жыл бұрын
hallo
@shaikatozkuwait7901
@shaikatozkuwait7901 5 жыл бұрын
Wwwo super
@imtiyajkhan8039
@imtiyajkhan8039 7 жыл бұрын
imtiyaj khan
@omgupta9455
@omgupta9455 6 жыл бұрын
ok
@zampoloo
@zampoloo 8 жыл бұрын
I don't have Lego technic :(
@nandaorlando6939
@nandaorlando6939 6 жыл бұрын
Now waht
@davidericksson9590
@davidericksson9590 6 жыл бұрын
have you handsweat
@pbro5908
@pbro5908 6 жыл бұрын
Ada
@sallyatkins5747
@sallyatkins5747 7 жыл бұрын
Thomas the train
@felixhansor9531
@felixhansor9531 6 жыл бұрын
sos maot mana!
@SurenderSingh-yf6gt
@SurenderSingh-yf6gt 6 жыл бұрын
Deepak Kumar
@santoshganashkar9148
@santoshganashkar9148 5 жыл бұрын
Try t
@newhollandfarmfs1766
@newhollandfarmfs1766 6 жыл бұрын
he whispers all the time
@Ilyas-vd2iz
@Ilyas-vd2iz 6 жыл бұрын
COUCH NERD txt HSBC à tous les z
@DefarelPermana
@DefarelPermana 6 жыл бұрын
You book
@JoelHomieShow
@JoelHomieShow 6 жыл бұрын
y do you swear.
@hirandas2958
@hirandas2958 6 жыл бұрын
hiii
@lovenitesh2816
@lovenitesh2816 6 жыл бұрын
kk
@LoganPlayz12
@LoganPlayz12 5 жыл бұрын
C
@v.ramcharancharry4035
@v.ramcharancharry4035 7 жыл бұрын
V. Munilal
@kulwinderSingh-jp2dc
@kulwinderSingh-jp2dc 6 жыл бұрын
attty
@abhishekkalura4258
@abhishekkalura4258 6 жыл бұрын
Abhishek
@raghavendramulemani4702
@raghavendramulemani4702 6 жыл бұрын
cpl
@rod050858
@rod050858 6 жыл бұрын
bricker.info/parts/73696/ this is another link
@vandanaparekh616
@vandanaparekh616 6 жыл бұрын
I like your video .... But do something new....
@mosinsayyed1180
@mosinsayyed1180 6 жыл бұрын
Jk
Arduino for Lego Trains #4: Ultrasonic Sensors
8:54
Arduino Lego Trains
Рет қаралды 121 М.
What is the best Lego train control system?
13:43
BatteryPoweredBricks
Рет қаралды 271 М.
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 15 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 57 МЛН
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 11 МЛН
Running Lego Engines with Air
14:35
Brick Technology
Рет қаралды 15 МЛН
Will this toy engine work at full size? (yes)
15:35
Steve Mould
Рет қаралды 5 МЛН
Building a LEGO Pneumatic Engine with Variable Valve Timing
8:17
Nico71's Lego Technic Creations
Рет қаралды 3 МЛН
Can Lego Play the Drums?
6:12
Brick Technology
Рет қаралды 7 МЛН
Arduino for Lego Trains #9: Automatic Decoupler
11:58
Arduino Lego Trains
Рет қаралды 147 М.
WHAT IS THE BEST LEGO TRAIN MOTOR?🚂
8:50
Alex Nunes
Рет қаралды 42 М.
HowTo LEGO Trains: motorize railroad switches without modification [English|HD]
8:28
Technicmaster0 Tutorials and more
Рет қаралды 7 М.
Building 10 Lego Elevators
10:13
Brick Experiment Channel
Рет қаралды 4,1 МЛН
This Device is very helpful ,, you can make at home
6:47
Inventor AW
Рет қаралды 948 М.
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 15 МЛН