Approved content
The content below is provided by a partner.
Smart Hydroponics Kit, by Forward Education.
Find us at forwardedu.com and learn.forwardedu.com. Learn more about the Smart Hydroponics Kit on the product page.
Our learning systems are designed to simplify teaching coding and computer science for educators at all experience levels. Our Smart Hydroponics Kit can be used on its own or joined with other kits to access our wider library of sensors, motors, lights, and buttons. Check out our libraries of lessons, projects, and tutorials. A sample of coding with the Smart Hydroponics Kit can be seen below.
The light controller, pH sensor, float sensor, and water pump help create and maintain ideal growing conditions. When a water level drop is detected by the float sensor the pump kicks on and adds water until the float sensor says to stop. If the pH sensor detected abnormal conditions then it sends a visual indicator through the micro:bit display.
fwdLights.lights1.setBrightness(100)
basic.forever(function () {
if (fwdSensors.float1.floatStateConditional(fwdEnums.RaisedLowered.Raised)) {
fwdMotors.pump.setOn(false)
} else {
fwdMotors.pump.setOn(true)
}
if (fwdSensors.ph1.isPastThreshold(8, fwdEnums.OverUnder.Over)) {
basic.showIcon(IconNames.Confused)
}
})
Using the datalogger extension the pH can be logged at the desired frequency to observe trends. Here a log is created every minute.
datalogger
basic.forever(function () {
datalogger.log(datalogger.createCV("pH", fwdSensors.ph1.ph()))
basic.pause(60000)
})
MIT
fwd-smart-hydroponics=github:forward-education/pxt-smart-hydroponics#v1.2.0