Home โ€บ Module 1
๐Ÿ”ฅ Module 01 ยท Advanced

Automated Greenhouses

โœจ PAN'S RULE: If it's not chaotic, it's not magic! โœจ

Combine IoT sensors and relays to fully automate temperature, water, and light for crops.

โš ๏ธ SAFETY DIRECTIVE: We only work with safe 5V USB power or AA/AAA batteries. NEVER plug homemade electronics into a wall outlet or mess with mains electricity. Keep the magic safely low-voltage! When you start building, always have a parent help with tools like wire strippers or hot glue guns.
๐Ÿ’ก

How a Smart Garden Works

What if your plant could text you when it's thirsty? Or if your garden could automatically turn on its own sprinklers and fans? That's not science fictionโ€”it's an Automated Greenhouse, and we're going to see how it works!

๐Ÿ’ก Pan's Pro Tip!

Automated greenhouses use a feedback loop. The sensor feels the dirt, the computer thinks about the data, and the water pump acts to give the plant a drink. Feel, Think, Act! It's just like you! You feel hungry, you think 'I need a snack!', and you act by grabbing an apple. Your garden does the same thing for water!

The "Feeling" Part: Sensors! ๐ŸŒฟ

We use soil moisture sensors. They have two metal prongs that go into the dirt. When the dirt is wet, electricity flows easily between the prongs. When it's dry, it doesn't flow well at all! A tiny computer reads this and knows exactly when to say "Turn on the water!"

The Brain of the Operation ๐Ÿง 

So what does the 'thinking'? Usually, it's a tiny computer called a microcontroller. Think of it like a little robot brain. You can get famous ones like an Arduino or a BBC micro:bit. They're small, safe to use, and you can tell them exactly what to do with a little bit of code!

Quick Quiz! ๐Ÿง 

What are the three steps an automated greenhouse takes to keep a plant happy?

๐Ÿ˜ด Sleep, ๐Ÿ• Eat, ๐ŸŽฎ Play
๐Ÿ’ง Feel, ๐Ÿง  Think, โœ… Act
๐ŸŒฑ Plant, ๐Ÿšฟ Water, ๐ŸŽ Harvest

Challenge: Design Your Own! โœ๏ธ

You don't need real parts to be an inventor! Grab a piece of paper and sketch out your own smart garden. Where would you put the moisture sensor? How will the water get to the plant? Will it have a light? A fan? Label the parts and show your design to a parent or friend!

๐Ÿ› ๏ธ Your Advanced Challenge: The Build

Time to get real. An advanced builder doesn't just learnโ€”they build. Your mission is to create a simple plant-watering circuit.

What You'll Need (Parent Corner! ๐Ÿง‘โ€๐Ÿ”ฌ)

Parents, these are the basic, safe, low-voltage parts for this project. Starter kits from places like Adafruit or SparkFun are a great way to get everything at once!

The Code Logic (Micro-Lesson)

The code follows our 'Feel, Think, Act' loop. In a language like Arduino C++, it looks like this. See if you can understand what each line does!

// 1. FEEL: Read the sensor value
int soilMoisture = analogRead(A0);

// 2. THINK: Is the value below our 'thirsty' threshold?
if (soilMoisture < 300) {
  // 3. ACT: Turn on the water pump relay
  digitalWrite(7, HIGH); 
} else {
  // NOT THIRSTY: Keep the pump off
  digitalWrite(7, LOW);
}

Next Steps & Resources

โ† Previous