marklin-users.net community | Forum
»
General topics
»
Digital
»
Arduino driven Faller fairground ride, with sound
Joined: 04/01/2019(UTC) Posts: 344 Location: England, Ipswich
|
Here is a video of a new addition to my layout. This is the Faller HO Polyp fairground ride. It comes with an AC motor, which I have discarded and replaced with an Amazon sourced 12V DC motor with gearbox.  This has been hooked up to an Arduino with complex components. One is an L298N H Bridge motor controller. The other is a DF Player Mini - plays mp3s from a micro SD card. You can see the resulting mess on the prototyping board here  Basically, there are 10 rock and roll tunes on the SD card. The Arduino picks one at random and calculates its length in seconds from an inbuilt table. It the spins the motor up gradually for 14 seconds, runs the ride for the required length and spins it down for 15 seconds. IT then delays for a random period and starts all over again. The idea is to recreat the ride that my wife remembers from Raphaels Park, Romford in the 60s when she was a teenager! The L298N is there to drive the motor as the Arduino doesn't have enough oomph. The power to the L298N comes from a Chinese 12V power supply in the pink box behind. This is the source of the hum. I am currently working on a thermistor driven Arduino to go inside the box and control the fan, which is what is making all the noise! Mind you, as it is 85% in my living room at the moment, now is not a good time to work out the settings! |
Long Haired David AKA David Pennington A mystified Maerklin Newbie |
 9 users liked this useful post by LongHairedDavid
|
|
|
Joined: 26/03/2019(UTC) Posts: 763 Location: Florida Classic but Successful Swampland City
|
|
Jimmy T Analogue; M-track; KLVM; DDR; Primex; Sarrasani Zirkuswelt There is a Prototype For Everything |
|
|
|
Joined: 01/02/2004(UTC) Posts: 7,464 Location: Scotland
|
I have that kit from Faller which is good. I added extra lighting and people in the ride. Great idea you have there. Watch that the cups don't hit the floor of the ride. I had to adjust mine. |
Take care I like Marklin and will defend the worlds greatest model rail manufacturer. |
 1 user liked this useful post by David Dewar
|
|
|
Joined: 03/08/2011(UTC) Posts: 1,571
|
Excellent David, I love these sort of creative projects! Well done Best Regards Lasse |
Digital 11m2 layout / C (M&K) tracks / Era IV / CS3 60226 / Train Controller Gold 9 with 4D sound. Mainly Danish and German Locomotives. |
 1 user liked this useful post by Danlake
|
|
|
Joined: 04/01/2019(UTC) Posts: 344 Location: England, Ipswich
|
Originally Posted by: David Dewar  I have that kit from Faller which is good. I added extra lighting and people in the ride. Great idea you have there. Watch that the cups don't hit the floor of the ride. I had to adjust mine. My next step is to add lighting (flashing, I hope) and some people. I have the big wheel to come. That will have the same treatment - but no sound. Two rides with music might work in a fun fair but not in my bedroom! |
Long Haired David AKA David Pennington A mystified Maerklin Newbie |
 4 users liked this useful post by LongHairedDavid
|
|
|
Joined: 01/02/2004(UTC) Posts: 7,464 Location: Scotland
|
Originally Posted by: LongHairedDavid  Originally Posted by: David Dewar  I have that kit from Faller which is good. I added extra lighting and people in the ride. Great idea you have there. Watch that the cups don't hit the floor of the ride. I had to adjust mine. My next step is to add lighting (flashing, I hope) and some people. I have the big wheel to come. That will have the same treatment - but no sound. Two rides with music might work in a fun fair but not in my bedroom! Hi David. The kit you have is one of the easiest motorized ones from Faller. Some of the other fairground models can be difficult to build and get working. The Ferris wheel should be OK (not sure which one you are getting) Take care with the initial stages of the build when joining the wheel and placing the wire for the lights. Also the lights on the cups tend to flicker but I added some extra weight to them which helped. The Faller fairground is almost a hobby on its own and looks great when all the lights (with some extra ones) are on. |
Take care I like Marklin and will defend the worlds greatest model rail manufacturer. |
 2 users liked this useful post by David Dewar
