DIY Soil NPK Meter || Measure Soil Nutrient Content using Soil NPK Sensor & Arduino

Поделиться
HTML-код
  • Опубликовано: 21 июл 2024
  • NextPCB offers first 2-layer 100 X 100 mm PCB with 0$ : www.nextpcb.com/?code=Htoeletric
    4-layer PCB - 12$ : www.nextpcb.com/?code=Htoeletric
    ....................................................................................................................................................................................................................................
    About the Project:
    In this video, we will learn about the interfacing of Soil NPK Sensor with Arduino. The soil nutrient content can be easily measured using NPK Soil Sensor & Arduino. Measurement of soil content N (nitrogen), P (phosphorus), and K (potassium) is necessary to determine how much additional nutrient content is to be added to soil to increase crop fertility.
    The soil fertility is detected using NPK sensors. A major component of soil fertilizer is nitrogen, phosphorus, and potassium. The knowledge of the soil nutrient concentration can help us to learn about nutritional deficiency or abundance in soils used to endorse plant production. Apart from measuring Soil NPK, you can also measure Soil Moisture Content using Soil Moisture Sensor, which is explained in my one previous video.
    There are multiple methods of measuring the soil nutrient content like using some option sensors or using the spectrometer. But the spectral analysis method of determining the nutrient content is not convenient and the drawback is the data are only 60-70% correct. While comparing the spectral analysis method with traditional wet chemistry methods, the accuracy of the products is yet to be fully resolved, given the paucity of data in that regard.
    So, here we will use a JXCT Soil NPK Sensor to detect the soil nitrogen, phosphorous & Potassium in the soil. The JXCT Soil NPK sensor is a low-cost, quick-responsive, high precision & portable Soil NPK Sensor that works with Modbus RS485. The advantage of this sensor over a traditional detection method is that it gives very fast measurement & data are highly accurate. All you need is to insert its probe in soil and get the reading using Arduino. So, let’s learn in detail about the interfacing of Soil Nutrient Sensor or NPK Sensor with Arduino.
    Source Code/Program: how2electronics.com/interfaci...
    Purchase Links:
    1. NPK Sensor: amzn.to/3rEHI8r
    2. RS485 Modbus Module: amzn.to/2QUyJTV
    3. Arduino Nano Board: amzn.to/39sqFzW
    ....................................................................................................................................................................................................................................
    Drop a like if you liked this video.
    Don't forget to subscribe to our channel for more Electronics projects and tutorials.
    Website: www.how2electronics.com
    Facebook: / electronicsbyalex
    Instagram: / how2electronics
  • НаукаНаука

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

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

    *NPK Sensor Purchase Link:* _amzn.to/3rEHI8r_

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

      Hello, thanks lots for your efficient video's. Could you please send me its Gerber File.
      With The Best Regards,
      Dr. Manoochehr Farboodi.
      faboodi@gmail.com

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

      @@mahsamini2022 Sorry for the ignorance of my question, but what would the Gerber Files be.
      Best regards,
      Dr. Manoochehr Farboodi.

    • @SoilMaster-4u
      @SoilMaster-4u 2 года назад +3

      code is running but the output values are 255 255 255 how to overcome this issue

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

      @@SoilMaster-4u use 4800 for serial baud rate

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

      @@SoilMaster-4u same problem
      Did you found how to solve the problem

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

    Your all projects are very informative and nice way of presentations too.

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

    Thank you for making this project I really loved this project and I am waiting for your next project.

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

    nice work bro, i saw your post on face book and i followed you here. am really happy to see such video

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

    Hi! Nice Video, Do you know how to read If I have a sensor with 6 parameters? Like Humidity, Temperature, PH, Nitrogen, Phosphorus and Potassium.
    I have the frame from manufacturer, but then I do not know how to read each of them because it is only one frame, not for every parameter like yours. So the resulted frame will be like 17 bytes I think..
    PS: looks like your first const byte called NPK, but mine contains another 3

  • @mr.whitetech3887
    @mr.whitetech3887 2 года назад

    Searching This Video on Whole RUclips And Finally Got Over Here 👍👍👍👍👍👍👍👍👍👍

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

    Hiii,
    Have a query regarding this meter..
    Does it give total or available NPK...
    Can we use it for all types of land uses?
    And how to convert the values of different parameters given by it..
    Also how to save and transfer data in it...

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

    Can we do connection in pcb or directly on the nano and screen

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

    How is the measure from the soil or the solution?
    And how do you calibrate?

  • @AA-kz1tl
    @AA-kz1tl 2 года назад

    How long will it take for the sensor to process and output data?

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

    Can you connect the sensor without knowing the values at 7:12? I have the same sensor that uses rs-485, but it has only 8 bits and one stop bit, the address values are not shown in instruction manual. It is really supposed to show only one value - dew point, so can i use your code without those values? Also, can you send commands to the sensor? Mine is supposed to have those, and it is supposed to show its detailed information, but i can't seem to connect it properly ;-; Thanks

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

    Grate thing man ! Have u its contrasting data with lab-tested soil NPKs ? please help me

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

    You cold say the list of the elements needed for this assembly. Thankes.

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

    Didn't know they made these sensors. I wonder if this would work in hydro, or if there are NPK sensors made for testing water.

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

      Hey! Did you found out any sensor which works on hydro?

  • @technicalemotions
    @technicalemotions 7 месяцев назад

    Can you suggest me or tell me how to construct the device like we do with blood testing ...how we are knowing that bilirubin is less .....I wanna know it

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

    hello can it be calibrated even without the oled display?

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

    Thank you so much for this video sir🔥🔥😍

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

    Could you please share how to connect NPK sensor(RS485) to Raspberry pi. Thanks.

  • @nj1204
    @nj1204 11 месяцев назад +1

    Can you provide details on how you connect the brown wire of NPK sensor to the 9v power supply? Do you need any adapter to do so? Any link on what kinds of power supply should I buy and adapter if needed. Thanks!

  • @Roxill_19
    @Roxill_19 6 месяцев назад

    hello , i have a problem, even thou i dint put my sensor into the soil it keeps giving me a random data

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

    I need the paper where i can find inquiry frame for THC sensor temperature humidity and conductivity

  • @tempdeltavalue
    @tempdeltavalue 7 месяцев назад

    Can you explain how to separate Nitrogen, Phosphorous and Potassium signals using electromagnetic field, resistance, etc?

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

    Your videos are nice and very entertaining. I just wish you would buy a new microphone so I could clearly hear and understand them!

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

    Hi. I tried to follow your steps but it is not working. What could be the problem.

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

    Thanks, I have a project for electronic diploma where I have to make a soil quality measuring device. This is really helpful.

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

      Please study the sensor before u take !

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

    hello sir , I appreciate u much , also please replays the soil properties those may factor to its output signal fluctuation(display NPK).

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

    can we connect this to DE-10 nano fpga cyclone V

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

    Thank you i need this

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

    hi video is useful but when connected all the things it produce output 255

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

    Apart from NPK , is there any other sensors available to determine other soil elements.

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

      Only laboratory method or lab test is available which is very expensive

  • @SoilMaster-4u
    @SoilMaster-4u 2 года назад

    code running but the output for N P K is 255 how to overcome with this

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

    Hello Sir/Maam, I would like to ask, if the sensor detect this example value:
    N: 40 mg/kg
    P: 90 mg/kg
    K: 100 mg/kg
    What is the threshold of Low, Medium Low, Medium High, High, and Very High? And I ask too let say Nitrogen is Low how many amount of nitrogen need? Is the soil need 120, 100, 80, 60, 40, 30 nitrogen and so on?

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

    i could not find the link for buy sensor

  • @user-tm7xd4im5m
    @user-tm7xd4im5m 4 месяца назад

    I created this, i am getting npk value but it's changing every second... How to fix it

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

    Does this sensor work when used in a body of water. When used in a small bucket of water that I added NPK

  • @vitormelchioretto4130
    @vitormelchioretto4130 4 месяца назад

    Hello, can you tell me if I can submerge a sensor in a rice plant? or it will burn... would you have a tip for that?

  • @go4minrakulyx
    @go4minrakulyx 2 года назад +7

    Hello, i recently tested a similar npk-meter and found that it responded to any salt regardless if it contained any N, P, K. or not. Normal Kichen salt for example consists just of NaCl and no Nitrogen, Phosporous and Potassium (K). It still leads to high values of N,P and K if applyed to the soil. Did you precisely check if your npk-meter is really Ion-selektive or if it maybe also just responds to the conductivity of the solution???

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

      Hi, i was going to buy one but you always have the same problem?

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

      @@ArizerExtreme I sent it back because it was absolutely useless for my purposes. It may indicate coductivity but it had nothing to do with npk!

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

      @@go4minrakulyx Yes i found the same, it's bs...

  • @user-tm7xd4im5m
    @user-tm7xd4im5m 4 месяца назад

    In display npk value is varying continuing... How to solve it

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

    Sir how to convert npk value to string?

  • @mohamedrasik6094
    @mohamedrasik6094 8 месяцев назад

    Please explain about protocol connection between npk and aurdino nano

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

    what is the schematic for Arduino Uno ?????

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

    How to get npk sensor? I need that

  • @nj1204
    @nj1204 11 месяцев назад +1

    Hello, I have verified all connections between Arduino Uno, 485 and NPK sensor, also made sure NPK sensor's power wire is connect to 12V DC power source, the code also looks correct with the same address value as in the manual, but it still always gives 255 value for All N, P K values. Any suggestion how I could resolve it?

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

      Check the inquiry frame. Confirm with the manufacturer. Find datasheet and check what could be the inquiry frame.

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

    Hello, I am trying to replicate the project with an Arduino MKR GSM 1400 and I get pure values ​​of 255, however when I tap the RE and DE pins I get values ​​as random, because they are very different. I hope you can help me, thank you very much :)

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

      Is this fake then? I was wondering how it differentiates between electrolytes

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

    Hi, For an Arduino Uno would they be the same connections?

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

    Hi, how does the sensor work? Does it have ion selective probes, because how else would it know specific values of the elements? Please tell me how it works its driving me crazy, I can't find anything on it. Thanks!

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

      There is no info about it internal circuitry even from the manufacturer. No data-sheet no internal architecture reference. Just you need to know it works well.

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

      @@HowtoElectronics how did you test for accuracy?

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

      I fear the answer is that it does not, in fact, work...

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

      I read somewhere that it might use FDR (Frequency Domain Reflectometer). But it might also just be some BS sensor.

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

    I like this video!

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

    Awesome Thank you

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

    How can i collect this sensor. Please give me the link.

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

    Can you give the link of the sensor ?

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

    Can you use the NPK sensor in water and not in soil?

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

    Hi.
    I have the same problem using Arduino UNO. It replays with FFFFFFFFFFF for N,P, and K. is there any development regarding using Arduino UNO with NPK sensor?

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

      Give the NPK sensor with separate power (mine-12V),i.e donot connecte the gnd to nano and 485 board. (From HK)Give the NPK sensor with separate power (mine-12V),i.e donot connecte the gnd to nano and 485 board. (From HK)

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

    Hi, excellent video, can I read the 3 values in output voltage mode???

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

    Hello! I'm facing a problem. When I use the same code that howtoelectronics has provided for the NPK sensor, the Max485 to TTL converter / Modbus we're using simply returns FFFFFF, and thus just constantly outputs 255, 255, 255 for the values. Any idea on why this might be happening?

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

      Check the frame bit and compare with instruction manual. If the address are correct the sensor will return correct values.

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

      Hi there Satriya, did your NPK worked after that?

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

      Give the NPK sensor with separate power (mine-12V),i.e donot connecte the gnd to nano and 485 board. (From HK)

    • @abdulaziz-sr7wc
      @abdulaziz-sr7wc Год назад

      Kasus nya sama bang
      Udah terpecah kan blm masalah dmn

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

      dah dapat solusinya mas ?

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

    Plz Let me know why the value is obtained only in moist condition and fluctuate with addition of Water

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

      hello sir, ur problem is also mine so please help me when u fix it

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

    Nice project

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

    Hi mam, How to order this NPK sensor from india

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

    the 3 values ​​of N,P and K remains fixed at 255
    they do not want to change
    How can i fix it

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

    I love your voice

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

    I need NPK sensor .What is the cost of NPK sensor

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

    How do you calibrate the sensor?

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

      I was wondering if this was a fake, typically it would make sense that a semipermeable and selective membrane (each to potassium, nitrogen, and phosphorous) would be needed to keep out other dissolved electrolytes. I'm hearing nothing like that here and it probably is fake and will just spit out random numbers. If you want to dissolve NaCl in water and see what happens, if it reads nothing, then try some potassium chloride solution, and see if it only reads a potassium level. Do the same with nitrogen and phosphorous. If you really want to see how accurate it is after that you can do a little math and see if the concentration is accurate. I did not see that level of scrutiny here in this video and would not waste my money on this product.

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

    Hi nice video, i was buy the sensor and try to implement this, at the first time i got the right value and always change, but now the output value constant 255,255,255, do you know what could it be the problem ?

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

      just dip the sensor in water, tea or soil that will show the result, 255 seams to be idle value

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

    Can we connect npk sensor and soil mositure sensor in a single nodemcu

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

      Yes you can connect. But i guess NPK sensor doesn’t work with nodemcu.

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

      @@HowtoElectronics then in arduino uno ?

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

    Can i apply this sensor for water ? For hydroponic project

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

    Thanks for the nice video...its guiding however, I've done everything but the values are 255, 255, 255 for all the N P and K.. what could be the problem?

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

      just dip the sensor in water, tea or soil that will show the result, 255 seams to be idle value

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

    👏👏👏

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

    You intend to READ the other nutrients that are missing, such as: Calcium, Magnesium, Sulfur, Boron, Iron, Manganese, Copper, Zinc , Molybdenum, Nickel and Silicon that the sensor inserted directly into the soil.

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

      Most of the sensors are not available.

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

      @@HowtoElectronics Kindly friend, you could ask the manufacturer of this sensor if you could read Calcium, Magnesium and Sulfur or the other nutrients in the soil because they are of extra importance in agriculture. Oh in case you want to send me the name of the manufacturer.
      I thank you for your attention and I await your response.

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

      Contact JXCTIOT china

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

    Hi !! Can this NPK meter be used in water which have soluble npk in it?
    Please reply.

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

      This is made for soil not for water

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

      I was wondering if this was a fake, typically it would make sense that a semipermeable and selective membrane (each to potassium, nitrogen, and phosphorous) would be needed to keep out other dissolved electrolytes. I'm hearing nothing like that here and it probably is fake and will just spit out random numbers. If you want to dissolve NaCl in water and see what happens, if it reads nothing, then try some potassium chloride solution, and see if it only reads a potassium level. Do the same with nitrogen and phosphorous. If you really want to see how accurate it is after that you can do a little math and see if the concentration is accurate. I did not see that level of scrutiny here in this video and would not waste my money on this product.

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

      @@HowtoElectronicsI was wondering if this was a fake, typically it would make sense that a semipermeable and selective membrane (each to potassium, nitrogen, and phosphorous) would be needed to keep out other dissolved electrolytes. I'm hearing nothing like that here and it probably is fake and will just spit out random numbers. If you want to dissolve NaCl in water and see what happens, if it reads nothing, then try some potassium chloride solution, and see if it only reads a potassium level. Do the same with nitrogen and phosphorous. If you really want to see how accurate it is after that you can do a little math and see if the concentration is accurate. I did not see that level of scrutiny here in this video and would not waste my money on this product.

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

    Can't download code kindly guide

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

    What about just adapting it to USB and use it with a laptop?🤔

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

      It won’t work as it requires power supply more than 9V

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

    Hi, i have a soil multi-parameter sensor 7-1, and i want to print all the sensor, and i have problems to do that. if i use the npk code, it always prints 255 in some sensor. How can i use it with all sensors? i don't know if the answer is the number of bits or something. Please i need help

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

      I was wondering if this was a fake, typically it would make sense that a semipermeable and selective membrane (each to potassium, nitrogen, and phosphorous) would be needed to keep out other dissolved electrolytes. I'm hearing nothing like that here and it probably is fake and will just spit out random numbers. If you want to dissolve NaCl in water and see what happens, if it reads nothing, then try some potassium chloride solution, and see if it only reads a potassium level. Do the same with nitrogen and phosphorous. If you really want to see how accurate it is after that you can do a little math and see if the concentration is accurate. I did not see that level of scrutiny here in this video and would not waste my money on this product.

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

      @@jonesmatthew7511 I solved it, Thanks

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

      ​@@hector2742 hey buddy, can you let me know how you solved this FFFFFFFF 255 issue?

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

      @@luqmanafridi3952 What's microcontroller do you use?

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

      @@hector2742 hello I used an arduino nano and the connections are same in the video. May I know how you solved your problem? I have the 6 in 1 multi-parameter sensor

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

    Does the sensor work for fertilizer?

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

      Yes it does

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

      I'll use npk sensor, arduino uno ch340g, rs485 module,oled will it work?

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

    where you got this sensor?Please share the link

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

    Any alternatives for jxct soil sensor?(20k😱) Please let me know

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

      No alternative bro. There is another sensor which is more expensive AS7265x, which measure NPK value by spectral analysis method.

  • @PRANAVP-oq7of
    @PRANAVP-oq7of Год назад

    can i have source code for this one

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

    Good

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

    Does it work in water?

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

    sir what is the cost of this project if we want to buy you

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

    What's the cost for buying an NPK sensor.

  • @HamzaAli-mo2ed
    @HamzaAli-mo2ed 3 года назад

    Hi, when I write the same code as your in esp8266 it just displays me 255mg/kg all the time rather the sensor is in or out the soil it display me the same reading, why??

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

      I tried making it work with both ESP8266 & ESP32 but the sensor didn't work at all. Everytime I got 255 as output. So made a alternative method to upload the data to server using NRF24LO1 module and ESP32 gateway. You can check my other video.

    • @HamzaAli-mo2ed
      @HamzaAli-mo2ed 3 года назад

      @@HowtoElectronics means this sensor only works with arduino??

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

      No idea bro. I just couldn’t get the output using ESP8266 & ESP32. You may try and let us know.

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

      @hamza ali in Pakistan from where you get it and in how much

    • @HamzaAli-mo2ed
      @HamzaAli-mo2ed 3 года назад

      @@abdulcute this sensor is not available in Pakistan, I buy it online from aliexpress in 12000Rs

  • @mohamedrasik6094
    @mohamedrasik6094 8 месяцев назад

    Anyone please tell me which protocal used to connect aurdino nano with npk sensor

    • @HowtoElectronics
      @HowtoElectronics  8 месяцев назад

      RS485

    • @mohamedrasik6094
      @mohamedrasik6094 8 месяцев назад

      @@HowtoElectronics but rs485 is a device name

    • @HowtoElectronics
      @HowtoElectronics  8 месяцев назад

      Rs485 is protocol
      Max485 is device name.
      Use google to learn.

    • @mohamedrasik6094
      @mohamedrasik6094 8 месяцев назад

      @@HowtoElectronics but in google the communication between max485 and aurdino is modbus RTU protocol

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

    Please can you help me with a problem I have with the arduino code?

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

      What is your problem bro?

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

      @@HowtoElectronics I need to program Arduino for a soil NPK server, it is a sensor to measure the amount of Nitrogen, phosphorus and poitium in the soil

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

      There is already another video with the server.

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

    This info is missing: Is it accurate? does it work ok? thanks!

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

      Not accurate. Thats the reason why manufacturer has stopped manufacturing it.

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

    Everything is similar to ..
    How to Mechatronics

  • @Anjna-wr9vt
    @Anjna-wr9vt Месяц назад

    Components name in detail

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

    👍👍👍

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

    How to use with ESP8266 ?
    Same code or not same code.

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

      It doesn't work with esp8266

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

      @@HowtoElectronics en ESP32
      HardwareSerial sensor(2);
      #include
      #include
      #include
      ////////////////////////////////////////////////////////////////////////
      // Definimos las constantes
      //#define COLS 20 // Columnas del LCD
      //#define ROWS 4 // Filas del LCD
      #define RS 13
      #define EN 12
      #define D4 14
      #define D5 27
      #define D6 26
      #define D7 25
      #define DE 23
      #define RE 22
      LiquidCrystal lcd(RS ,EN,D4,D5,D6,D7);
      ////////////////////////////////////////////////////////////////////////
      TaskHandle_t Task1;
      TaskHandle_t Task2;
      TaskHandle_t Task3;
      WiFiServer *Servidor;
      WiFiClient client;
      String cadena;
      boolean cliente=false;
      //byte NPK[]= {0x01,0x03,0x00,0x01e,0x00,0x03,0x34,0x0D};
      byte NITROGENO[]={0x01,0x03,0x00,0x01e,0x00,0x01,0xe4,0x0c};
      byte FOSFORO[]= {0x01,0x03,0x00,0x01f,0x00,0x01,0xb5,0xcc};
      byte POTASIO[]= {0x01,0x03,0x00,0x020,0x00,0x01,0x85,0xc0};
      ////////////////////////////////////////////////////////////////////////
      void MENU(void *pvParameter);
      void SERVIDOR(void *pvParameter);
      void LECTURAS(void *pvParameter);
      int lectura( byte trama[]);
      byte getch();
      int Nitrogeno,Fosforo,Potasio;
      /////////////////////////////////////////////////////////////////////////
      // Create An LCD Object. Signals: [ RS, EN, D4, D5, D6, D7 ]
      void setup()
      {
      pinMode(RE, OUTPUT);
      pinMode(DE, OUTPUT);
      Servidor=new WiFiServer(25);
      Serial.begin(9600);
      sensor.begin(9600, SERIAL_8N1);////////sensor
      WiFi.mode(WIFI_AP);
      WiFi.softAP(String("AGROLINK").c_str(),String("12345678").c_str());
      Servidor[0].begin();
      lcd.begin(20,4);
      lcd.clear();
      lcd.setCursor(1,0);
      lcd.printf(" BIENVENIDOS A ");
      lcd.setCursor(1,1);
      lcd.printf(" AGROLINK SCOPE");
      IPAddress IP = WiFi.softAPIP();
      // xTaskCreate(MENU,"MENU",5024,NULL,2,&Task1);
      xTaskCreate(SERVIDOR,"SERVIDOR",5024,NULL,2,&Task2);
      delay(3000);
      }
      void loop()
      {

      }
      ///////////////////////////////////////////////////////////////////////////
      /*void MENU(void *pvParameter)
      {
      while(true)
      {

      delay(1);
      }
      }*/
      ///////////////////////////////////////////////////////////////////////////
      void SERVIDOR(void *pvParameter)
      {
      while(true)
      {
      client = Servidor[0].available();
      if(client)
      {
      //Serial.println("New Client.");
      while (client.connected())
      {
      if (client.available())
      {
      cadena=client.readStringUntil('
      ');
      if(cadena.equals("ESCANEAR"))
      {
      cliente=true;
      if(Task3==NULL)
      xTaskCreate(LECTURAS,"LECTURAS",5024,NULL,2,&Task3);
      delay(200);
      }
      else if(cadena.equals("STOP"))
      {
      cliente=false;
      lcd.clear();
      lcd.setCursor(1,0);
      lcd.printf(" BIENVENIDOS A ");
      lcd.setCursor(1,1);
      lcd.printf(" AGROLINK SCOPE");
      }
      client.flush();
      cadena="";
      }
      }
      }
      delay(1);
      }
      }
      ///////////////////////////////////////////////////////////////////////////////////
      void LECTURAS(void *pvParameter)
      {
      while(true)
      {
      if(cliente)
      {
      Nitrogeno=lectura(NITROGENO);
      delay(250);
      Fosforo=lectura(FOSFORO);
      delay(250);
      Potasio=lectura(POTASIO);
      delay(250);
      client.println("N:"+String(Nitrogeno)+"mg/kg,K:"+String(Potasio)+"mg/kg,P:"+String(Fosforo)+"p/m,PH:0,T:0");
      lcd.clear();
      lcd.setCursor(0,0);
      lcd.printf("N:%umg/kg",Nitrogeno);
      lcd.setCursor(0,1);
      lcd.printf("K:%umg/kg",Potasio);
      lcd.setCursor(0,2);
      lcd.printf("P:%umg/kg",Fosforo);
      lcd.setCursor(0,3);
      lcd.printf("PH:0,Temp:0");
      delay(1000);
      }
      delay(1);
      }
      }
      /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      int lectura( byte trama[])
      {
      int dato=0x00000000;
      int len=0;
      byte arreglo[12]={0,0,0,0,0,0,0,0,0,0,0,0},aux=0;
      digitalWrite(DE,HIGH);
      digitalWrite(RE,HIGH);
      len=sensor.write(trama,8);
      delay(10);
      if(len==8)
      {
      digitalWrite(DE,LOW);
      digitalWrite(RE,LOW);
      for(byte i=0;i 0)
      {
      aux=(byte)sensor.read();
      arreglo[i]=aux;
      }
      }
      for(byte i=0;i

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

      @@jesusarmandocamachofelix7430 can you share in english, it's work on esp32?

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

    How much Reliable is this Chinese Sensor?
    Any Dicumentation?
    It's Seriously Costly it costs more than $150

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

      Hi! Have you tried it? I'm doing research on electronic measurements of NPK on soil, but a lot of people are skeptical of the measurements these sensors return.

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

      @@newenv3770 Really?

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

    Thr website link went down

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

    Hi, I followed this tutorial, but it always marks me 255 and in hex FFFFFFFFFFFFFF... I'm sure the links are right, and the program is the same

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

      hi, I have the same problem. is there any development?

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

      Me too
      Do you fixe it

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

      I spent all night to find out the solution. In my case the sensor default boundrate was 4800 instead of 9800 so, modbus initialization now looks like that: mod.begin(4800). I also had to add two 4k7 resistors to pull up I2C bus to start display working

    • @rajatvatwani7104
      @rajatvatwani7104 7 месяцев назад

      ​@@michapacholak9559 could you please tell where you added two 4.7 k resistors in the circuit?

    • @michapacholak9559
      @michapacholak9559 7 месяцев назад

      ​@@rajatvatwani7104 ​I had to add two resistors between +5V and data lines (SDA and SCL) so now both data lines are connected to power supply via 4k7 resistor. Good luck 👍

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

    is your data is verified? with the lab data?
    Bcoz put conducting probes in soil and readings passes through comparator/amplifier then it shows data on the screen. It is natural. that might be analog values...
    and 2nd thing that is Chinese products no trust.
    Many big companies (e.g. one Swiss and France company) finding a way to determine NPK, so this 100$ sensor does that.
    Might be something wrong with this JXCT sensor. (Bcoz NPK are chemical elements )
    I m not sure, maybe I m wrong but technically 50-50 chance

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

      @@HowtoElectronics oky. Great!!
      Can you please give me the name of that Russian R&D lab?

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

      Great!! if this technology build-in India.

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

      I have the same concern as Varnit because of the quality of mainland China products. Can you post the name of the Russian lab if it's possible? Thank you and Merry Christmas.

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

      I also have doubts on the accuracy of this sensor. It seems that this sensor is some how implementing an electrolysis of soil to measure the nutrients and I haven't been able to find any research material related to successful implementation of this method. It would be very helpful if you can share some data which compares the results of this sensor with lab data

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

      @@HowtoElectronics Tem previsão de quando vai ser lançado?

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

    Hey, I did the implementation exactly the way mentioned in the tutorial, I just used Serial monitor in place of OLED display. But I find the value of N, P, K to be 255 when the NPK sensor is plugged to 9-24v power supply and even if it is not connected. Can you please get me out of this i.e finally getting the exact NPK values you got in the video. Please 🙏

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

      I got same problem too. do you have any development?

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

      @@sulaimantriarjo8097 Do search for NPK sensor not working in Arduino forum. I found some leads there but first to understand whether your sensor is working or not I used Rs485 Converter and a PC using CAS Modbus Scanner Software.

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

      @@akulavamsi4832 usb to rs485 converter? thanks. very appreciated

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

      @@sulaimantriarjo8097 yes

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

      @@sulaimantriarjo8097 Another Point to note is that the Jxct NPK sensor might not be reading the correct NPK values as we observed some linear trendline between N, P, K form the data of many samples. So, basically our conclusion was that the NPK sensor was only reading the Electrical conductivity and then trying to use some algorithm (which might be close to the linear I mentioned above)to give us the N, P, K values i.e., We found the NPK values shown by the sensor are not trust worthy.

  • @war0803
    @war0803 Год назад +4

    Pointless! Just because you get conductivity and the values vary doesn't mean you are measuring NPK values. If there's no calibration procedure this is complete dookey

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

    I do not know what I have done wrong, I only get:
    nitrogenValue 250 mg / kg
    PhosphoroValue 250 mg / Kg
    PotassiumValue: 250 mg / kg

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

    where we buy npk sensor

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

      Read my website article. The link for buying NPK sensor is already given.

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

    Bro who much cost npk sensor is

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

      50-60$ from the manufacturer

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

      @@HowtoElectronics how to buy that it not available in amazon

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

      Buy from aliexpress. Or any other chinese sites.

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

    👍💯🇱🇰

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

    I do not know what I have done wrong, I only get:
    nitrogen value 255 mg / kg
    PhosphoroValue 255 mg / Kg
    PotassiumValue: 255 mg / kg

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

      I'm also having the same problem

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

      I spent all night to find out the solution. In my case the sensor default boundrate was 4800 instead of 9800 so, modbus initialization now looks like that: mod.begin(4800). I also had to add two 4k7 resistors to pull up I2C bus to start display working

  • @LOLBRO-hv5ho
    @LOLBRO-hv5ho Год назад

    C:\Users\sbrra\OneDrive\Documents\Arduino\sketch_nov29b\sketch_nov29b.ino:2:10: fatal error: Adafruit_GFX.h: No such file or directory
    #include
    ^~~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    Compilation error: Adafruit_GFX.h: No such file or directory
    I have this Error what should I do?

  • @abrehamasegid
    @abrehamasegid 2 года назад +11

    Hello, I recently tested a similar npk-meter and found that it responded to any salt regardless if it contained any N, P, K. or not. Normal Kichen salt for example consists just of NaCl and no Nitrogen, Phosporous and Potassium (K). It still leads to high values of N,P and K if applyed to the soil. Did you precisely check if your npk-meter is really Ion-selektive or if it maybe also just responds to the conductivity of the solution???

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

      Easier to add Potassium and test as it's easily obtainable.

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

      I was wondering if this was a fake, typically it would make sense that a semipermeable and selective membrane (each to potassium, nitrogen, and phosphorous) would be needed to keep out other dissolved electrolytes. I'm hearing nothing like that here and it probably is fake and will just spit out random numbers. If you want to dissolve NaCl in water and see what happens, if it reads nothing, then try some potassium chloride solution, and see if it only reads a potassium level. Do the same with nitrogen and phosphorous. If you really want to see how accurate it is after that you can do a little math and see if the concentration is accurate. I did not see that level of scrutiny here in this video and would not waste my money on this product.

    • @Farming-Technology
      @Farming-Technology 2 месяца назад

      Yea the sensors just test ec and spit out a value for npk based on the ec reading multiplied by a constant. If you look at a few examples they are all reading (approximately) n=2.5*p and k =0.9*p.