Opened 12 years ago

Closed 10 years ago

Last modified 8 years ago

#552 closed enhancement (fixed)

Turtle art, reinstate sensor input

Reported by: tonyforster Owned by: walter
Priority: Normal Milestone:
Component: Turtleart Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

See tickets 343 and 155
Sensor input is disabled in TA V42
1)There are issues with alsaaudio on non XO architecture which need resolving.
2)Voltage should convert as avg, not rms (as does resistance)
3)Alsaaudio appears to be returning an undersize buffer occasionally in TAP V18 which crashes pitch ( unpack() is given an odd length string ) and I think produces occasional zero values in other modes

Attachments (2)

sensor gain.xls (19.5 KB) - added by tonyforster 10 years ago.
test results on xo1 gain and offset
TurtleArt-103.xo (985.3 KB) - added by walter 10 years ago.
update audio mode every time

Download all attachments as: .zip

Change History (13)

comment:1 Changed 12 years ago by walter

  • Status changed from new to accepted

comment:2 Changed 12 years ago by erikos

  • Milestone changed from Unspecified by Release Team to 0.86

Moving it to 0.86 as it seems an enhancement.

comment:3 Changed 12 years ago by walter

  • Milestone changed from 0.86 to 0.88

Given the recent discussion about doing physical experiments, this is of renewed interest/priority. But I don't think I could get it done before string freeze... deferring to 0.88.

comment:4 Changed 11 years ago by walter

  • Milestone changed from 0.88 to 0.90

Closer, as we have the 0Install approach to bundles. Sascha also recommended I look into gstreamer as an end-run around the problem... will aim for 0.90.

comment:5 Changed 10 years ago by walter

  • Milestone changed from 0.90 to 0.92

Based upon Measure code. Tested on XO 1.5. Need to add fft for pitch and test more extensively.

comment:6 Changed 10 years ago by walter

I've tested on an XO 1.5 running 303 (Sugar 0.84) and an XO 1 running 703. Obviously we need more testing... but getting closer.

Changed 10 years ago by tonyforster

test results on xo1 gain and offset

comment:7 Changed 10 years ago by tonyforster

Test results uploaded for 3 x XO1 - sensor gain.xls
resistance accuracy +-5% wrt full scale raw data
voltage +-3% of full scale
Hz accuracy +-46000/len(buf)

Hz = 46000/len(buf) x index
Volts = 0.00002225*float(_avg(buf))+1.140
Ohms = 2.718(0.000045788*float(_avg(buf))+8.0531)

Changed 10 years ago by walter

update audio mode every time

comment:8 Changed 10 years ago by walter

  • Resolution set to fixed
  • Status changed from accepted to closed

I released v103. It may still need some fine-tuning, but it is seeming working well enough to put it out into the world. We should open a new ticket for bugs associated with sensors.

comment:9 Changed 9 years ago by tonyforster

See #2527 for issues relating to XO-1.5 sensor initialisation

comment:10 Changed 9 years ago by tonyforster

see #3258 Turtleart XO-1.75 sensor calibration

comment:11 Changed 8 years ago by dnarvaez

  • Milestone 0.92 deleted

Milestone 0.92 deleted

Note: See TracTickets for help on using tickets.