December 2014 (2)

Wednesday, December 17 2014

How to make MMA8451 working with raspberry pi over I2C

MMA88451 doesn't work with raspbterry pi out of the box. It needs I2C with repeated start. Test program in python: import smbus DEVICE_ADDRESS = 0x1d MMA8451_REG_WHOAMI = 0x0D bus = smbus.SMBus(1) ret = bus.read_byte_data(DEVICE_ADDRESS, MMA8451_REG_WHOAMI) print ret Shows zero instead of expected  […]

Continue reading

Sunday, December 7 2014

Python library for Raspberry PI for Ultimate GPS based on MTK3339 with serial interface as sold by Adafruit

https://github.com/PrzemoF/mtk3339 Python library for Raspberry PI for Ultimate GPS based on MTK3339 with serial interface as sold by Adafruit. The library helps to set different chip parameters in a sane way. Currently supports minimum functional set of commands: CMD_HOT_START - hot_start()  […]

Continue reading