The difference in read rate is not the board (A3 vs B1) but a code change to temporarily slow down the access of the TWSI bus the accelerometer is on due to a temporary hardware constraint.<br>-Saadia <br><br><div class="gmail_quote">
On Mon, Aug 29, 2011 at 12:10 PM, Bert Freudenberg <span dir="ltr"><<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
On 25.08.2011, at 07:47, James Cameron wrote:<br>
<br>
> On Thu, Aug 25, 2011 at 03:22:06PM +1000, <a href="mailto:forster@ozonline.com.au">forster@ozonline.com.au</a> wrote:<br>
>>> I don't know enough about Turtle Blocks to comment, but if an<br>
>>> application such as Turtle Blocks tries to read the sensor, it will<br>
>>> probably block for as long as it takes for the transaction to complete<br>
>>> ... roughly 33 milliseconds.<br>
>>><br>
>><br>
>> I am getting 60mS per read in Turtle Blocks<br>
><br>
> On an XO-1.73 A3, I saw 25 reads per second, which would have been 40mS<br>
> per read.<br>
><br>
> On an XO-1.75 B1, I get between 17.07 and 18.22 reads per second in<br>
> /runin/runin-accelerometer with os40.  That would be 59mS to 55mS.<br>
<br>
A shell script needs 6.7 seconds to read it 100 times. That's 67 ms, B1 on os41.<br>
<br>
In any case it's fun to use, I made a little Etoys project to try:<br>
<br>
        <a href="http://croquetweak.blogspot.com/2011/08/squeak-etoys-on-arm-based-xo-175.html" target="_blank">http://croquetweak.blogspot.com/2011/08/squeak-etoys-on-arm-based-xo-175.html</a><br>
<br>
(and in Etoys each read takes about 65 ms).<br>
<br>
- Bert -<br>
<br>
<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</blockquote></div><br>