Author Topic: ideas for carousel control  (Read 6340 times)

Offline shipto

  • Hero Member
  • *****
  • Posts: 809
  • Country: gb
  • Redditch, UK
ideas for carousel control
« on: July 21, 2013, 06:06:47 AM »
I am currently working on a model carousel for my grandaughter but am scratching my head a little over control for it.
BTW before I get  :worthless: I am taking pics but dont want to post any of them before I am sure I can complete the project.
anyway I am thinking ahead a little about control for it, I need to control.
speed of the motor = quite easy a pwm will do this.
music = I would like 3 or more songs played at random while it is turning
Lights = about 150 led's (not individually but in blocks) they need to blink in a random or seemingly random way as the carousel turns.
Even though i know nothing about them I am looking at arduino or pi for the controls but would gladly listen to opinions or ideas.
Thanks in advance
Turns out this life c**p is just one big distraction from death but a good one. For the love of god dont give yourself time to think.
https://myshedblog.wordpress.com/

Offline S. Heslop

  • Hero Member
  • *****
  • Posts: 1154
  • Country: gb
  • Newcastle Upon Tyne
Re: ideas for carousel control
« Reply #1 on: July 21, 2013, 04:46:59 PM »
You could use or build a cam timer.



A motor turns a bunch of cams that activate an array of microswitches. It wont be perfectly random but you could maybe approximate it.

For music you might be able to solder the contacts of an MP3 or CD player to the cam timer. You can get both items pretty cheap nowadays but i'm not sure if all of them would be suitable.

Offline S. Heslop

  • Hero Member
  • *****
  • Posts: 1154
  • Country: gb
  • Newcastle Upon Tyne
Re: ideas for carousel control
« Reply #2 on: July 21, 2013, 04:50:45 PM »
http://www.timhunkin.com/81_components.htm

This fella is one of my heroes. He makes strange amusement arcade machines. His website has some info on the stuff he uses in making them.

Offline andyf

  • In Memoriam
  • Hero Member
  • *****
  • Posts: 1795
  • Country: gb
    • The Warco WM180 Lathe - Modifications
Re: ideas for carousel control
« Reply #3 on: July 21, 2013, 05:03:05 PM »
There's a random-ish led flasher circuit here, which looks relatively simple. Don't know if it works, though, and your 150 leds might be a bit much for it (diagram shows 40). You could always build one, and if that's OK, another three for a total of 160 leds..
http://scdiagramwiring.blogspot.co.uk/2013/03/how-to-make-interesting-random-led.html

Andy
Sale, Cheshire
I've cut the end off it twice, but it's still too short

Offline Bluechip

  • Madmodder Committee
  • Hero Member
  • *****
  • Posts: 1513
  • Country: england
  • Derbyshire UK
Re: ideas for carousel control
« Reply #4 on: July 21, 2013, 05:48:18 PM »
How one's sordid past comes back .... :palm:
 
 
I did a random light flasher using the amplified noise from a Zener diode and stuffing it into the Analogue ( Analog for those in the USA who can't be bothered to spell it properly   :lol:  ) input on a PIC. Cramped the output value into 3 bits to give 8 outputs, ( there is a CMOS chip ie. a 3-line to 8-line decoder).
 
Not much use to you if you want to do Arduino or Raspberry Pi though. The code was in MikroC or Hi-Tech C . to a 16F886 PIC.
 
Worked rather well to my surprise.
 
I think I may still have the circuit somewhere but not sure, simple enough though.
 
Will have a look if you're that desperate ..  :scratch:
 
 
Dave BC
 
Edit ... 74HC238 chip  :thumbup:
 
I have a few modest talents. Knowing what I'm doing isn't one of them.

Offline shipto

  • Hero Member
  • *****
  • Posts: 809
  • Country: gb
  • Redditch, UK
Re: ideas for carousel control
« Reply #5 on: July 21, 2013, 06:12:15 PM »
You could use or build a cam timer.



A motor turns a bunch of cams that activate an array of microswitches. It wont be perfectly random but you could maybe approximate it.

For music you might be able to solder the contacts of an MP3 or CD player to the cam timer. You can get both items pretty cheap nowadays but i'm not sure if all of them would be suitable.
I really like this idea  :thumbup: it would certainly be easier for me to understand than learning to program the arduino and i could run it from the drive motor. as you say it wouldnt be truely random but with the right gearing it would seem that way.
andyf your link also looks interesting and would take up less room than the cam idea.
Bluechip if you find the circuit I would be interested to see it but dont put yourself out it will be a while before I am ready for it.
Turns out this life c**p is just one big distraction from death but a good one. For the love of god dont give yourself time to think.
https://myshedblog.wordpress.com/

Offline kwackers

  • Sr. Member
  • ****
  • Posts: 356
Re: ideas for carousel control
« Reply #6 on: July 22, 2013, 03:51:16 AM »
I'd definitely go the Arduino route.

What you want to do is trivial and with a few pointers you could have something running in an hour or two.
More importantly you can 'knock' something up that works (start by looking at one of the many bits of code that simply flashes leds) and then as your confidence grows you can add to it.

The pwm for the motor control is one command. Flashing a led consists of a delay and then changing the state of the output. There are random functions in the library you can use to get a random value back. The whole thing is just a few lines of code - I'm sure there are lots of people on here who could get you started.

But the most important thing is if you want to change something (for example the leds flash in an annoying pattern, or you want them to flash evenly or 'ripple' etc) then it's behaviour can be modified with a software change.

You could even add a MP3 board to it and play tunes from that.

Offline AdeV

  • Madmodder Committee
  • Hero Member
  • *****
  • Posts: 2434
  • Country: gb
Re: ideas for carousel control
« Reply #7 on: July 22, 2013, 04:57:49 AM »
You could even add a MP3 board to it and play tunes from that.

I suspect you could fairly easily make the LEDs flash in time to the music...
Cheers!
Ade.
--
Location: Wallasey, Merseyside. A long way from anywhere.
Occasionally: Zhengzhou, China. An even longer way from anywhere...

Offline pete3000

  • Jr. Member
  • **
  • Posts: 23
  • Country: gb
  • Electronics, Computers and one day mechanics
Re: ideas for carousel control
« Reply #8 on: July 22, 2013, 08:01:35 AM »
I'd go with PWM for speed control, but for the flashing lights had you thought of the fibre optic/colour changing christmas tree idea? just needs 1 halogen 12v bulb or led bulb and a handful of fibre optic plastic strands. Butchering an old tree may be a source of parts/motors
The beauty of Not Planning, is that failure comes as a Complete Suprise and is Not preceded by a period of worry and depression.

Offline black85vette

  • Jr. Member
  • **
  • Posts: 60
Re: ideas for carousel control
« Reply #9 on: July 22, 2013, 09:14:29 AM »
Instead of trying to create a random LED flashing circuit how about just using individual LEDs that flash on their own?   I have used them in projects rather than build a circuit to make them flash.

Like this;

http://www.ledssuperbright.com/100-3mm-flashing-led-p-253/gclid/CISYlNeVw7gCFQto7Aod8m4ABA

PWM modules are cheap so I don't try to build them either.   Just lazy I guess.