Hey Martin / list,
This is all marvellous news.
Going a bit slower at our end, not helped by Easter holidays, trips to the seaside (bit chilly) and the plethora of children that require our undivided attention.
ebay parts arrived today and don't fit which is annoying to say the least. Spent several hours tracking down the correct housings and pins and then finding somewhere in the U.K. that would sell me less than a hundred housings or a thousand pins. Ended up with 5 and a 100 respectively.
Also got a voltage transformer that works with i2c as the rpi is 3.5v and sensors 5v.
Am planning on blogging all the info when done but if anyone wants any specifics before then please say.
I'm slowly making some headway with getting my head around the gpio pins and setting those up to use with Miller's [gpio]. I can now access the i2c pins via [gpio] and send them 1 or 0 setting the pins hi and lo which is a start.
Also found where to set the baud rate from within the RPi which will be useful. Although the sensor mentions 1000k as baud rate I'm thinking that 9600 would be better for overhead reasons. Perhaps we should get it working as is before starting to change too many settings?
Still absolutely no idea how to setup sending and receiving 16b messages plus how to add in the delay but we will get there in the end.
"You write the value 0x4C (76) to address 7 and then request 32 (35) bytes, which are 16 little-endian integers."
Any ideas how we would go about formulating messages for this from within Pd?
Should we be looking at [comport] at all?
With my limited understanding it seems to be saying it's big-endian (msb first, p.4) ?
We have 2 sensors so we need to figure out how to set the 7bit addresses.
Also that the data bit width is 8 - so I'm confused as to what the 35 bytes are and where they come from?
Obviously things should become clearer when we actually have the sensors connected and we can then see what they spit out (if anything) but it can't hurt to try and head off some of the more obvious questions I have now.
Like, will the data from the sensor appear at the outlet of [gpio]? The same author of WiringPi also has the i2c-library - would it be possible to fold this into [gpio]?
Questions questions...
Cheers,
Julian