Go Down

Topic: Laser Instrument (advice is needed) (Read 1 time) previous topic - next topic

Aeryck

Jun 08, 2012, 12:20 pm Last Edit: Jun 08, 2012, 12:22 pm by Aeryck Reason: 1
Hello Arduino Forum,

I'm (hopefully) going to make a musical instrument with lasers instead of strings for my final school project.
I will use 8 lasers and 8 LDRs. All lasers will have a dedicated LDR they are pointing at, and if the contact is interfered, a MIDI signal will be generated. I just drew the schematics: .
I don't have an awful lot of experience with (complex) electronics, and I'm hoping you could give me some advice/corrections.

As you can see I will have two circuits, one for the lasers and one for the LDRs and the arduino. The lasers (20mw green diodes) use 3v and 250mA, and I want to be able to plug it into a wall sockets, hence the transformer.

Thanks in advance!


Edit: The image doesn't seem to work, so here is the link: http://postimage.org/image/swhfyjyed/full/

AWOL

Quote
The lasers (20mw green diodes)

Why such powerful devices?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Aeryck


Quote
The lasers (20mw green diodes)

Why such powerful devices?


I want to be able to see the beams. I guess I could use 5mw, but will those be visible? (I have acces to a smoke-machine)

AWOL

Quote
I want to be able to see the beams. I

Get it wrong, and they could be the last things you see clearly!
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Aeryck


Quote
I want to be able to see the beams. I

Get it wrong, and they could be the last things you see clearly!


They wont be pointing towards people, but on an LDR, so once installed it's completely safe.

Something else: Is my drawing correct? I was wondering if it is possible to just draw the cable through all the cables after the LDRs, and connect it to the ground (like i've drawn)

dxw00d

Quote
so once installed it's completely safe.

Provided nothing can deflect the beam.

Magician

I don't think the drawings is correct. You need 8 resistors in series with LDR to form a voltage dividers, than connect middle point to digital input. Probably, you could activate internal pull-up resistors for this, than LDR would be between input and ground (not +5V).
The powering lasers using transformer is also not gonna work right, lasers would light up for short period of time, so your LDR would constatnly read 50/60 Hz square wave, not saying that forward peak current should be limited somehow.

Chagrin

FYI a LDR has much slower response than a phototransistor or photodiode. If you're moving your hand through the beams slowly it won't be an issue, but it would be possible to move your hand through quickly enough to miss the signal.

I'd also suggest adding a way to switch the lasers on/off so you can calibrate your sensors. Turn the lasers off, take a reading, turn them on, take a reading, then set your threshold somewhere in between.

As Magician mentioned:

dxw00d

All the LDRs in the original image are connected to digital inputs. I'm not sure how you would calibrate that.

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Chagrin


All the LDRs in the original image are connected to digital inputs. I'm not sure how you would calibrate that.


Indeed. In that case the OP needs to use a variable resistor in place of the fixed resistor to calibrate the sensitivity of the LDRs.

Aeryck


All the LDRs in the original image are connected to digital inputs. I'm not sure how you would calibrate that.

http://www.ladyada.net/learn/sensors/cds.html
If you scroll down it says how to connect LDRs to digital inputs, although I will have to edit my schematics for it.


I don't think the drawings is correct. You need 8 resistors in series with LDR to form a voltage dividers, than connect middle point to digital input. Probably, you could activate internal pull-up resistors for this, than LDR would be between input and ground (not +5V).
The powering lasers using transformer is also not gonna work right, lasers would light up for short period of time, so your LDR would constatnly read 50/60 Hz square wave, not saying that forward peak current should be limited somehow.

Thanks for the feedback, I'll look into the resistors, although I doubt I will need them (check out the link above)
Also, why would the lasers not work? If the transformer turn 220v AC into 24v DC, it should work, right?

Magician

Quote
I'll look into the resistors, although I doubt I will need them (check out the link above)

Not sure you are looking at the same drawing, but picture in the "Analog voltage reading method" section shows 10k resistor in series with LDR.
Quote
Also, why would the lasers not work? If the transformer turn 220v AC into 24v DC, it should work, right?

Wrong, transformer outputs 24 AC, according to your drawings.

Grumpy_Mike

Quote
Also, why would the lasers not work? If the transformer turn 220v AC into 24v DC, it should work, right?

As well as the fact you are feeding it with AC, there is nothing to limit the current. You will blow all the lasers.
Driving a laser is far more complex than this see:-
See this for how to do it.
http://www.repairfaq.org/sam/laserdps.htm

Aeryck


Quote
I'll look into the resistors, although I doubt I will need them (check out the link above)

Not sure you are looking at the same drawing, but picture in the "Analog voltage reading method" section shows 10k resistor in series with LDR.
Quote
Also, why would the lasers not work? If the transformer turn 220v AC into 24v DC, it should work, right?

Wrong, transformer outputs 24 AC, according to your drawings.

At the bottom of the page it says: "BONUS! Reading photocells without analag inputs". As I've stated, I will use digital pins, not analog ones, because I won't have enough of those. According to the drawings, I'll just need 0.1 uF ceramic condensators.
About the transformer: I now see my drawing was wrong. I've been searching, and found this: http://www.security-systems.nl/377-Diversen/220V/110V-50Hz/60Hz-24V-DC-250mA-Power-Supply.html.
But as Grumpy_Mike has said, it probably wont be that easy to power the lasers, since they will blow up at a current peak.

BTW, thanks for all the feedback guys!

Go Up