Smart Plant - A Single Power Supply

We’ve built out some really cool features on our smart plant in the previous parts. Now to top it all off, let’s upgrade the power circuitry so we can run the entire project on a single 12V power supply!

Overview

Skill Level: Intermediate

Time Required: 20 minutes

When you were building the smart plant, you had to power the pump and Arduino separately. Let’s change that by replacing the USB power supply with a regulator that can convert the motor’s 12V into 5V. This way, when you plug in the 12V supply, the entire project comes to life!

Ingredients

We’ll need all of the same materials as in the previous part:

We’ll need some new ingredients:

Tools:

Step-by-Step

Follow these instructions to set this project up on your very own Omega!

1. Prepare

You’ll have to have an Omega2 ready to go, complete the First Time Setup Guide to connect your Omega to WiFi and update to the latest firmware.

2. Complete the Previous Parts of the Project

This project builds on the previous parts of the Smart Plant project. If you haven’t already completed the first, second, third, and fourth parts, go back and do them now!

3. Prep

Before you start, take apart the wiring and tubing we did in the previous part of the project and unplug your Arduino Dock. Now you should have:

IMPORTANT: Make sure your Power Supply is no longer connected to the DC Barrel Jack Adapter!

4. Wiring the Circuit

This is the pinout diagram for the MC33269T. We’ll be referring back to this when wiring it up.

We’ll assemble the circuit in a few sub-steps:

  1. Regulator input
  2. Regulator output
  3. Water pump
  4. Arduino Dock
  5. Moisture sensor
Regulator Input
  1. Connect jumper wires to both DC Barrel Jack Adapter terminals.
  2. Connect the DC Barrel Jack to one pair of the + and - rails on the breadboard.
    • We’ll call this the 12V rail.
  3. Plug the MC33269T regulator into the Breadboard across three empty rows.
  4. Connect the 12V - rail to the GND pin of the regulator with a jumper wire.
    • The left most pin when looking from the front.
  5. Connect the 12V + rail to the Vin pin of the regulator with a jumper wire.
    • The right most pin when looking form the front.

Regulator Output
  1. We’ll use the other pair of + and - rails on the breadboard for our 5V rail
  2. Connect the GND pin of the regulator (left most pin when looking from the front) to the 5V - rail with a jumper wire
  3. Connect the Vout pin of the regulator (middle pin) to the 5V + rail with a jumper wire. Now this rail can be used to power the Arduino Dock and Omega

Water Pump
  1. Run a jumper wire from the 12V -rail to the negative terminal of the Water Pump
  2. Connect a jumper wire from the 12V +rail to the IN screw terminal on Channel 0 of the Relay Expansion
  3. Connect a jumper wire from the OUT screw terminal on Channel 0 of the Relay Expansion to the positive terminal of the Water Pump

Once you’ve done that, plug the Relay Expansion back into the Arduino Dock.

Arduino Dock

WARNING: It is very important that you connect the 5V rail to your Arduino Dock. Accidentally using the 12V rail will for sure damage your Arduino Dock and Omega. Proceed at your own risk, but don’t worry, if you follow the instructions, you’ll be fine.

  1. Connect the 5V - rail to one of the Arduino Dock’s GND pins
  2. Connect the 5V + rail to the Arduino Dock 5V pin

Then plug in the OLED Expansion.

Moisture Sensor

Using the wires from the moisture sensor:

  1. Connect the 5V + rail to the sensor’s Vcc pin.
  2. Connect the Arduino Dock’s other GND pin to the sensor’s GND pin.
  3. Connect the Arduino Dock’s A0 pin to the sensor’s SIG pin.

5. Provide Power

Now reassemble your pump tubing, reservoir, sensor, and plant:

Then provide power by connecting the 12V power supply to the DC Barrel Jack Adapter. Your Omega should now be booting.

Congratulations, You Made It!

Revel in the fact that you’ve created a regulator circuit that can power your Omega as well as the 12V pump!

Show off your amazing smart-plant setup and Dashboards on our Community Forum, and let us know how you liked these tutorials!