|
|
|
Joined: 04/01/2019(UTC) Posts: 344 Location: England, Ipswich
|
Originally Posted by: David Dewar  Originally Posted by: LongHairedDavid  Originally Posted by: David Dewar  I have that kit from Faller which is good. I added extra lighting and people in the ride. Great idea you have there. Watch that the cups don't hit the floor of the ride. I had to adjust mine. My next step is to add lighting (flashing, I hope) and some people. I have the big wheel to come. That will have the same treatment - but no sound. Two rides with music might work in a fun fair but not in my bedroom! Hi David. The kit you have is one of the easiest motorized ones from Faller. Some of the other fairground models can be difficult to build and get working. The Ferris wheel should be OK (not sure which one you are getting) Take care with the initial stages of the build when joining the wheel and placing the wire for the lights. Also the lights on the cups tend to flicker but I added some extra weight to them which helped. The Faller fairground is almost a hobby on its own and looks great when all the lights (with some extra ones) are on. Thanks. It's good to know that others do the same. Because I am using Arduinos, I have to trash the 16vAC motors - I can't work out how to control them from the Arduino. I have 140312 Ferris wheel. That's a project for a few months ahead! |
Long Haired David AKA David Pennington A mystified Maerklin Newbie |
 2 users liked this useful post by LongHairedDavid
|
|
|
Joined: 16/04/2014(UTC) Posts: 775 Location: Bangalore, India
|
Hello David, I see that you read songs from Arduino sketch to get the song's length. Is there a way to read or analyze the song's waveform as well? I have done a concert stage for my railroad and I want the stage lights to blink in sync with the song. Currently I have written basic logic with delay to make the lights blink inside the loop() function. Regards, Madhu
|
|
|
|
Joined: 04/01/2019(UTC) Posts: 344 Location: England, Ipswich
|
Originally Posted by: madhu.gn.71  Hello David, I see that you read songs from Arduino sketch to get the song's length. Is there a way to read or analyze the song's waveform as well? I have done a concert stage for my railroad and I want the stage lights to blink in sync with the song. Currently I have written basic logic with delay to make the lights blink inside the loop() function. Regards, Madhu I use two programs to try and find what I wanted - I use a HEX editor and an app called Stamp ID3 Tag Editor. However, I haven't the full details of what is inside an MP3. Using MS Windows File Manager I can see a Bit rate and a track length in time. However, I can't find either of those with my tools. I think that I would have to buy the full MP3 spec to get deeper into the details. You can, as I do, just open up an MP3 as a standard file - I use SlickEditPro to do this - it shows me the ASCII for the file contents. This is why I do the following: Note the run times of each MP3 using File Manager; create an array of all track times in seconds; rename each file with a nu,ber to match their position in the array; set a play delay for the time from the array. Nothing fancier than that! Using my MP3 editor, I notice that all the BPM entries are blank. The editor obviously expects to find this info my it seems that there is nothing in there for any of my MP3s. Sorry I can't be more help. If anyone knows where I can get either a BPM or a play time from an MP3 please let me know |
Long Haired David AKA David Pennington A mystified Maerklin Newbie |
 3 users liked this useful post by LongHairedDavid
|
|
|
Joined: 08/11/2005(UTC) Posts: 3,528 Location: Mullerup, 4200 Slagelse
|
Originally Posted by: madhu.gn.71  I want the stage lights to blink in sync with the song. I would do this analog Of course making sure your amplifier for the music doesn't get overloaded, and then just connect some LEDs to the music output. If you want it to be more advanced, low pass and high pass filters to divide the different frequency ranges into different groups of LEDs More or less the same way light shows were made 40+ years ago Per. |
If you can dream it, you can do it! I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide. In case this is not legally possible: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.  |
 3 users liked this useful post by Purellum
|
|
|
Joined: 16/04/2014(UTC) Posts: 775 Location: Bangalore, India
|
Originally Posted by: Purellum  If you want it to be more advanced, low pass and high pass filters to divide the different frequency ranges into different groups of LEDs Per, you just gave me another idea. I've just ordered a sound sensor. I'll read the analog values from it and make the lights blink depending on the frequency of the music being played. Sorry David for deviating the topic. Just to show off, here is my current stage set up with lights blinking. 
|
 3 users liked this useful post by madhu.gn.71
|
|
|
Joined: 04/01/2019(UTC) Posts: 344 Location: England, Ipswich
|
Originally Posted by: madhu.gn.71  Originally Posted by: Purellum  If you want it to be more advanced, low pass and high pass filters to divide the different frequency ranges into different groups of LEDs Per, you just gave me another idea. I've just ordered a sound sensor. I'll read the analog values from it and make the lights blink depending on the frequency of the music being played. Sorry David for deviating the topic. Just to show off, here is my current stage set up with lights blinking.  NO probs - I appreciate any extra ideas. I haven't got to a pop concert yet, but I might! |
Long Haired David AKA David Pennington A mystified Maerklin Newbie |
 1 user liked this useful post by LongHairedDavid
