Ticket #552 (closed enhancement: fixed)

Opened 4 years ago

Last modified 18 months ago

Turtle art, reinstate sensor input

Reported by: tonyforster Owned by: walter
Priority: Normal Milestone: 0.92
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

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

Change History

Changed 4 years ago by walter

  • status changed from new to accepted

Changed 4 years ago by erikos

  • milestone changed from Unspecified by Release Team to 0.86

Moving it to 0.86 as it seems an enhancement.

Changed 4 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.

Changed 3 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.

Changed 3 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.

Changed 3 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 3 years ago by tonyforster

test results on xo1 gain and offset

Changed 3 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 3 years ago by walter

update audio mode every time

Changed 3 years ago by walter

  • status changed from accepted to closed
  • resolution set to fixed

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.

Changed 18 months ago by tonyforster

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

Changed 18 months ago by tonyforster

see #3258 Turtleart XO-1.75 sensor calibration

Note: See TracTickets for help on using tickets.