This contains info about:
To read analog values, you need to enable SPI.
You can find how to in this README.
Two version of the board have been used:
The linksprite board has a 4-channel analog-to-digital converter. You need to use this to read values from analog sensors since the RaspberryPi doesn't have analog inputs.
Note that the board has a jumper to set VCC to 3.3V or 5V. Some devices will not work if it's the wrong setting...
The numbers disposed in the schema above are needed to inform to a given program where the sensor/actor is connected.
- temperature
- light (see linksprite documentation)
- noise level
- 3-axis accelerometer
- Rotary Potentiometer
- Magnet modul
- Heartbeat
- Magic light cup
- knock
- photocell
For the temperature sensor, use this python code to convert raw values to degrees celsius:
temp = (((value * 1000) - 500)/10)
analogIn.py
shows how to read the valuesanalogInputDemo
display all 4 values in real time; useful for test/debug