Duplicate post. https://groups.google.com/forum/#!topic/beagleboard/xNylvz4whSs Please ignore.
On Saturday, October 26, 2013 2:48:24 PM UTC+5:30, Limpy wrote: > > Hi everyone, > > This is my first post in this forum. > > I connected BBB (running Angstrom) and ran the code in this link > http://beagleboard.org/Support/BoneScript/Potentiometer/ from browser. > Instead of a pot, there's a LDR-resistor network. > > Arrangement: > Vdd_ADC 1.8V goes to a 47k resistor. > From resistor, an LDR (9k ohms in light and around 115k in dark). Other > end of LDR connected to GNDA_ADC > P9.40 (AIN1) of BBB connected between the resistor and LDR. > > Issue: > On pressing the Run button, the console shows value "x.value = > 0.12777777777777777" when LDR is exposed to light. > I removed the source of light (covered the LDR with finger) and pressed > Run button. The value doesn't change. It's "x.value = 0.12611111111111112" > On pressing the Run button again, the value gets updated: "x.value = > 0.40944444444444444" > > The value must get updated in the second step itself, right? Why doesn't > it happen so? > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
