Python Forum

Full Version: Dynamic Polar Plor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am having two data values. One is of distance measured using UltraSonic sensor and the other is angle, varied using Stepper motor. Now, I want to plot it as a polar plot dynamically with the values updated.

Is it possible using Python reading the values from Arduino? Is there any code available for the same?
Certainly this is possible using a Raspberry Pi and arduino.
About 8 years ago I hooked up a small speaker to an arduino and displayed on my laptop screen the output when someone spoke. It wasn't brilliant as the analogue inputs on the adruino are not that fast but good enough for audio. However that used the C like code on the arduino and processing which is also a C like language on the laptop
Have a look here
https://www.raspberrypi.org/blog/raspberry-pi-and-arduino/

And here
http://www.doctormonk.com/2012/04/raspberry-pi-and-arduino.html
There are many more sites which would help.
Of course you could use your PC. if you connect to the serial interface on the arduino you can communicate
bidirectionally with suitable programs on each one.