Welcome to OrientationSensorFusion-ESP Discussions! #16
Replies: 7 comments 4 replies
-
Hello Bjarne, |
Beta Was this translation helpful? Give feedback.
-
I started with the project again, using a ESP32-Lolin board that I've used before. Couple of remarks: So, very good results. Thanks a lot for the good work. Great work so far!! |
Beta Was this translation helpful? Give feedback.
-
Also nice to have a temperature output. I wasn't aware of this sensor on the board. If possible, please include that output also in the Signal K integration. Can't have enough temperature sensors (although I'm unaware of the accuracy) |
Beta Was this translation helpful? Give feedback.
-
Hi Bjarne, |
Beta Was this translation helpful? Give feedback.
-
Hi Daniel,
Merry Christmas, or any other seasonal celebration you have! I hope all is
well with you.
Well, calling it finished is premature as there are still a few things I
want to address, but it *is* working and that's exciting. There are a
couple of ways you can bring in the code changes: manually, and using git.
I'll describe both as best I can, and you can decide. If you can't get
something to work, then by all means let me know...
*Manual method. *
Assuming you already have the working SensESP code on your local computer
(a recent version or the latest from the master branch), then you'll need
to copy over a half-dozen files from my repository: So browse over to
https://github.com/BjarneBitscrambler/SensESP/tree/OrientationV7 which
should show you my version of SensESP. Ensure that you are looking at the
"Code" tab, and that the "OrientationV7" branch is selected (circled in the
attached screenshot). You should then be able to search out the following
files:
- platformio.ini Locate the "libdeps=" section and copy over the changes
from my file to the version of platformio.ini you are using. I've removed a
few of the unneeded AdaFruit libraries and added in the Orientation library
- examples/fx8700_heading_example.cpp This is the example that you can
copy and rename to use as your main.cpp The present version outputs
Attitude and CompassHeading Signal K messages
- src/sensors/orientation_sensor.cpp and orientation_sensor.h Copy these
new files to your src/sensors directory
- /src/sensors/orientation_9dof_input.cpp and .h Delete these two files
- /src/sensors/sensor_nxp_fxos8700_fxas21002.cpp and .h Delete these two
files
- src/signalk/signalk_attitude.h
<https://github.com/BjarneBitscrambler/SensESP/blob/OrientationV7/src/signalk/signalk_attitude.h>
Copy this new file into your same directory
- src/signalk/signalk_output.h
<https://github.com/BjarneBitscrambler/SensESP/blob/OrientationV7/src/signalk/signalk_output.h>
Copy this changed file into your same directory
That should let you compile the new orientation code (assuming I haven't
forgotten any steps/files)
*Git method*
The second way is more automated and possibly easier. It requires that you
have command-line access to git on your computer. But I agree that git
takes some getting used-to...
- In a directory that you want to use for your project, type *git clone
https://github.com/BjarneBitscrambler/SensESP.git
<https://github.com/BjarneBitscrambler/SensESP.git>* This should copy the
code to a new directory called SensESP.
- change to the new directory, and type *git checkout OrientationV7* This
should change your working branch the directory to the OrientationV7 branch
(which is the one I am developing the orientation code on)
- copy the file examples/fx8700_heading_example.cpp to src/main.cpp
This should now compile and run.
Note that whichever method you use, you may have to change platformio.ini
settings to select the platform you are compiling for (i.e. select d1_mini,
or esp32dev, or esp-wrover-kit
I may be repeating stuff you already know - or I may not be explaining in
enough detail. Either way, let me know how you progress! Cheers,
Bjarne
…On Wed, Dec 30, 2020 at 2:08 AM DanielG86 ***@***.***> wrote:
Hi Bjarne,
I saw that you finished the SensESP integration. Is there a way that I
could test the code? I'm not familiar with GitHub, so where can I find the
files?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQJATFLSNCYHMVU4UAFNIITSXL32HANCNFSM4UTAKGLA>
.
|
Beta Was this translation helpful? Give feedback.
-
Hello Bjarne,
Merry Christmas and Happy Newyear to you as well!
Thanks a lot for this extensive reply. Very helpful indeed.
I actually couldn’t find your updated code, but with your reply this became clear. I dowloaded it all and copied the entire download in VS Code. With some minor adjustments for my board and usb-port, it all worked. I’ve got it now running on a D1mini and will test on a ESP32 later.
Output looks good. I think the sensor needs some initial calibration, which I did by turning the device in all directions a couple of times. Prior to this, there was a slow decline in the heading data, but now it looks stable. Will do some more testing, e.g. how quickly it responds, and whether there is overshoot in the readings.
Met vriendelijke groet,
Daniel Goedhuis
06-52 52 50 62
… Op 30 dec. 2020, om 19:48 heeft Bjarne Hansen ***@***.***> het volgende geschreven:
Hi Daniel,
Merry Christmas, or any other seasonal celebration you have! I hope all is
well with you.
Well, calling it finished is premature as there are still a few things I
want to address, but it *is* working and that's exciting. There are a
couple of ways you can bring in the code changes: manually, and using git.
I'll describe both as best I can, and you can decide. If you can't get
something to work, then by all means let me know...
*Manual method. *
Assuming you already have the working SensESP code on your local computer
(a recent version or the latest from the master branch), then you'll need
to copy over a half-dozen files from my repository: So browse over to
https://github.com/BjarneBitscrambler/SensESP/tree/OrientationV7 which
should show you my version of SensESP. Ensure that you are looking at the
"Code" tab, and that the "OrientationV7" branch is selected (circled in the
attached screenshot). You should then be able to search out the following
files:
- platformio.ini Locate the "libdeps=" section and copy over the changes
from my file to the version of platformio.ini you are using. I've removed a
few of the unneeded AdaFruit libraries and added in the Orientation library
- examples/fx8700_heading_example.cpp This is the example that you can
copy and rename to use as your main.cpp The present version outputs
Attitude and CompassHeading Signal K messages
- src/sensors/orientation_sensor.cpp and orientation_sensor.h Copy these
new files to your src/sensors directory
- /src/sensors/orientation_9dof_input.cpp and .h Delete these two files
- /src/sensors/sensor_nxp_fxos8700_fxas21002.cpp and .h Delete these two
files
- src/signalk/signalk_attitude.h
<https://github.com/BjarneBitscrambler/SensESP/blob/OrientationV7/src/signalk/signalk_attitude.h>
Copy this new file into your same directory
- src/signalk/signalk_output.h
<https://github.com/BjarneBitscrambler/SensESP/blob/OrientationV7/src/signalk/signalk_output.h>
Copy this changed file into your same directory
That should let you compile the new orientation code (assuming I haven't
forgotten any steps/files)
*Git method*
The second way is more automated and possibly easier. It requires that you
have command-line access to git on your computer. But I agree that git
takes some getting used-to...
- In a directory that you want to use for your project, type *git clone
https://github.com/BjarneBitscrambler/SensESP.git
<https://github.com/BjarneBitscrambler/SensESP.git>* This should copy the
code to a new directory called SensESP.
- change to the new directory, and type *git checkout OrientationV7* This
should change your working branch the directory to the OrientationV7 branch
(which is the one I am developing the orientation code on)
- copy the file examples/fx8700_heading_example.cpp to src/main.cpp
This should now compile and run.
Note that whichever method you use, you may have to change platformio.ini
settings to select the platform you are compiling for (i.e. select d1_mini,
or esp32dev, or esp-wrover-kit
I may be repeating stuff you already know - or I may not be explaining in
enough detail. Either way, let me know how you progress! Cheers,
Bjarne
On Wed, Dec 30, 2020 at 2:08 AM DanielG86 ***@***.***> wrote:
> Hi Bjarne,
> I saw that you finished the SensESP integration. Is there a way that I
> could test the code? I'm not familiar with GitHub, so where can I find the
> files?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#16 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AQJATFLSNCYHMVU4UAFNIITSXL32HANCNFSM4UTAKGLA>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#16 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADRLPPVXZAG427VEYDUJUVLSXNYYLANCNFSM4UTAKGLA>.
|
Beta Was this translation helpful? Give feedback.
-
Hi would this be a good example to use as a basis for a sensesp gps? |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions