Need sample code interfacing Altimeter and Arduino SPI
danidub
Posts: 13
Hello, I recently buy a Altimeter Module MS5607 (http://www.parallax.com/Store/Sensors/AccelerationTilt/tabid/172/ProductID/780/List/0/Default.aspx?SortField=ProductName,ProductName) and I need to interface it with my Arduino UNO with SPI protocol.
Any advice there, any sample code? I cant figure how to communicate with the module.
Thanks, Daniel P
Any advice there, any sample code? I cant figure how to communicate with the module.
Thanks, Daniel P
Comments
John Abshier
Hi John, thank you! I have already seen the I2C code, but I need to communicate with SPI.
Daniel P.
Thank you,
Daniel P.
Thank you, but I have searched all over the internet and forums with no success for this module connected with SPI
Thank you,
Daniel P.
Daniel P
I'm still trying and I made this code, that when a "0" is recieved in the serial, the arduino sends the conversion and read commands to the altimeter and stores the 24 bit data of the altitude. Till now, I get the data in three bytes, but for some reason I only get 3 bytes of 11111111, 11111111, 11111111.
I post the code: