Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the Sparkfun WeatherKit #163

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

JohnDoeKyrgyz
Copy link

This PR adds the Sparkfun WeatherKit as a weather station option. Product listing and data sheets are available here:

https://www.sparkfun.com/products/15901

Some things to note on this PR:

  1. I updated the tooling and instructions in the /src/web directory to make it easier for people to update the web content. I ran into issues on MacOS when updating the web content to include a new choice of anemometer. As part of this I included the source for the filetoarray tool. I added some lines to the platformio.ini file to exclude this file from compilation so that it does not cause problems. It may be a better to place this file in a separate 'tools' directory, or not bother including it altogether if there is concern about changing the platformio.ini file.

  2. The Sparkfun WeatherKit depends on 12 bit ADC resolution. The device uses an ADC voltage reading to compare against a pre-defined table of values to determine the direction that the weather vane is pointing. I commented out a line in the setup() function in main.cpp where analogReadResolution is being set to 10. As far as I can tell this should be safe. No other devices appear to depend on specific ADC readings to function, but this detail should be confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant