Find that lately there are less of this kind of Hacking articles and those talking about interesting and inusual things, and much more about New frameworks or libraries.
And the Gold Rush! I like original stuff like this. Sometimes, if I feel like pulling off my head when I have
to read about another App. Yes, I know this is a Programers
site, so I expect to read about New Apps, and Websites, but
there seems to be a plethora of Developers just looking for the next big payday? It seems like the only people getting
rich are the one's who market to developer masses, or if you
get lucky Mark might buy your App for 3 Billion dollars.(I
still haven't recovered from that transaction. I believe
they only had one vague patent?)
I went back into the archive and tried to run into a hardware hacking post before a framework post. It went, startup, startup, Google buys YouTube, startup, startup, then this https://news.ycombinator.com/item?id=1981 (2694 days ago). I couldn't find evidence that this site cut its teeth on hardware hacking.
It not specific on hardware, it's general about all things not about programing and new products. Also it's not about new posts, at the new section I keep finding them. It's that they hit the front page less frequently and when they make it the fall to the second or third page in a mater of one hour, compared to the framework or product posts that stay very high with relatively less points.
Maybe it's not the case, maybe it's just the habituation to HN contents after three years of daily reading. If it happens I don't know if it's due to the new curation team (for example now I find that conversations are not growing so much into long rants about small details as before) or to more people flaging non "programmer" stuff more than before.
A cheaper, safer replacement for the EG&G air-gap flash is exactly the final goal of my project, but it will take a few months. Expect a Kickstarter. The BOM doesn't include the laser. I'm using the laser sight on the air pistol, and I tested it with a cheap eBay laser pointer.
I'm sure I've bought laser pointers at Dollarama before (for $1 CAD) and those included batteries: Even if the total BOM is $3, it's still pretty cheap.
Looks correct to me. The idea is to trigger in the absence of the laser---i.e., when the beam is broken by a projectile.
When the laser shines on the base of the phototransistor, the transistor pulls current from the node between the two resistors. Assuming the laser causes sufficient electron-hole pair generation in the base, the transistor can pull a bit more than 1mA (5V/4.7k) from the battery; the photodiode inside the optocoupler then has 0V across it, and the output of the opto is high-Z (i.e., not conducting).
In reality, the phototransistor's collector won't pull much closer than a couple hundred millivolts to its emitter while conducting that much current (the transistor goes into saturation), but that's fine: most optocoupler diodes have a forward drop of 2V or more when they're conducting sufficient current to turn on the output.
>the transistor pulls current from the node between the two resistors
The battery is connected incorrectly for this scenario to work. Node 2 of R2 should be connected to the positive battery terminal for correct flow to the LED.
>the phototransistor's collector won't pull much closer than a couple hundred millivolts to its emitter while conducting that much current
The transistor won't operate like that given the way it is biased in the circuit.
>most optocoupler diodes have a forward drop of 2V or more
The data sheet for this opto lists the forward voltage drop as 1.3 - 1.7 volts.
See my comments below. The only error is that the OP reversed the symbol for the battery. Look at the breadboard; he/she built it with the power supply correctly installed.
You're probably right about the datasheet for the opto, but that neither clashes with my statement ("most optocouplers") nor invalidates the broader point (Vcesat is ~300mV; the diode is most definitely off).
Aside: I spent several years as the lead engineer on a line of digital isolators (modern replacements for optocouplers: CMOS integrated circuits with much higher speed, better immunity to common-mode transients, and no need to use expensive and generally boutique processes supporting LEDs). Most of the time, opto manufacturers oversell the capabilities of their optos at low voltage, and generally speaking in industrial applications optocouplers are driven much harder than the currents at which forward drop numbers are quoted in datasheets.
Aside #2: bipolar transistors absolutely do operate upside-down! Reverse beta is usually far worse than forward beta, because the collector region tends to be much larger than the emitter and as a result there is substantial carrier recombination.
In fact, when you want to use a bipolar transistor as a low drop switch, and if you don't care how much base current you have to use to do it, running the transistor upside-down tends to result in lower drop and faster operation. There are a few reasons for this, but it boils down to this: the speed of the bipolar transistor as a switch is limited by charge storage in the base when the device is saturated, or more precisely, the amount of time it takes to remove this charge when trying to turn the device off. The base-collector diode behaves differently than the base-emitter diode because of the difference in emitter and collector doping. As a result, when upside-down, the base-collector junction stores much less charge, the lower beta actually means that the charge is removed faster, and the higher forward drop of the base-emitter diode means that reverse Vcesat is lower than the forward Vcesat.
The downside, to which I alluded above, is 10x or more base current to actually drive the transistor. Depending on the quantum efficiency of this phototransistor and its reverse beta, were the OP to use the phototransistor upside-down in this circuit, it might not be able to shunt sufficient current to keep the optoisolator off.
Ah, I see the confusion. The power supply should be connected such that the positive terminal is on the left. If you look at the breadboard, you can see that this is, in fact, what's built. My description of the circuit's operation above is accurate when the power supply is properly connected.
Yeah, the LED in the opto isn't even connected correctly. I doubt it would ever light up. I left a post on the website explaining how it should have been setup.
https://www.dropbox.com/s/ox5wxmnhzg045b4/Final.pdf