think it should be possible to use this device from a raspberry.
Although arduino world is using 5V, the module uses only inputs, so the raspberry 3.3V will drive the device, but there are no 5Voutputs which would harm the pi.
I do not have a complete solution, but here is a sketch for this:
- check out the maxim data sheet for the 7218. There are all informations in on how to interface this device to a microcontroller.
- The interface is a SPI-type, so connect it to the corresponding GPIO-Pins of Pi
- prepare python environment
# sudo modprobe spi_bcm2708
# sudo apt-get install python-dev
# sudo apt-get install git
# git clone git://github.com/doceme/py-spidev
# cd py-spidev/
# sudo python setup.py install
- run some code similiar to the following sketch
Code: Select all
.. the following code is copied from a class
self.spi = spidev.SpiDev()
self.spi.max_speed_hz = 1000000
# use list() to clone the data, needed for the spidev.
r = self.spi.xfer( list([self.GET_DATA0, self.GET_DATA1, 0]))
Hope this gives you a starting point