2 – Implementation & Analysis

🎯 Learning Objectives

Develop the Programming & Development, Algorithms Learning Strands:

  • Understand how to create a program for an automated greenhouse
  • Gain experience with using the micro:bit to read inputs
  • Develop a working product as part of a group.
💬 Key Vocabulary
  • micro:bit
  • Microcontroller
  • Program
  • USB
  • .hex
  • Download/upload
  • Copy and Paste
  • Blocks
  • LED

📝 Coding Tutorials

Today you will follow a series of tutorials to create code that will be used on the Smart Greenhouse in the future.

In each of the tutorials you should follow the instructions for each step and only click next when that step is 100% complete. The lightbulb icon shows you extra help if needed. When you have reached the end of a tutorial, this is indicated when you cannot click the next button anymore, then download the code to your computer.

Ensure you take a screenshot of each of your completed programs.

  1. Visual Greenhouse Thermometer
  2. Displaying Temperature, Humidity & Soil Moisture
  3. Automatic Plant Watering
  4. ZIP Stick Grow Lamp
  5. Setting the Time and Water Scheduling

Once you have completed each of the programs you will need to bring them together in a single program. You will need to open the automated greenhouse in MakeCode and recreate the blocks from the tutorial. Use your screenshots to help you.

📝 Uploading your code

Once you have brought the code together in a single program you will need to upload your code onto the micro:bit. Ensure that your micro:bit is plugged into the computer’s USB port.

Ensure that once you have plugged the micro:bit into the computer that you have connected it to MakeCode. To do this click the three dots next to download and then connect device. As long as your micro:bit is connected to your computer via the USB cable you will see it appear in a selection box. Click on it and then connect and then your Download button will change from a down icon to a micro:bit icon.

In this lesson, you…

  • Created programs to control your smart greenhouse

Next lesson, you will…

  • Evaluate your progress
  • Create a poster advertising the benefits of automated greenhouses and the process of creating them

🏅 Badge it

🥈 Silver Badge
🥇 Gold Badge
🥉 Platinum Badge