No description
Find a file
2022-01-07 15:08:09 -06:00
esp-idf@397639da7d add esp-idf 2022-01-07 14:32:24 -06:00
main initial commit 2022-01-07 14:31:26 -06:00
.gitignore get it working 2022-01-07 15:08:09 -06:00
.gitmodules add esp-idf 2022-01-07 14:32:24 -06:00
CMakeLists.txt initial commit 2022-01-07 14:31:26 -06:00
README.md get it working 2022-01-07 15:08:09 -06:00

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.org can 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)