| esp-idf@397639da7d | ||
| main | ||
| .gitignore | ||
| .gitmodules | ||
| CMakeLists.txt | ||
| README.md | ||
wifi-ntp-pps
Produce a pps signal reasonably well synchronized to NTP. The duty cycle is 100ms on (starting at the top of the second), 900ms off. Jitter is very high relative to GPS or even WWVB, but long term accuracy should be extremely good thanks to NTP.
Installing and setting up esp-idf
One time set-up:
git submodule update --init
esp-idf/install.sh
(Note that this will fail if you've previously done . esp-idf/export.sh; use a fresh terminal if you have to (re)install esp-idf)
Set environment variables in current shell until exit:
$ . esp-idf/export.sh
Configuring wifi-ntp-pps
Open the project configuration menu (idf.py menuconfig):
-
Configure Wi-Fi under "Example Connection Configuration" menu. See "Establishing Wi-Fi or Ethernet Connection" section in examples/protocols/README.md for more details.
-
Select an ntp server. Ideally, a local server. Otherwise,
pool.ntp.orgcan be used. The default will not work.
Compiling
idf.py all
Flashing
Plug in the device while holding the BOOT button. Alternately hold BOOT and press RESET once. Determine where the device has appeared, such as /dev/ttyACM1.
idf.py flash --after no_reset --port=/dev/ttyACM???
Once flash has finished, click the reset button once. (Technical limitations seem to prevent automatically resetting after loading the code)