Things used in this project

Hardware components:
Microbitheart
BBC micro:bit board
×1
13637 01
SparkFun Soil Moisture Sensor (with Screw Terminals)
×1
SparkFun JST Jumper 3 Wire Assembly
×1
SparkFun micro:bit Breakout (with Headers)
×1
12002 04
Breadboard (generic)
×1
Software apps and online services:
Cmdscreen2
micro:bit pxt.microbit.org

Custom parts and enclosures

Code for Micro:Bit Makecode
Screen shot 2017 07 09 at 11 09 07 pm h19kjdcbvv

Schematics

Option A: With breadboad
Connect using a breakout board and bread board
Microbit moisture sensor1 texdwggdb8
Option B: With out bread board/breakout board
Use wires to connect micro:bit to moisture sensor. Use diagram for guidance.
Microbit moisture sensor2 v3rfmtxbrx

Code

Code for MicropythonPython
from microbit import *

while True:
    lightSensor = pin1.read_analog()
    if lightSensor > 200:
        smile = Image(  "00000:"
                        "09090:"
                        "00000:"
                        "90009:"
                        "09990")
        display.show(smile)
    elif lightSensor < 200:
        frown = Image(  "00000:"
                        "09090:"
                        "00000:"
                        "09990:"
                        "90009")
        display.show(frown)

Credits

8f44de8bafe25f1cb22533c194599e43
rypsmith
1 project • 0 followers
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog