Circuitbenders Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: relay and LED in series for sequencing machine  (Read 8606 times)

Dj Task Manager

  • Dayglo Volunteer of International Masturbation
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 131
relay and LED in series for sequencing machine
« on: May 26, 2013, 11:55:40 AM »

Hello folks,
Im building a sequencer device which has an LED and a relay in series with each other, the circuit is closed when a stylus makes a contact to the leg of the LED.  The relay is non polarised and the polarity of the circuit can be inverted so that the flow of current can go through a different LED instead.  There is also a pair of 1000uf capacitors in parallel (in opposing polarities) with the relay to smooth the response from the stylus .  

The problem im having is the LEDs seem to light every time but the relay doesnt always trigger.  Is this because there isnt enough current flowing through the LEDs?  If so do i need beefier LEDs? or maybe a pair of LEDs (in the same polarity) in parallel? Or do I actually need to do some maths and put a resistor in somewhere?

Other bits on my sequencer are here : mpanimation.blogspot.co.uk

Thanks!!!
« Last Edit: May 26, 2013, 12:27:09 PM by Dj Task Manager »
Logged

Gordonjcp

  • This person is dangerously insane.
  • *******
  • Karma: 78
  • Offline Offline
  • Posts: 1005
    • http://www.nekosynth.co.uk
Re: relay and LED in series for sequencing machine
« Reply #1 on: June 10, 2013, 10:04:04 PM »

The LEDs can only safely pass 10mA without damage, but the relay coil needs 100mA and around 5V across it to pull in.  Your circuit pretty much won't work as drawn.

What you need is a transistor to drive the relay with the very tiny current that can be pulled through the LED.  Look for articles on using relays with Arduinos and the like to give you some ideas.
Logged
If at first you don't succeed, stick it through a fuzzbox.

Dj Task Manager

  • Dayglo Volunteer of International Masturbation
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 131
Re: relay and LED in series for sequencing machine
« Reply #2 on: June 11, 2013, 08:09:11 AM »

thanks gordon, it does sort of work at the moment but I guess the LEDs will burn out really quickly.  
Maybe I'll invest in some 100ma LEDs to solve the problem...  
I dont think I can easily make a circuit with transitors as part of the function of the devices requires the polarity to be reversed to select a second sequenced pattern.  I'll include a photo of the device later so you can get a better idea of how it works...

(also I'll take your advice and look for info about arduinos and Relays)

Cheers
« Last Edit: June 11, 2013, 08:12:05 AM by Dj Task Manager »
Logged

Dj Task Manager

  • Dayglo Volunteer of International Masturbation
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 131
Re: relay and LED in series for sequencing machine
« Reply #3 on: June 12, 2013, 08:44:53 PM »

Hiiii, here is the sequencing machine: Mikes mechanical sequencer

I tried the configureation in the picture below on a bread board to try let some current bypass the LEDs a bit to help.  It seemed to probably be helping because with the resistors in place the LED lit less fiercely (with either one of the resistors removed the relay did not latch, so i guess it was sharing the current between both routes),

Ive just realised that I might as well put the supply voltage up to 7 or 7.5v, that might help too...

Am I on the/a right track?

« Last Edit: June 13, 2013, 07:21:04 AM by Dj Task Manager »
Logged

Gordonjcp

  • This person is dangerously insane.
  • *******
  • Karma: 78
  • Offline Offline
  • Posts: 1005
    • http://www.nekosynth.co.uk
Re: relay and LED in series for sequencing machine
« Reply #4 on: June 13, 2013, 08:38:37 PM »

100mA LEDs would be in laser eye surgery territory!  I'm still not quite clear on what you're trying to do.  If you just want the LED to light when you touch the wire to show that the corresponding relay is closed, you could just wire each string to each relay and wire each LED in parallel with the relay coil with a suitable series resistor (around 800 ohms, for 12v)
Logged
If at first you don't succeed, stick it through a fuzzbox.

Dj Task Manager

  • Dayglo Volunteer of International Masturbation
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 131
Re: relay and LED in series for sequencing machine
« Reply #5 on: June 13, 2013, 10:28:14 PM »

Hi gordon, yup I think you are right, they might well scorch my eyes out!  Ive discovered that you can also get 'grain of rice' bulbs at 100ma, which although I'd have to attach to diodes to get the desired result would be a solution (and would also fit with the analoguey aesthetic of the project).

The diagram is just a simplified drawing of what is effectively happening inside my sequencing machine (IN THE VIDEO). 

What the LEDs do:  The LEDs are modified into little pegs with one leg up (to form a hook to hook onto the horizontal rods (which represent an octave on the sequencer)) and the other leg hanging down to contacted by the moving vertical rods on the conveyor which pass underneath.  A bit like programming a step sequencer on the computer but without steps and the length of a musical phrase dictated by a revolution of the conveyor; an electro-mechanical stepless sequencer.

I know its a bit of a weird project, i hope this helps make it clearer!

Thanks again for your input!
« Last Edit: June 14, 2013, 07:26:11 AM by Dj Task Manager »
Logged

Gordonjcp

  • This person is dangerously insane.
  • *******
  • Karma: 78
  • Offline Offline
  • Posts: 1005
    • http://www.nekosynth.co.uk
Re: relay and LED in series for sequencing machine
« Reply #6 on: June 18, 2013, 12:16:27 PM »

You can't put anything in series with the relay coils or the LEDs.

Your idea looks great and I look forward to seeing and hearing it working, but before you get there you're going to have to take the time to learn a bit of basic electronics.  Poking at stuff randomly and trying to guess isn't going to do it.
Logged
If at first you don't succeed, stick it through a fuzzbox.

Dj Task Manager

  • Dayglo Volunteer of International Masturbation
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 131
Re: relay and LED in series for sequencing machine
« Reply #7 on: June 18, 2013, 01:45:10 PM »

Do you think using the 'Grain of Rice bulbs' (6v 100ma) will work in place of the LEDs?
Logged

Dj Task Manager

  • Dayglo Volunteer of International Masturbation
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 131
Re: relay and LED in series for sequencing machine
« Reply #8 on: July 08, 2013, 08:28:54 PM »

the idea with the resistors was to do a sort of divider:
http://en.wikipedia.org/wiki/Current_divider
Logged