Visualisation of ahrs state by web interface
It is web visualisation of AHRS system for developing and debugging the AHRS.
It is based on node js web server.
You can see the angles by any tablet pc, laptop, smartphone ..
It was written in mind to be run at raspberry pi. The server on raspberry. And client on any moblie device browser.
Key features:
- Direct and indercet indicators of yaw pitch roll,
- Indication of gravity vector, (for coordinated turns)
- Indication gyroscop temperature
- Comunicate with arduino sensor via serial USB
- Fullscreen mode at browser
- No sleep mode on android devices
- Magnitometer HARD and SOFT calibration
There is no code of AHRS sensor here. No fusion algoritm. There is an example of Arduino sketch for printing out the ahrs state.
For fussion algorithm see https://github.com/MicroAHRS/microahrs
https://github.com/nodesource/distributions/blob/master/README.md#deb
git clone https://github.com/titanproger/ahrs_web_visualisator.git
cd ahrs_web_visualisator
npm install
On raspberry you need install serial-port.js (for comunication with sensor)
sudo npm install serialport --unsafe-perm --build-from-source
node bin/www
localhost:3000
Open ArduinoExample/ahrs_output_sample/ahrs_output_sample.ino with Arduino IDE
Burn the image to Arduino ( tested with Arduino Nano)
Connect your Arduino to Raspberri Pi (you can check /dev/ttyUSB0 should be present) Run nodejs with node bin/www Open brawser at <raspberry_ip>:3000
same as on raspberry =) but connect Arduino to your computer