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
Vertical Farming
  • Challenges & Projects
  • Design Challenges
  • Vertical Farming
  • More
  • Cancel
Vertical Farming
Blog The Plant Blog 7: RF Remote Outlet Switch (Including Rpi Jessie Tutorial Fixes)
  • 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: Former Member
  • Date Created: 10 Nov 2015 11:42 PM Date Created
  • Views 763 views
  • Likes 2 likes
  • Comments 2 comments
  • design_challenge
  • vertical_farm
  • vertical_farming
  • challenge
  • farming
  • aquaponics
  • the_plant
Related
Recommended

The Plant Blog 7: RF Remote Outlet Switch (Including Rpi Jessie Tutorial Fixes)

Former Member
Former Member
10 Nov 2015

Sorry I been away guys. So much has been going on with my new job, moving to a different state, life has been very hectic. It doesn't mean I have not been working on the project, but I just haven't been able to collect my notes to write you guys blogs. So this week, I will be collecting my notes and trying to send you all my information, and updates from our project. Today I have a short blog, but it is a short blog on information that kept us from moving forward.

 

Update:

For the sake of keeping everyone updated, this is how the system looks:

The Mini Plant

 

We are trying out Bright Agrotech Grow tower to add extra growing space. I think it will do well. We added a few practice plants to get started. We plan on adding maybe two more towers, and have the growbed under the towers to allow other plants to grow that are not supported by the tower. Out of 10 fish, 6 are alive. I do want to point out how it is funny that Luke, Leia, and Dave are still alive. Han died. =C Hopefully that is not foreshadowing……

 

Anyway, in memory of Han, let us get on with the remote switch system.


Setting Up the Pi to Turn Off the Pump (or any electronic appliance for that matter):

Today I am going to talk about how to turn off the pump using an RF signal with the RPi. We are going to make sure the water does not spill all over my apartment's carpet, so the plan is to shut off the pump when the water reaches a certain level. I have not found a pump that turns off with some wireless (or wired for that matter) signal, so we had to turn off the pump using a RF remote outlet switch. Let me just tell you guys how amazing this little hack to controlling remote outlet switches is. There are several tutorials out there that already explain how to set up the RPi RF remote outlet switches,and here are the links to my favorite explanations:
https://www.samkear.com/hardware/control-power-outlets-wirelessly-raspberry-pi

(Here is a more concise method tutorial: http://timleland.com/wireless-power-outlets/ )

 

WP_20151110_001.jpg

Here is our breadboard during the time we were working on the RF outlet switch. (The button is a foreshadowing of a blog to come). Note that I added an LED to the signal , and the ground of the transmitter to let me know if the RF message is being transmitted. Super useful during troubleshooting.

 

I have seen others use the same method to control appliances, and I figured this would be the simplest solution to our problem. As beautiful and fully documented this solution seemed at first, the documentation for this method is a bit outdated with the new Jessie Raspberry Pi update, so let me tell you guys how we got around this.

 

Like I said before, our main controller is the RPi, so this guide was straightforward, except if you are using the latest version: Jessie. The guides on the links work well until you try to send an RF message. If you followed the link's instructions, you will find that the RF signal is not being transmitted. The problem lies with the Apache2 install.

The only problem with how this (and all other similar tutorials) on installing this RF receiver and transmitter, is the placement of the folder containing the RF transmitter and receiver information. The tutorials tell you to download the folders to:

$ /var/www/

But from my understanding of reading several forums, it seems Apache's new root folder is:

$ /var/www/html/.

After installing the changes, I had to reset the Apache server with:

$ sudo /etc/init.d/apache2 restart

From this point forward, using the sniffer or sending out RF signal comes through this directory.

 

This change in directory fixes both the problems of sending out the RF signal, and seeing the nice PHP webpage control layout the great tutorials mention. I do also have to note that the antenna you solder onto the transmitter needs to be long to get a strong message. I have my RF outlet switch just under the table, and it wasn't until I attached an 8 inch wire, that there was a 100% successful message transfer.

 

The next step was to have the "OFF" message transmitted during the event of a water level rise in any of the containers. We used a simple, button on-off logic to send the message. I can get deeper in the details of this in an upcoming blog post.

 

If you guys have any questions, or maybe need help setting up your own RF remote transmit with your raspberry pi, leave a comment. I have been stuck long enough in this problem to consider myself an expert.  =P

Closing Notes:

I would like to thank Dave for helping us obtain the challenger kit. We were having problems UPS problems with our challenger kit, but Dave pulled some strings, and got us the kit. Thank you very much for your help Dave.


Thank you all, and again, sorry for being MIA. As things are now settling, I will be able to come back, and finish this competition strong.

Before, I turn in for the night, I also want to say how amazing every competitor is doing. Such beautiful work.

 

Erik

  • Sign in to reply

Top Comments

  • pettitda
    pettitda over 10 years ago +1
    Using a wireless link to shut off a pump that could flood your apartment makes me cringe. Perhaps you should install a float switch as a backup to physically cut power to the pump if the water level goes…
  • DAB
    DAB over 10 years ago +1
    One very important aspect of systems engineering is risk management. When your are designing systems it is essential to assess what could go wrong and then identify what you can do to either eliminate…
  • DAB
    DAB over 10 years ago

    One very important aspect of systems engineering is risk management.

     

    When your are designing systems it is essential to assess what could go wrong and then identify what you can do to either eliminate or detect the problem before bad things happen.

     

    Fluid systems are notorious for overflow issues, so establishing a constant passive monitoring system is needed.

     

    Depending how critical the damage control needs to be, you can do anything from sounding an alert to automatic shutdown of the fluid transport.

     

    In all cases, an emergency draining capacity is always recommended.

     

    Just one of the many lessons learned in engineering.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • pettitda
    pettitda over 10 years ago

    Using a wireless link to shut off a pump that could flood your apartment makes me cringe.  Perhaps you should install a float switch as a backup to physically cut power to the pump if the water level goes too high. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
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