Opened 10 years ago
Last modified 8 years ago
#4649 new enhancement
Turtleblocks sensor calibrations for V193
Reported by: | tonyforster | Owned by: | |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Turtleart | Version: | Unspecified |
Severity: | Unspecified | Keywords: | |
Cc: | Distribution/OS: | Unspecified | |
Bug Status: | Unconfirmed |
Description (last modified by tonyforster)
XO-4 B1 (preproduction) SKU292
self.voltage_gain = 0.0004073
self.voltage_bias = 1.6289
Range 0.17V to 3.08V
resistance, both inputs connected:
elif self.hw in [ XO4]:
if avg_buf < 6629:
self._resistance[channel] = \
1.0 * ((50000000 / (6629 - avg_buf)) - 3175)
range 0 to inf ohms
XO-1.75 (production) SKU203
self.hw reports as xo1 so the model detecting logic is not working (sug0.94 OS883)
THAT MEANS IT IS INITIALISING AS XO1, CALIBRATION AFFECTED
self.voltage_gain = 0.000101
self.voltage_bias = 1.371
Range 0.01V to 3.01V
resistance both inputs connected
if avg_buf < 15740:
self._resistance[channel] = \
1.0 * ((48000000 / (15740 - avg_buf)) - 1640)
range 0 to inf
Attachments (1)
Change History (22)
comment:1 Changed 10 years ago by tonyforster
- Description modified (diff)
comment:2 Changed 10 years ago by tonyforster
- Description modified (diff)
comment:3 Changed 10 years ago by tonyforster
- Description modified (diff)
comment:4 Changed 10 years ago by tonyforster
- Description modified (diff)
comment:5 Changed 10 years ago by walter
comment:6 Changed 10 years ago by tonyforster
have you fixed the 1.75 detection bug?
comment:7 Changed 10 years ago by tonyforster
Tests OK on XO-4 B1
They changed the audio circuit between the B1 and C of the XO-1.75, just incase they have done the same with the xo-4, if you have a production xo-4, can you please check that resistance reads ok on o/c and s/c, that will give reasonable confidence of no changes.
Calibration of my xo-1.75 is faulty. Presumably still reporting as xo1 and using the XO-1 calibration
comment:8 Changed 10 years ago by walter
Your xo-1.75 is running Sugar 0.94? Mine is running 0.98 and it is detecting 1.75 correctly. Can you check to see if your system has:
/bin/olpc-hwinfo
/sys/devices/platform/lis3lv02d/position
thx
comment:9 Changed 10 years ago by tonyforster
a quick look and neither file seems to be there
yes running 0.94
I can upgrade the os if you want
got to go, back in 3 hrs
comment:10 Changed 10 years ago by walter
When you get back, maybe you can check to see if the accelerometer works. I suspect not, since I am looking for /sys/devices/platform/lis3lv02d/position
Not sure how to detect an XO 1.75 on 0.94.
If you could try a more recent version of Sugar, I suspect it will work.
comment:11 Changed 10 years ago by tonyforster
The sensors pallette does not have an accelerometer block.
There may not be any 1.75's running Sugar 0.94 in the field. Not sure how many have been deployed and with which sugar version.
comment:12 Changed 10 years ago by walter
thanks for checking...
I'll try to find a 0.94 build to install to see if I can find some unique 1.75 feature I can use for a test.
comment:13 Changed 10 years ago by tonyforster
Upgraded the 1.75 to Sugar 0.100 OS23. Its behaving strangely. Resistance o/c and s/c both read 0 ohms but rapidly changing between flicks up non zero readings. I suspect its AC coupled.
When I had it working yesterday it presumably initilised ALSA as xo1, now its presumably initialising as xo175.
comment:14 Changed 10 years ago by tonyforster
no, its not ac coupled buf o/c =30500, buf s/c =-26000 but both display 0 ohms
comment:15 Changed 10 years ago by tonyforster
- Description modified (diff)
comment:16 Changed 10 years ago by tonyforster
NEW 1.75 calibration, initialised as 175
elif self.hw == XO175: # Range 0 to inf ohms
if avg_buf < 30519:
self._resistance[channel] = \
(92000000. / (30519 - avg_buf)) - 1620
comment:17 Changed 10 years ago by tonyforster
NEW 1.75 calibration, INITS AS 1.75
elif self.hw == XO175: # Range 0.01V to 3.01V
self.voltage_gain = 0.0000516
self.voltage_bias = 1.3598
Changed 10 years ago by tonyforster
comment:18 Changed 10 years ago by walter
https://git.sugarlabs.org/turtleart/mainline/commit/6355450fff40c5e9b0f255da477e7dc14251a8e6
Thanks for all the help with this. These numbers will be in v193.
comment:19 Changed 10 years ago by tonyforster
Tested V193 from ASLO on all 4 XO models
XO 1.5 OK apart from random poor initialisation bug
XO-4 OK
XO-1.75 sugar 0.100 os23 calibrations OK but there is 1mA bias in voltage mode (sorry I didn't pick this up before)
XO-1 sugar 12.1.0 os21, bad ALSA initialisation, both V and R seem to be AC coupled
comment:20 follow-up: ↓ 21 Changed 8 years ago by godiard
@walter, @tonyfoster, can this ticket be closed?
comment:21 in reply to: ↑ 20 Changed 8 years ago by tonyforster
Replying to godiard:
@walter, @tonyfoster, can this ticket be closed?
No, I don't think so
Tested with v209. XO-1 is bad. It appears to be AC coupled, that is in resistance mode it reads 3k for o/c and s/c, only changing briefly when R changes.
I've incorporated these into [1]. Please test.
[1] http://people.sugarlabs.org/walter/TurtleBlocks-193.xo