Go Down

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

##### Dec 09, 2013, 01:34 am
Hi:
These are 2 different types of compasses built with Processing to be used with Arduino.
Thanks.

Perseverance is 90% of the solution. The remaining 10% is more perseverance.

#### robtillaart

#1
##### Dec 09, 2013, 09:23 pm
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)

#2
##### Dec 15, 2013, 02:03 amLast 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

#3
##### Jun 19, 2014, 11:40 pm
Nice.  Is the code available ?
I would like to use it in a dual-GPS heading indicator.

#4
##### Jun 20, 2014, 11:33 pm
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;
Perseverance is 90% of the solution. The remaining 10% is more perseverance.

Go Up

Please enter a valid email to subscribe