if (adc < 551) return (203);
if (adc < 615) return (180);
if (adc < 680) return (23);
if (adc < 746) return (45);
if (adc < 801) return (248);
if (adc < 833) return (225);
if (adc < 878) return (338);
if (adc < 913) return (0);
if (adc < 940) return (293);
if (adc < 967) return (315);
if (adc < 990) return (270);
return (-1);
}
The code begins by checking which MicroMod Processor was selected in Arduino and adjusts a few pin settings
accordingly so it will work with any SparkFun MicroMod Processor. Next, it initializes all the on board sensors and
checks for proper responses as well as checking for external sensors (wind, rain and soil).
Once all the sensors initialize, the code prints out data from each sensor. Open your serial monitor and set the
baud to
115200
to watch the data print out.
Resources and Going Further
For more information about the MicroMod Weather Carrier Board, check out the following links:
Eagle Files (ZIP)
Schematic (PDF)
Dimensional Drawing (PNG)
GitHub Hardware Repository
BME280 Arduino Library
BME280 Datasheet (PDF)
VEML6075 Arduino Library
VEML6075 Datasheet (PDF)
AS3935 Arduino Library
AS3935 Datasheet (PDF)
For more information about the SparkFun MicroMod Ecosystem, take a look at the links below:
MicroMod Landing Page
Getting Started with MicroMod
Designing With MicroMod
Looking for some project inspiration using your Weather Station Carrier? The tutorials below can help you get
started!