I am attempting to get the mobile beacon connected to a Raspberry PI 3 Model B+ and run a Python program that will connect the values of the beacon. Currently, I have the system set up with two beacons and a hedgehog as such:
And I am running "example.py" on a Raspberry PI connected to the beacon by USB:
Here is my output, only 0's:
Code: Select all
from marvelmind import MarvelmindHedge from time import sleep import sys def main(): hedge = MarvelmindHedge(tty = "/dev/ttyACM0", adr=None, debug=False) # create MarvelmindHedge thread hedge.start() # start thread while True: try: sleep(1) # print (hedge.position()) # get last position and print hedge.print_position() except KeyboardInterrupt: hedge.stop() # stop and close serial port sys.exit() main()
Thank you and let me know if there is anymore information needed!