element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
1 Meter of Pi
  • Challenges & Projects
  • Design Challenges
  • 1 Meter of Pi
  • More
  • Cancel
1 Meter of Pi
Blog Space Vegetables - #10 | Software #0: Wiring and Python programs
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: feiticeir0
  • Date Created: 4 Dec 2020 3:17 PM Date Created
  • Views 618 views
  • Likes 5 likes
  • Comments 3 comments
  • 1meterofpi
  • 1 meter of pi
  • 1 meter of pi - design challenge
  • space vegetables
  • 1meter of pi
Related
Recommended

Space Vegetables - #10 | Software #0: Wiring and Python programs

feiticeir0
feiticeir0
4 Dec 2020

image

 

Hello all. Hope everyone is ok and safe.

 

In this series of posts I will describe how everything is wired, connected and talks with each other .

 

The following image shows what each Raspberry PI controls and how everything is wired

image

 

 

Relay 4 channels

 

I had to use a relay because the Air Pump is 220v and the Automation Hat MINI cannot handle that much voltage.

Although the lights are 12v, my first attempts to control the lights just using the outputs weren't successful. Using the outputs to control the relay to turn the lights on or off proved much more successful so it stayed that way.

 

I've separated each HAT and the Raspberry PI zero into it's own blog post to explain the code and it's functions.

Very briefly :

  1. The Raspberry PI 4B 2GB controls everything. It tells the Automation HAT MINI what to turn on or off and when (but it's the client). It also reads the environmental conditions and stores it in a SQLite3 database. It also runs a Flask webserver to serve web services for the Raspberry PI Zero W. It has connections to:
    1. humidity / temperature SHT21 sensor
    2. Arduino Pro Micro (through USB port)
      1. TDS sensor
  2. The Automation HAT MINI is connected to a Raspberry PI 3B+. The Automation HAT MINI is connected to:
    1. The lights (through the relay)
    2. The water pump (The HAT relay - the water pump is 12v)
    3. The air pump (through the relay)

 

 

You can read my previous post - Space Vegetables - #6 : Software Design - for a more detailed read on how everything is related

For more information on each Raspberry PI, just view the following blogs (URL updates when ready):

  • Space Vegetables Web Services
  • Raspberry PI Zero W Twitter Updates
  • Space Vegetables Server
  • Space Vegetables Client
  • Sign in to reply

Top Comments

  • skruglewicz
    skruglewicz over 5 years ago +1
    Very through design feiticeir0 Interesting use of 3 different PI's talking to each other.
  • feiticeir0
    feiticeir0 over 5 years ago in reply to skruglewicz +1
    Thank you ! I'm preparing the posts to explain how that's all connected and works ! In a few days !
Parents
  • skruglewicz
    skruglewicz over 5 years ago

    Very through design feiticeir0

    Interesting use of 3 different PI's talking to each other.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • feiticeir0
    feiticeir0 over 5 years ago in reply to skruglewicz

    Thank you !

    I'm preparing the posts to explain how that's all connected and works ! In a few days ! image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • skruglewicz
    skruglewicz over 5 years ago in reply to feiticeir0

    I'm very interested in this topic. I'll be waiting to review that Blog.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • skruglewicz
    skruglewicz over 5 years ago in reply to feiticeir0

    I'm very interested in this topic. I'll be waiting to review that Blog.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube