ESP Compass
Simple compass displayed in web browser.
Parts
- ESP8266 (e.g. NodeMCU v3)
- compass sensor (e.g. QMC5883L)
Wiring
Usage
- Install serial driver for ESP8266 board.
CH340 - http://www.wch.cn/download/CH341SER_ZIP.html - Install PlatformIO
https://platformio.org/install/ide?install=vscode - Load solution in VSCode
- Ensure git submodules are updated
- Adjust region settings in
/src/main.h
- Adjust Wi-Fi settings in
/src/wifi.cpp
Upload
solution to ESPUpload Filesystem Image
to ESP
Two Wi-Fi operation mode are possible:
- ESP is Wi-Fi access point (AP). (default)
- Connect to access point with client.
- Open Browser http://192.168.178.1
- ESP is Wi-Fi client.
- Check your router for IP of ESP.
Sensor needs calibration. To calibrate slowly turn sensor while web page is open.
Calibration is automatically stored in device.
To delete calibration use Earase Flash
in PlatformIO.
An upload will not overwrite the calibration data.