|
|
|
Joined: 02/10/2019(UTC) Posts: 3 Location: Tasmania
|
That is amazing. I really envy your skill. I would love to do this with my Faller fairground kits that I am constructing for my HO layout. I have a little bit of experience with Arduinos but, the motor is 16 v AC as you know. Did you put a link for the replacement motor you bought? Thanks very much for sharing. Great job! Richard Tasmania
|
 1 user liked this useful post by charles05
|
|
|
Joined: 02/10/2019(UTC) Posts: 3 Location: Tasmania
|
Thanks for the motivation Long Haired Dave! I have programmed step motors through two nanos to power a merry-go-round and Dodgem Car set. It looks like the motors can be reasonably easily fitted into place. To finish the models may take another month or two but then I hope to tackle the sound part. I appreciate your post Dave. It has motivated me. Richard Tasmania
|
|
|
|
Joined: 04/01/2019(UTC) Posts: 344 Location: England, Ipswich
|
Originally Posted by: charles05  That is amazing. I really envy your skill. I would love to do this with my Faller fairground kits that I am constructing for my HO layout. I have a little bit of experience with Arduinos but, the motor is 16 v AC as you know. Did you put a link for the replacement motor you bought? Thanks very much for sharing. Great job! Richard Tasmania Hi there. Thanks for the comments. I didn't replace the motor. I bought a 16V AC power supply from Gaugemaster. I then bought the following from Amazon ARCELI 5PCS KY-019 5V One Channel Relay Module Board https://amzn.to/31IQK8hThis is a set of 5 relays. Each one has an input from the Arduino and a connection for the 16V ac, Switching the relay on and off using 5V manages the 16V feed to the motor. Very easy. David |
Long Haired David AKA David Pennington A mystified Maerklin Newbie |
 1 user liked this useful post by LongHairedDavid
|
|
|
Joined: 04/01/2019(UTC) Posts: 344 Location: England, Ipswich
|
Originally Posted by: charles05  Thanks for the motivation Long Haired Dave! I have programmed step motors through two nanos to power a merry-go-round and Dodgem Car set. It looks like the motors can be reasonably easily fitted into place. To finish the models may take another month or two but then I hope to tackle the sound part. I appreciate your post Dave. It has motivated me. Richard Tasmania I am getting the bug. I could almost drop my Marklin layout and build a fun fair - grin. Mind you it would be just as expensive as buying Marklin loks! |
Long Haired David AKA David Pennington A mystified Maerklin Newbie |
|
|
|
Joined: 02/10/2019(UTC) Posts: 3 Location: Tasmania
|
Quote:Hi there. Thanks for the comments. I didn't replace the motor. I bought a 16V AC power supply from Gaugemaster. I then bought the following from Amazon ARCELI 5PCS KY-019 5V One Channel Relay Module Board https://amzn.to/31IQK8hThis is a set of 5 relays. Each one has an input from the Arduino and a connection for the 16V ac, Switching the relay on and off using 5V manages the 16V feed to the motor. Very easy. David That makes sense! I will do the same. I thought the advantage of using the step motor is it is easy to control the RPM. Do you find the 16 volt motors are a good speed, or can you adjust them through the Arduino? Cheers.
|
|
|
|
Joined: 04/01/2019(UTC) Posts: 344 Location: England, Ipswich
|
Originally Posted by: charles05  Quote:Hi there. Thanks for the comments. I didn't replace the motor. I bought a 16V AC power supply from Gaugemaster. I then bought the following from Amazon ARCELI 5PCS KY-019 5V One Channel Relay Module Board https://amzn.to/31IQK8hThis is a set of 5 relays. Each one has an input from the Arduino and a connection for the 16V ac, Switching the relay on and off using 5V manages the 16V feed to the motor. Very easy. David That makes sense! I will do the same. I thought the advantage of using the step motor is it is easy to control the RPM. Do you find the 16 volt motors are a good speed, or can you adjust them through the Arduino? Cheers. I haven’t tried changing the speed as it was fine out of the box. You might get it to slow down by switching It on and off but I wouldn’t hold my breath! |
Long Haired David AKA David Pennington A mystified Maerklin Newbie |
|
|
|
marklin-users.net community | Forum
»
General topics
»
Digital
»
Arduino driven Faller fairground ride, with sound
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.