Hi all, I am trying to send some orientation sensor readings from a simple app created in AppInventor to a Picaxe 08M2 over an HC-06 BT->Serial module. The connection is made successfully, but I am not seeing the correct pitch/roll values.
Here is the BASIC code:
I have attached an image of the data transfer part of the app. The values I am receiving hover around the 50 range and only change slightly with movement of the phone. I am not sure if the serin command simply cannot keep up with the data stream, or if there is another problem elsewhere. I even tried serin with a qualifier, but the same results. Also, how/can Picaxe deal with the negative integers returned in one direction of the pitch/roll? I am basically trying to mimic the project below with a Picaxe. Any assistance would be greatly appreciated.
http://www.instructables.com/id/3D-Printed-Maze-Controlled-by-Your-Android-Device/
Here is the BASIC code:
Code:
setfreq m32
symbol pitch=b0
main:
serin c.3,t19200_32, pitch
sertxd(#pitch,cr,lf)
goto main
http://www.instructables.com/id/3D-Printed-Maze-Controlled-by-Your-Android-Device/