The Meadow.Foundation peripherals library is an open source repository of drivers for various peripherals such as sensors, motors, displays, cameras, and other peripherals which make it easy to add hardware to your Meadow application.

The peripherals are split into two groups; the first group is general, core peripherals that are included in the main Meadow.Foundation NuGet package. The second group are additional drivers that are available via separate NuGet packages to keep the core size to a minimum.

Core Peripherals

LEDs

Driver Description Tested Working Notes
Led Simple LED Yes  
PwmLed Pulse-Width-Modulation powered LED Yes  
RgbPwmLed Pulse-Width-Modulation powered RGB LED Yes  
LedBarGraph Generic segmented LED bar Yes  

Motors

Driver Description Tested Working Notes
HBridgeMotor Generic h-bridge motor controller Yes  

Relays

Driver Description Tested Working Notes
Relay Electrically isolated switch Yes  

Speakers

Driver Description Tested Working Notes
PiezoSpeaker A 2 pin piezo-electric speaker capable of generating tones Yes  

Sensors

Buttons

Driver Description Tested Working Notes
PushButton Simple push-button Yes Requires external PU/PD resistor

Rotary Encoders

Driver Description Tested Working Notes
RotaryEncoder A simple rotary encoder    
RotaryEncoderWithButton A rotary encoder that includes a push button   Requires external PU/PD resistor

Switches

Driver Description Tested Working Notes
SpstSwitch A simple single-pole, single-throw (SPST) switch Yes Requires external PU/PD resistor
SpdtSwitch A simple single-pole, dual-throw (SPDT) switch    
DipSwitch A multi-pole dip switch   Requires external PU/PD resistor

Temperature

Driver Description Tested Working Notes
AnalogTemperature Analog temperature sensor (TMP35 / TMP36 / TMP37 / LM35) Blocked on analog  

Hall Effect

Driver Description Tested Working Notes
LinearHallEffectTachometer Hall Effect Linear Tachometer sensor    

Additional Peripherals

Audio

Driver Description Tested Working Notes
TEA5767 FM radio module Yes  

Display and Graphics Drivers

Driver Description Tested Working Notes
GraphicsLibrary General purpose graphics library Yes  
CharacterDisplay LCD display Yes digital IO only
SevenSegment Seven Segment Display Yes  
PCD8544 PCD8544 LCD driver (Nokia 5110) Yes  
SerialLCD SparkFun serial LCD backpack driver   Blocked on serial
SSD1306 OLED single color display Yes  
ST7565 Single color positive LCD Yes  
TextDisplayMenu Text Display Menu for LCD displays    
TftSpi Thin Film Transistor (TFT) SPI Library Yes  
WaveShare ePaper ePaper/eInk display Library    

Integrated Circuits (ICs)

Driver Description Tested Working Notes
AT24Cxx AT24Cxx Family of EEPROMs including AT24C32    
x74595 74595 shift register for digital output expansion    
MCP23008 MCP23008 for digital output expansion    
HT16K33 HT16K33 for digital output expansion Yes  

Real Time Clocks (RTCs)

Driver Description Tested Working Notes
DS323x Real Time Clock modules    
SD1307 Real Time Clock SD1307 Yes  

Sensors

Atmospheric (Temperature, Humidity, Barometer, Altitude) Sensors

Driver Description Tested Working Notes
BME280 Combined I2C/SPI temperature, humidity, and pressure sensor Yes  
GroveTH02 Grove TH02 temperature and humidity sensor    
HIH6130 Combined I2C temperature and humidity sensor    
SHT31D Combined I2C temperature and humidity sensor    
SI7021 Combined I2C temperature and humidity sensor    
MPL115A2 MPL115A2 Barometric sensor    
MPL3115A2 MPL3115A2 Barometric sensor    
DS18B20 DS18B20 temperature sensor   1-Wire bus
TMP102 TMP102 temperature sensor    

Distance Sensors

Driver Description Tested Working Notes
HCSR04 HCSR04 distance sensor    
HYSRF05 HYSRF05 distance sensor    
SFSR02 SFSR02 distance sensor    

GPS Sensors & Libraries

Driver Description Tested Working Notes
NMEA Generic GPS sentence decoder library Yes  

Light Sensors

Driver Description Tested Working Notes
ALSPT19315C Analog light sensor    
SI1145 I2C infrared, ultraviolet, and ambient light sensor    
TSL2561 I2C infrared-compensated light sensor    

Soil Moisture Sensors

Driver Description Tested Working Notes
Capacitive Capacitive Soil Moisture Sensor    
FC28 FC-28 Soil Moisture Sensor    

Motion and Orientation Sensors

Driver Description Tested Working Notes
ADXL335 Analog triple axis, +/-3g accelerometer    
ADXL345 I2C triple axis accelerometer, +/-16g accelerometer    
ADXL362 I2C ultralow power, 3-axis MEMS accelerometer    
BNO055 I2C 9-Axis absolute orientation sensor    
GY521 I2C 6-Axis absolute orientation sensor    
MAG3110 I2C three axis magnetometer    
ParallaxPir Parallax PIR Rev B digital motion detector Yes  

Servos

Driver Description Tested Working Notes
Servo Generic servo library Yes  

These docs are open source. If you find an issue, please file a bug, or send us a pull request. And if you want to contribute, we'd love that too!