<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On 3/09/2008, at 8:32 , Richard Jones wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">I've attached the mindstorms light sensor schematic and I've not made much</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">sense of it yet, anyone understand how it works? It appears to use current</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">mirrors and a 3.1ms time constant. I'm not even certain whether the output</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">to the nxt brick is current or voltage.</font></p> </blockquote></div><br><div>The wild speculation of one who understands little and fumbles in the dark might suggest:</div><div><br></div><div>Q1A & Q1B appear to be a PNP current mirror, BUT R2 damages that function.</div><div>As light increases, current in Q1A increases, increasing Vbe. This increases Ic in Q1B but this increases voltdrop on R2, thus reducing its Vbe relative to Vbe on Q1A. My guess is this has a logarithmic effect - thus increasing dynamic range for the sensor.</div><div><br></div><div>Q2A and Q2B appear to be another (NPN) current mirror, but with emitter resistors in both sides. R5/C2 will act as a filter (changes in Q1B/Q2A Ic will mostly be absorbed by C2, thus reducing instantaneous current change in Q2B. R5/R6 would appear to give 12x current gain and when taken in conjunction with the 10K pullup inside the NXT they appear to provide some negative feedback effect (otherwise R4 would saturate Q2B).</div><div><br></div><div>Q4 drives a light emitter and is controlled by the ARM and one could speculate that it might be driven at some frequency (perhaps 1KHz) so that the received analogue signal can be filtered (in software) to remove the effect of ambient lighting.</div><div><br></div><div>It looks like a nice circuit to give to a simulator package, then perhaps we can understand it better.</div><div><br></div><div>Or maybe someone here actually understands these things...</div><div><br></div><div>Howard</div></body></html>