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.
  • ХоббиХобби

Комментарии • 117

  • @Seamore_ishere
    @Seamore_ishere Год назад +3

    I can’t wait for my mircobit to deliver!!!

  • @rickjohnson9208
    @rickjohnson9208 Год назад +1

    Great! I'm going to try this with my class.

  • @victoriafriasmunoz1550
    @victoriafriasmunoz1550 2 года назад

    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.

  • @xiq2062
    @xiq2062 2 года назад +1

    great job
    Michael Klements

  • @NoName-vg1gz
    @NoName-vg1gz 3 года назад

    Very well done.

  • @robertsimpson4693
    @robertsimpson4693 3 года назад

    Michael, Another great project ! - Robert

  • @jambaygawa6584
    @jambaygawa6584 11 месяцев назад

    Hello sir, do you have any circuit diagram draft of this project. If you have that will be helpful to me. Thank you.

  • @ohoh33
    @ohoh33 2 года назад +1

    Hi!:
    Could someone help me with the wiring diagram to connect it?

  • @0959kedi
    @0959kedi Год назад

    Can we use a L298N or we should use a relay module?

  • @urmilsinha7305
    @urmilsinha7305 3 года назад +6

    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..

  • @karlbouaoun9939
    @karlbouaoun9939 9 месяцев назад +1

    Can you please make a video explaining more specifocly how to connect the wires and the whole circuit please? Great video❤

    • @MichaelKlements
      @MichaelKlements  9 месяцев назад +1

      I've linked to my blog post in the video description and that has a lot more detail on how to connected things up.

  • @kaweing7336
    @kaweing7336 3 года назад

    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?

    • @MichaelKlements
      @MichaelKlements  3 года назад

      The blog post linked in the description shows you a wiring diagram.

  • @bjraval9818
    @bjraval9818 3 месяца назад

    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!

    • @MichaelKlements
      @MichaelKlements  3 месяца назад +1

      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.

    • @bjraval9818
      @bjraval9818 3 месяца назад

      @@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!!

  • @bodapetric2679
    @bodapetric2679 2 года назад

    BRO, WHERE I CAN GET ONE?

  • @ayten_edits
    @ayten_edits Год назад

    Hi I am doing a project can you do a video how to program this

  • @ai__beyond6146
    @ai__beyond6146 3 года назад

    Simple Awesome

  • @zakiazri3651
    @zakiazri3651 2 года назад +2

    nice

  • @odalmer8110
    @odalmer8110 2 года назад

    Bro, can i use clips of your video for a homework?

  • @amoratiara
    @amoratiara 3 месяца назад

    How can I make it watered once a week, and make it 5 milliliters? Do i need to make any other code?

  • @idk-um8bu
    @idk-um8bu 2 года назад +5

    Good video Needed this for a school project Keep it up the good work earned a subscriber! :D

    • @MichaelKlements
      @MichaelKlements  2 года назад

      Thank you! Hope the project goes well.

    • @affanhossain3973
      @affanhossain3973 Год назад

      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?

  • @yurigarcia5107
    @yurigarcia5107 2 года назад +1

    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?

    • @MichaelKlements
      @MichaelKlements  2 года назад +1

      There is a guide with a lot more detail linked in the video description

  • @jandregerber7534
    @jandregerber7534 3 месяца назад

    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!

    • @MichaelKlements
      @MichaelKlements  3 месяца назад

      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.

  • @sherylsargent4978
    @sherylsargent4978 Год назад

    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.

    • @MichaelKlements
      @MichaelKlements  Год назад

      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.

  • @KingShoxx96
    @KingShoxx96 3 года назад +4

    Great job! Is it possible to wire Multiple Sensors for more seperate plants on one device?

    • @MichaelKlements
      @MichaelKlements  3 года назад +2

      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).

  • @mustafa6273
    @mustafa6273 Год назад

    Great video! Currently using this for a school project. Is it possible to do it without a relay?

    • @MichaelKlements
      @MichaelKlements  Год назад +1

      The Micro:bit can't handle the current requirements of the pump, so you'll need some form of switching device.

  • @activewind3111
    @activewind3111 Год назад

    How many pins does the Relay have to have? Could you tell me?

    • @MichaelKlements
      @MichaelKlements  Год назад

      It's a single throw relay, so two coil pins and three contact pins

  • @petro3569
    @petro3569 Год назад +1

    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?

    • @MichaelKlements
      @MichaelKlements  Год назад

      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.

    • @petro3569
      @petro3569 Год назад

      @@MichaelKlements thank you very much sir 👍

    • @petro3569
      @petro3569 Год назад

      @@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?

    • @petro3569
      @petro3569 Год назад

      @@MichaelKlements this project is very important important for me, please.

  • @TrackerX2007
    @TrackerX2007 2 года назад +1

    Hi. Great tutorial! Do we need an external power for the pump? Or just using the power connected to the Microbit?

    • @MichaelKlements
      @MichaelKlements  2 года назад

      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.

    • @TrackerX2007
      @TrackerX2007 2 года назад

      @@MichaelKlements thanks!

    • @TrackerX2007
      @TrackerX2007 2 года назад

      @@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

    • @TrackerX2007
      @TrackerX2007 2 года назад +1

      @@MichaelKlements Hi, nevermind, finally it works after changing the relay to 3v relay instead of 5v relay. Thanks for this wonderful project

    • @tomboulton5693
      @tomboulton5693 2 года назад

      @@TrackerX2007 Ricardo thanks I had the same issue - 3v Relay everyone - NOT the 5V

  • @xiq2062
    @xiq2062 2 года назад

    can you make a touch sensor video or add a touch sensor for this project

    • @MichaelKlements
      @MichaelKlements  2 года назад

      Do you have a particular sensor you'd like me to look at?

  • @shahadsa0764
    @shahadsa0764 10 месяцев назад

    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?

    • @MichaelKlements
      @MichaelKlements  10 месяцев назад

      You can order the items from Aliexpress as well.

  • @caterinapomari9180
    @caterinapomari9180 2 года назад

    Can this also be linked to an app? Thanks

    • @MichaelKlements
      @MichaelKlements  2 года назад

      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.

  • @benparker2160
    @benparker2160 3 года назад +1

    Do you have a wire diagram for this? I am a noob so it would be great.

    • @MichaelKlements
      @MichaelKlements  3 года назад

      There’s a diagram in the post linked in the video description. It’s quite simple, great for beginners. Good luck!

    • @benparker2160
      @benparker2160 3 года назад +3

      I am a noob. But I find it difficult to understand from the microbit thinker site. Can you share a clean wire diagram?

    • @sam_jun
      @sam_jun 3 года назад +3

      @@benparker2160 I also tried to make sure the circuit diagram from this content but it quite unclear

  • @tr_yxl2362
    @tr_yxl2362 2 года назад

    can somebody comment the javascript?

  • @alanbabstiurkdiaz4592
    @alanbabstiurkdiaz4592 11 месяцев назад

    Hello, do you have an electrical circuit diagram?

    • @MichaelKlements
      @MichaelKlements  11 месяцев назад

      Hi, there is a circuit diagram provided in the post that is linked in the video description

  • @adamkznoah
    @adamkznoah 2 года назад +4

    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?

    • @MichaelKlements
      @MichaelKlements  2 года назад +3

      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.

    • @deepikakvrjn
      @deepikakvrjn 2 года назад +1

      makecode.microbit.org/_YhdAF4erYdDL
      I think this is it. Please correct me if I am wrong in the code.

    • @MichaelKlements
      @MichaelKlements  2 года назад +1

      That looks correct! Thanks Deepika

    • @deepikakvrjn
      @deepikakvrjn 2 года назад +2

      @@MichaelKlements thank you for replying and also tell me how you made the 3 volt power supply

    • @adamkznoah
      @adamkznoah 2 года назад +2

      @@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

  • @counteldamar5135
    @counteldamar5135 9 месяцев назад

    This is incredibly inspiring

  • @gabriel0783
    @gabriel0783 2 года назад

    excellent video, could I replace the micro bit with an arduino? if yes, how can this happen? can you help me to do?

    • @MichaelKlements
      @MichaelKlements  2 года назад

      You can use an Arduino but you'd have to re-write the code

    • @gabriel0783
      @gabriel0783 2 года назад

      @@MichaelKlements What did you use to power the water pump? a stack or source?

  • @rrxyqq
    @rrxyqq 19 дней назад

    can someone list the components for me in the comment?

  • @tbranc1
    @tbranc1 3 года назад

    How long would the batteries last?

    • @MichaelKlements
      @MichaelKlements  3 года назад

      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.

    • @deepikakvrjn
      @deepikakvrjn 3 года назад

      @@MichaelKlements how do make a 3v power supply?

    • @deepikakvrjn
      @deepikakvrjn 3 года назад

      @@MichaelKlements please reply quickly 🙏😢😭😔😫

  • @mysteryshake
    @mysteryshake 3 года назад

    Do you use a Bread board

    • @MichaelKlements
      @MichaelKlements  3 года назад

      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.

  • @affanhossain3973
    @affanhossain3973 Год назад

    Can this work without a relay module?

    • @MichaelKlements
      @MichaelKlements  Год назад

      No, the Micro:bit can't handle the current that the pump requires to run

    • @affanhossain3973
      @affanhossain3973 Год назад

      @@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?

  • @rockingyash4112
    @rockingyash4112 Год назад

    wiring diagram u post bro

  • @syahrilmohd2903
    @syahrilmohd2903 Год назад

    where is the battery?

  • @isme_Violetta
    @isme_Violetta Год назад +1

    I am doing a school project for this and I need to use my money for those😢

  • @mariehenriksen-hm5uz
    @mariehenriksen-hm5uz 2 месяца назад

    give us the code pleaseeeeeeeeeeeeeeeeeeeeeeee

  • @sam_jun
    @sam_jun 3 года назад

    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

    • @MichaelKlements
      @MichaelKlements  3 года назад +2

      That’s why I’ve included a link to a step by step write up in the video description.

    • @MysticTales-Vault
      @MysticTales-Vault 5 месяцев назад

      still the diagram makes no sense

    • @sam_jun
      @sam_jun 5 месяцев назад

      @@MichaelKlements I got it, thank you for your reply. Keep it up 💪

  • @mylillamb
    @mylillamb Год назад

    it does not work

  • @sulfurdioxide6534
    @sulfurdioxide6534 Год назад

    It is so expensive tho I can't afford it :(

  • @cat_animations7414
    @cat_animations7414 2 года назад

    Можно было и без насоса сделать, зачем так утруждаться когда за тебя это может сделать серво и гравитация?★

  • @kingmu6870
    @kingmu6870 2 года назад

    sub indo please

  • @kaweing7336
    @kaweing7336 3 года назад

    I will pay u $100 SGD + shipping fee for that system

    • @deepikakvrjn
      @deepikakvrjn 2 года назад

      You can't buy everything with money
      person

    • @deepikakvrjn
      @deepikakvrjn 2 года назад

      It would take less than 100 dollars to buy the parts and make it

    • @kaweing7336
      @kaweing7336 2 года назад

      @@deepikakvrjn spending money is now considered shameless?

    • @deepikakvrjn
      @deepikakvrjn 2 года назад

      @@kaweing7336 no but offering more money to buy something which you can make at home is just straight up foolish.

    • @kaweing7336
      @kaweing7336 2 года назад

      @@deepikakvrjn so going to a restaurant to order food would also be foolish?