Making Your Own Composter
Make your own composter, add my code from github, and register for this app
Supplies
Ordering parts
- To start this project it is best if you think about breaking up the composter into pieces. To begin with I will walk you through ordering and setting up the appropriate devices. Again, no need to worry about code because if you order the correct parts you can use my exact code
- Order soil moisture sensor sht10 it is part of the sht1x series and although it is a little more expense then other soil moisture sensors it offered a water proof cover and tracks temperature and humidity.https://www.adafruit.com/product/1298
- Order a relay. I used an 8 prong relay because we need multiple sections of this relay and it is cheaper then buying multiple relays. There are a few additional features that may be added some day that would also use the relay. http://www.hobbytronics.co.uk/8-channel-relay-board To set up the relay you can watch this You Tube video https://www.youtube.com/watch?v=oaf_zQcrg7g The video is good for setup but the code is not what we need so when he gets to the code you can stop the video or try it out for practice and understanding but know that we won't be using that code.
- 12v drill that you can ruin. The specifics of the drill are less important as long as it is 12v and you know you are going to take it apart. I bought the cheapest 12v drill they offered at Harbor Freight. I bought a cordless, took off the battery, and hooked the wires directly to my wiring system
- A compost bin can be made or bought but if you want to set it up how I set it up (which I recommend so wires do not get tangled) then you will need to have a bin that rotates around a secure center post.http://www.ebay.com/itm/like/182206259455?lpid=82&chn=ps&ul_noapp=true this is the composter I used.
- Raspberry Pi. I used a model B but you can use any. If you use the one I used then you also need a wireless dongle. If you do not use the one I used you may need to look up pin configuration because some Raspberry Pi's are built with extra pins and the numbering may be different.
- 12volt water valve to use for the watering system https://www.adafruit.com/products/997?gclid=Cj0KEQjwsai_BRC30KH347fjksoBEiQAoiaqsQmReRZKJox_INCFEuEkslj2iodzXp6orYL3OyX0T7UaAq8W8P8HAQ
- 12v to 5v step down converter https://www.amazon.com/Nextrox-Converter-Power-Supply-Module/dp/B00A71CMDU
Making Circuits
- Prior to starting I am not going to walk through setting up the Raspberry Pi so if you are new to Raspberry Pi I suggest you look at the documentation on the Raspberry Pi site or
- Set the relay up as demonstrated in this video https://www.youtube.com/watch?v=oaf_zQcrg7g This connects the relay to the raspberry pi. The ground pin recommended for the relay is already used for the sensor so you can choose to (pin 6), however pin 9 is also a ground pin so you can either plug the relay into ground pin 9 or connect both pins to an external circuit board that is hooked to the pin.
https://www.raspberrypi.org/help/
Congratulations if you made it here your circuit is totally set up and ready to go! Now would be a good time to get the code off git hub onto your raspberry pi. Depending on how much you have used or set up your raspberry pi you may need to set up git in order to clone the repository https://github.com/Jayme-T/AmalgamateBackEnd
At this point you should be able to run your relay by either logging into your raspberry pi or sshing into your pi and typing the following in the command linepython relay.py
this code will open one relay, pause, open a second relay, pause, and then turn them both off. You will hear loud clicks and this is just the switches in the relay being flipped. You should also be able to run
python app.py
this will start a server on port 5000. If these are not working see the trouble shooting section at the bottom of this page. Otherwise if everything is working we will start putting things together.
Building the Compost
- The relay is working but how do we make...
I say you did a good job better for the earth. I have a project at I like to make like your. I going to use a SS drum old solar water tank. I will have questions about how you went in the years. are you up to share a better way to talk about your experience I in Australia. it will be good to know more. Maybe you can help me with making add-on on to your code. Oh is it ok to use some of your code for my project. Oh your website is down too.