Micro:bit Automatic Plant Watering System
HTML-код
- Опубликовано: 22 июл 2024
- In this video, I'll show you how to build an automatic plant watering system using a Micro:bit and some other small electronic components.
The Micro:bit monitors the moisture content of your plant's soil using a capacitive moisture sensor and then uses a relay to drive a pump to water the plant if the soil gets too dry. This way, your plant is always looked after, even when you've forgotten about it or you're away.
Here's a link to the full write-up of the project if you'd like to build you own - www.the-diy-life.com/microbit...
Purchase Links:
Micro:bit - amzn.to/2JIQHFD
Capacitive Moisture Sensor - amzn.to/2VQdAcQ
DC Pump - amzn.to/2LbeRc5
Relay Module - amzn.to/2VMEeDe
Ribbon Cable - amzn.to/340xB3B
Storage Containers (Not the same, but should work) - amzn.to/36QWKAA
Power Supply - amzn.to/2LgNhdH
M3 Screws - amzn.to/2AtFG5W
Note: Some of the above parts are affiliate links. By purchasing products through the above links, you’ll be supporting this channel, with no additional cost to you.
If you've got any ideas for tech or electronics projects or tutorials which you'd like me to try out, let me know in the comments section. Хобби
I can’t wait for my mircobit to deliver!!!
Great! I'm going to try this with my class.
Thank you very much for the video! I want to know, if could help with the Building The Components Into The Housing, because rigth now it´s not very clear to me. Thanks.
great job
Michael Klements
Very well done.
Michael, Another great project ! - Robert
Thanks Robert!
@@MichaelKlements How about a MUSIC BOX for a next project ?
Hello sir, do you have any circuit diagram draft of this project. If you have that will be helpful to me. Thank you.
Hi!:
Could someone help me with the wiring diagram to connect it?
Can we use a L298N or we should use a relay module?
I am aware you have posted a circuit diagram on your website. Unfortunately, it's still unclear as the wires are all jumbled up! Would appreciate if you posted a video on how to join the wires step by step..
Can you please make a video explaining more specifocly how to connect the wires and the whole circuit please? Great video❤
I've linked to my blog post in the video description and that has a lot more detail on how to connected things up.
hi, I am currently trying to do this for my physics project, and I am unable to see exactly how the dc pump is connected and also how the other wiring is connected, is it possible for u to elaborate a little more on the wiring?
The blog post linked in the description shows you a wiring diagram.
Michael, Great project! 👋👍I will implement it! It would be nice to have code for multiple plants (20-30 plants) throughout a home, managed wirelessly and centrally watered with inexpensive wireless sensors in each plant!
Thank you! For a setup with multiple plants managed wirelessly, it would be more cost effective and compact to use an ESP32 rather than micro:bit.
@@MichaelKlements Would you mind sharing its Instructable please? I am sure many tinkerers who love indoor (or even outdoor plants) would sincerely appreciate it! - Thank you in advance!!
BRO, WHERE I CAN GET ONE?
Hi I am doing a project can you do a video how to program this
Simple Awesome
nice
Bro, can i use clips of your video for a homework?
How can I make it watered once a week, and make it 5 milliliters? Do i need to make any other code?
Good video Needed this for a school project Keep it up the good work earned a subscriber! :D
Thank you! Hope the project goes well.
Hey man, I'm also doing this for a school project, and ive been wondering how u managed with the coding. Did it work for you?
Hello, I love your project, the truth is that it seemed very good to me, I am a novice and I have problems with the wiring, could you please explain me a little more about this part of the project?
There is a guide with a lot more detail linked in the video description
Hi Michael, great project! Am I missing something..the coded image shows 0, 2, 3V and GND pins connected, but the physical connection, shows 0, 2 and GND. Also, where is the power supply? I'm trying to replicate, but struggling to connect the relay components etc. Thanx!
The capacitive sensor that I used can handle a 3.3V or 5V supply as it has an onboard regulator, so I connected it straight to the power supply (you can see this @2:18). The code platform doesn't have a moisture sensor so I've used a pot in it's place and this needs a 3V connectiong to the micro:bit or the code won't work.
hi Michael, we cannot get this system to work. the relay we are using in Takamisawa JV 3S KT, which is a none polarised, high sensitive 3 VDC relay with 45 ohm coil. power consumption is 200 mW.
In our set up we are connecting the relay to pin2 of the microbit, the on- voltage on that pin will collapse to about 1 volt when the pin goes to on, the relay doesnot pull in. do you have any idea, if the microbit might be overloaded with that relay? we have tried other output terminals with the same result. if we connect an LED to this output pin, the microbit ? LED works fine. Your help is appreciated.
Wolfgang Killian, Happy Valley Middle School, Oregon.
The pins on the Micro:bit aren't designed to drive components that require more than a few milliamps of current. With a 45 ohm coil, the relay is likely trying to pull around 75mA to switch. This is probably overloading the pin and this causes the voltage to collapse.
If you look closely at the relay module that I've linked to, it has a small transistor and diode onboard that drive the relay and suppress the EMF from the coil - that's why the module needs an external power source and not just the input pin.
Great job! Is it possible to wire Multiple Sensors for more seperate plants on one device?
You'd need to use the plug in expansion board to access more of the Micro:bits IO, but it is possible. You just need one analogue input and one digital output per plant (one moisture sensor and one relay and pump combination).
Great video! Currently using this for a school project. Is it possible to do it without a relay?
The Micro:bit can't handle the current requirements of the pump, so you'll need some form of switching device.
How many pins does the Relay have to have? Could you tell me?
It's a single throw relay, so two coil pins and three contact pins
Hello, I have a question about your Micro:bit Automatic Plant Watering System. I live in Albania and here it's a bit hard to find all the components, I can't find a power supply with output 3V : 1A, but I have found one with 0.5-4.2V : 0.5A. Can it work with it?
0.5A should still be ok to run the pump, as long as you keep the tubing short so that there isn't a lot of back pressure on it.
@@MichaelKlements thank you very much sir 👍
@@MichaelKlements hello again, I'm having a bit trouble building it, because my moisture sensor is a little different, if you could help me a little bit it would mean a lot. Where can I send you a photo of the sensor?
@@MichaelKlements this project is very important important for me, please.
Hi. Great tutorial! Do we need an external power for the pump? Or just using the power connected to the Microbit?
Yes you'll need to power the pump with its own 5V source, that why the relay is used to turn it on and off.
@@MichaelKlements thanks!
@@MichaelKlements hi, further questions.
1. Did you connect the 3v pin from the Microbit to the moisture sensor?
2. How do you power up and trigger the 5v relay? Because the Microbit only outputted a max of 3v
Thanks
@@MichaelKlements Hi, nevermind, finally it works after changing the relay to 3v relay instead of 5v relay. Thanks for this wonderful project
@@TrackerX2007 Ricardo thanks I had the same issue - 3v Relay everyone - NOT the 5V
can you make a touch sensor video or add a touch sensor for this project
Do you have a particular sensor you'd like me to look at?
I wanted to do it and I came to order the tools from Amazon, but I am from Saudi Arabia and the shipping cost is high, so there is another location, I can order from it at a reasonable shipping cost?
You can order the items from Aliexpress as well.
Can this also be linked to an app? Thanks
You can link it to a mobile phone or tablet using Bluetooth and control it from an app. I haven't tried this, but there are a number of tutorials online that cover this.
Do you have a wire diagram for this? I am a noob so it would be great.
There’s a diagram in the post linked in the video description. It’s quite simple, great for beginners. Good luck!
I am a noob. But I find it difficult to understand from the microbit thinker site. Can you share a clean wire diagram?
@@benparker2160 I also tried to make sure the circuit diagram from this content but it quite unclear
can somebody comment the javascript?
Hello, do you have an electrical circuit diagram?
Hi, there is a circuit diagram provided in the post that is linked in the video description
Hey man, I love your plant watering system project! I was wondering if you have a video or a link on how to make the code for the plant watering system?
Hi Adam,
There is a bit more information in the blog post linked in the video description. Other than that, I haven't made a detailed post on the code and I unfortunately don't have a copy of the code anymore.
makecode.microbit.org/_YhdAF4erYdDL
I think this is it. Please correct me if I am wrong in the code.
That looks correct! Thanks Deepika
@@MichaelKlements thank you for replying and also tell me how you made the 3 volt power supply
@@deepikakvrjn this one you can buy it online but you need to buy it seperately, if I remember correctly, you need to purchase a female dc jack and a 3V 1A Power supply
This is incredibly inspiring
excellent video, could I replace the micro bit with an arduino? if yes, how can this happen? can you help me to do?
You can use an Arduino but you'd have to re-write the code
@@MichaelKlements What did you use to power the water pump? a stack or source?
can someone list the components for me in the comment?
How long would the batteries last?
This project isn’t being powered by batteries, it’s being powered by a 3V power supply. A 2 x AA battery pack would probably only last a day or two at the most on this setup.
@@MichaelKlements how do make a 3v power supply?
@@MichaelKlements please reply quickly 🙏😢😭😔😫
Do you use a Bread board
I soldered the components together for this project. The Microbit interface is a bit difficult to use with a breadboard unless you have a breakout adapter.
Can this work without a relay module?
No, the Micro:bit can't handle the current that the pump requires to run
@@MichaelKlements I'm actually making my own pump with a DC motor, do you think in this situation I could do it without a relay module?
wiring diagram u post bro
where is the battery?
It's running on a 5V power supply
I am doing a school project for this and I need to use my money for those😢
give us the code pleaseeeeeeeeeeeeeeeeeeeeeeee
I think you didn't explained it clearly, especially for the circuit diagram among, relay, pump and microbit board, power supply. Also the code blocks' shape is quite different. Thanks
That’s why I’ve included a link to a step by step write up in the video description.
still the diagram makes no sense
@@MichaelKlements I got it, thank you for your reply. Keep it up 💪
it does not work
It is so expensive tho I can't afford it :(
Можно было и без насоса сделать, зачем так утруждаться когда за тебя это может сделать серво и гравитация?★
sub indo please
I will pay u $100 SGD + shipping fee for that system
You can't buy everything with money
person
It would take less than 100 dollars to buy the parts and make it
@@deepikakvrjn spending money is now considered shameless?
@@kaweing7336 no but offering more money to buy something which you can make at home is just straight up foolish.
@@deepikakvrjn so going to a restaurant to order food would also be foolish?