0

For the mapping of the obstacles in a region, I was planning on using Sharp IR range finders connected with an Arduino Mega and then trying to plot it in real time on a polar histogram type map using python and matplotlib. I was a bit confused about how to proceed through the interfacing of the Arduino and python over the serial connection.

Any help would be great.

Thanks

dsolimano
  • 8,870
  • 3
  • 48
  • 63

2 Answers2

1

This might be a good start: Arduino and Python. Summary: use pySerial and read from/write to /dev/tty.usbserial.

See also:

How to send a value from Arduino to Python and then use that value

Receive multiple values via pyserial and display in Python GUI

Community
  • 1
  • 1
Alex I
  • 19,689
  • 9
  • 86
  • 158
0

If you are ok with skipping Python you can do the same thing in Processing. If you just manage to send the data wirelessly over for examble xbee or bluetooth then it would be a piece of cake to connect it to a plotting software like this http://sebastiannilsson.com/en/k/projekt/realtime-plotter/

sebnil
  • 113
  • 8