Skip to Main Content
Save the World with Code: 20 Fun Projects for All Ages Using Raspberry Pi, micro:bit, and Circuit Playground Express
book

Save the World with Code: 20 Fun Projects for All Ages Using Raspberry Pi, micro:bit, and Circuit Playground Express

by Lorraine Underwood
April 2020
Intermediate to advanced content levelIntermediate to advanced
224 pages
6h 2m
English
McGraw-Hill Education TAB
Content preview from Save the World with Code: 20 Fun Projects for All Ages Using Raspberry Pi, micro:bit, and Circuit Playground Express

MISSION 17

Moisture Sensor for Your Plants

Plants provide oxygen, they look good, and they smell great. Plants are cool. To keep my plants alive, I’m going to create a sensor that checks whether the soil inside my potted plants is moist.

When soil is wet, it conducts electricity! So we can use the micro:bit and the Circuit Playground Express to keep an eye on the moistness level of our potted plant soil. Try to say this three times: “potted plant soil, potted plant soil, potted plant soil.”

Instead of using the digital read pin, we’re going to use analogue read. Digital read returns either 1 or 0, true or false. I’d like to know how wet/dry my soil is. I want a range of numbers. Analogue read returns a range of numbers. Both the micro:bit and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Science and Engineering Projects Using the Arduino and Raspberry Pi: Explore STEM Concepts with Microcomputers

Science and Engineering Projects Using the Arduino and Raspberry Pi: Explore STEM Concepts with Microcomputers

Paul Bradt, David Bradt
Card Games by Thiagi: A User's Guide

Card Games by Thiagi: A User's Guide

Sivasailam Thiagi Thiagarajan

Publisher Resources

ISBN: 9781260457605