Reading Inclinometer data via spi with python and publishing data with mqtt, under raspbian stretch.
Project is to read SCA100T data with spi, necessary hardware can be sent.
raspberry acts as mqtt client - publishing SCA100T data as inclination angles and temperature in specified timeintervals to mqtt broker
job ist to python coding spi communication with SCA100T-D01.
commands for reading SCA100T-D01 Data arriving as mqtt messages (topic CUS/I/RT - reading Temperature) or for self test. X,Y accel data 0-2048 is to be published periodically to topic CUS/I/X , CUS/I/Y.
SCA100T commands see attachde file:
Measure mode (normal operation mode after power on) RWTR 00001000 Read temperature data register
Activate Self test for X-channel STY 00001111 Activate Self test for Y-channel
Read X-channel acceleration RDAY 00010001 Read Y-channel acceleration