background image

 Note: 

Make sure that for whichever MicroMod Processor you choose, you have the correct board

definitions installed.  

For this particular example, we are using the Artemis MicroMod Processor. Board definitions for this
processor board can be found in the Software Setup and Programming section of the Artemis MicroMod
Processor Board Hookup Guide.  

If you are using a different processor, go to our MicroMod Processor Boards landing page, find your
Processor, and head on over to its tutorial for help installing your board definition.

MicroMod Weather Carrier Board Test Example

Before getting started with the Weather Carrier Board Example you will need to install the Board Definitions for
your chosen MicroMod Processor (outlined above) as well as the BME280, VEML6075 and AS3935 Arduino
Libraries. You can install them using the Arduino Library manager and searching '

SparkFun BME280

', '

SparkFun

VEML6075

' and '

SparkFun AS3935

'. Alternatively, you can download the libraries from their respective GitHub

repositories linked above or you can download the .ZIP for each of them by clicking the buttons below:

SPARKFUN BME280 ARDUINO LIBRARY (ZIP)

SPARKFUN VEML6075 ARDUINO LIBRARY (ZIP)

SPARKFUN AS3935 ARDUINO LIBRARY (ZIP)

With the libraries and processor board definitions installed we can go ahead and move on to opening the
MicroMod Weather Example sketch and uploading it to our MicroMod Processor. You can open a new blank
sketch and copy the code from below or you can download the entire GitHub repository for the Weather Carrier
Board which includes all of the examples by clicking the button below:

SPARKFUN MICROMOD WEATHER CARRIER BOARD GITHUB REPOSITORY (ZIP)

Navigate to the location the repository downloaded to and open the 

Examples

 folder. In that folder you'll find

examples for each sensor as well as 

MM_Weather_CB_Test

. Open that example in the Arduino IDE or copy the

code below into a blank sketch, select your Board and Port and click "Upload".

Содержание MicroMod SEN-16794

Страница 1: ...Board This nifty little weather station board works with all SparkFun MicroMod Processors so you can customize your weather station project to fit your needs SparkFun MicroMod Weather Carrier Board SE...

Страница 2: ...r data Required Materials Like all of our MicroMod Carrier Boards there is no processor included but instead you can plug in a processor of your choice to the MicroMod M 2 connector on the carrier Her...

Страница 3: ...need a SparkFun Soil Moisture Sensor the Weather Meter Kit and a microSD card SparkFun Qwiic Cable Kit KIT 15081 Flexible Qwiic Cable 100mm PRT 17259 USB 3 1 Cable A to C 3 Foot CAB 14743 Reversible U...

Страница 4: ...re you get started with the Weather Carrier Board you may want to read through the Hookup Guide for your chosen MicroMod Processor MicroMod Processor Hookup Guides can be found on the processors produ...

Страница 5: ...a variety of terminal emulator applications Getting Started with MicroMod Dive into the world of MicroMod a compact interface to connect a microcontroller to various peripherals via the M 2 Connector...

Страница 6: ...MicroMod circuit RTC Backup Battery Charge Circuit 1mAh backup battery for the Real Time Clocks on MicroMod Processors that have a built in RTC Receives charge voltage from 3 3V microSD Slot Insert a...

Страница 7: ...nm peak 330 10nm irradiance so you can calculate the UV Index at your Weather Station Example 4 Calculate UVI in the SparkFun VEML6075 Arduino Library demonstrates how to calculate that index using th...

Страница 8: ...u could even turn an irrigation system on or off depending on the sensor s measurements The Soil Moisture Sensor has two large coated pads that act as prongs for what is essentially a large variable r...

Страница 9: ...he rainfall detector outputs a digital signal to D1 MicroMod pad 18 For help assembling and testing your Weather Meters Kit check out our Weather Meter Hookup Guide Plated Through Hole Headers The Wea...

Страница 10: ...gulator For help measuring current take a look at our How to Use a Multimeter tutorial CLOSED Bypass BYP The penny in the fuse jumper Bypasses the 6V 2A fuse and nets VIN and V_USB together Close only...

Страница 11: ...3V Regulated 3 3V via USB C 3 USB_D Passthrough USB D connection for Processor Board 4 3 3V_EN 3 3V Enable Voltage regulator enable input 5 USB_D Passthrough USB D connection for Processor Board 6 RES...

Страница 12: ...Tied to TX2 PTH header pin 23 SWDIO SWDIO Serial Wire Debug I O 32 PWM0 PWM0 Dedicated PWM0 pin Broken out to PTH header pin 34 A0 SOIL_MOIST_SIG Analog input from soil mositure sensor 38 A1 WDIR Anal...

Страница 13: ...that fit a standard 4 40 screw Hardware Assembly Now that we are familiar with the hardware and sensors on the Weather Carrier Board it s time to assemble it with your chosen MicroMod Processor and g...

Страница 14: ...backward since the key prevents it from mating with the M 2 connector As an extra safeguard to prevent inserting a processor improperly or with a poor connection the mounting screw will not match up...

Страница 15: ...tor your environment Head on to the next section for an example to test all the sensors the Weather Carrier Board features Weather Station Arduino Example Note These examples assume you are using the...

Страница 16: ...BME280 SparkFun VEML6075 and SparkFun AS3935 Alternatively you can download the libraries from their respective GitHub repositories linked above or you can download the ZIP for each of them by clickin...

Страница 17: ...ect Weather carrier board to power useing USB C cable Connect SparkFun Soil Moisture Sensor to Weather carrier using latching terminals Connect both wind and rain meters to Weather carrier using the R...

Страница 18: ...lled when the magnet in the anemometer is activated void wspeedIRQ windFlag true This variable holds the number representing the lightning or non lightning event issued by the lightning detector int i...

Страница 19: ...plan on using this outdoors uncomment the following line lightning setIndoorOutdoor OUTDOOR the loop function runs over and over again forever void loop digitalWrite LED_BUILTIN HIGH turn the LED on...

Страница 20: ...w how far away is it Distance estimation takes into account any previously seen events in the last 15 seconds byte distance lightning distanceToStorm Serial print Approximately Serial print distance S...

Страница 21: ...e 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 Carr...

Страница 22: ...chine Instructions on hooking up to and communicating with the Si4707 Weather Band Radio Breakout using an Arduino LED Cloud Connected Cloud Make an RGB colored cloud light You can also control it fro...

Отзывы: