Pages: [1]   Go Down
Author Topic: Circular vs. Linear Compass  (Read 2939 times)
0 Members and 1 Guest are viewing this topic.
Miami/Florida
Offline Offline
Sr. Member
****
Karma: 14
Posts: 343
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

https://www.youtube.com/watch?v=XPTboqggOdw
Logged

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

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 216
Posts: 13673
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

NIce demo, is the code available?
Logged

Rob Tillaart

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

Miami/Florida
Offline Offline
Sr. Member
****
Karma: 14
Posts: 343
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: December 15, 2013, 07:37:09 am by arduinoadrian » Logged

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

Ireland
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Miami/Florida
Offline Offline
Sr. Member
****
Karma: 14
Posts: 343
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

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

Pages: [1]   Go Up
Jump to: