Go Down

Topic: Circular vs. Linear Compass (Read 3384 times) previous topic - next topic

arduinoadrian

Hi:
These are 2 different types of compasses built with Processing to be used with Arduino.
Thanks.

https://www.youtube.com/watch?v=XPTboqggOdw
Perseverance is 90% of the solution. The remaining 10% is more perseverance.

robtillaart

NIce demo, is the code available?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

arduinoadrian

#2
Dec 15, 2013, 02:03 am Last Edit: Dec 15, 2013, 01:37 pm by arduinoadrian Reason: 1
Hi:
Thanks for you comment. Sorry it took me a few days to answer; but I have been very busy and had no chance to clean up the code before posting it.
Well, I made another video with the code for the circular compass which is the most difficult one. In reality, this code is the base for many other circular indicators I have built so far, like Gauges and Galvanometers. I used two different methods to achieve rotation to show them as examples of how it can be done, using both, low level instructions and high level ones like rotate() and translate(), which I think are unique of Processing.
Hope you enjoy it and find it useful. The code is there.
Thanks.
I spotted a little problem with the mapping function since this is a complete  360 deg rotation and  I have to double check. I have to try and see how it works with an infinite rotation variable.
Perseverance is 90% of the solution. The remaining 10% is more perseverance.

sbkenn

Nice.  Is the code available ?
I would like to use it in a dual-GPS heading indicator.

arduinoadrian

Thanks.
You can try this one which is about the same. You need to clean up the code a little bit though.
here is the code:
http://forum.arduino.cc//index.php?topic=161472.0
and here is the video;
https://www.youtube.com/watch?v=R1yZFYNEbDU
Perseverance is 90% of the solution. The remaining 10% is more perseverance.

Go Up