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

  Переглядів 75,751

How To Electronics

How To Electronics

День тому

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

КОМЕНТАРІ: 251
@HowtoElectronics
@HowtoElectronics 3 роки тому
*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.
@2006kishu
@2006kishu 2 роки тому
code is running but the output values are 255 255 255 how to overcome this issue
@walidberhoumi8234
@walidberhoumi8234 2 роки тому
@@2006kishu use 4800 for serial baud rate
@khaledmerahi2298
@khaledmerahi2298 Рік тому
@@2006kishu same problem Did you found how to solve the problem
@ManishGpt
@ManishGpt 3 роки тому
Your all projects are very informative and nice way of presentations too.
@afsaransari1319
@afsaransari1319 3 роки тому
Thank you for making this project I really loved this project and I am waiting for your next project.
@mr.whitetech3887
@mr.whitetech3887 Рік тому
Searching This Video on Whole UKposts And Finally Got Over Here 👍👍👍👍👍👍👍👍👍👍
@enriqueortiz414
@enriqueortiz414 8 місяців тому
How is the measure from the soil or the solution? And how do you calibrate?
@marinajason9087
@marinajason9087 3 роки тому
nice work bro, i saw your post on face book and i followed you here. am really happy to see such video
@HowtoElectronics
@HowtoElectronics 3 роки тому
Thanks bro. Keep supporting pur entire team.
@butthussain5881
@butthussain5881 Рік тому
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...
@gruhaautomations9082
@gruhaautomations9082 3 роки тому
Thank you so much for this video sir🔥🔥😍
@vladuzz7
@vladuzz7 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
@formerunsecretarygeneralba9536
@formerunsecretarygeneralba9536 2 роки тому
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 !
@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!
@FSISThakurAshish
@FSISThakurAshish Рік тому
Can we do connection in pcb or directly on the nano and screen
@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.
@AA-kz1tl
@AA-kz1tl 2 роки тому
How long will it take for the sensor to process and output data?
@rishabbasutkar7463
@rishabbasutkar7463 2 роки тому
Could you please share how to connect NPK sensor(RS485) to Raspberry pi. Thanks.
@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).
@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
@jamalgepolio
@jamalgepolio Рік тому
Thank you i need this
@markaraba8328
@markaraba8328 Рік тому
hello can it be calibrated even without the oled display?
@technicalemotions
@technicalemotions 4 місяці тому
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
@tempdeltavalue
@tempdeltavalue 4 місяці тому
Can you explain how to separate Nitrogen, Phosphorous and Potassium signals using electromagnetic field, resistance, etc?
@delacruzjonnel7168
@delacruzjonnel7168 Рік тому
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?
@arniefunkel9341
@arniefunkel9341 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?
@nj1204
@nj1204 9 місяців тому
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!
@HowtoElectronics
@HowtoElectronics 9 місяців тому
Yes use a 9-12V DC Adapter.
@walidberhoumi8234
@walidberhoumi8234 2 роки тому
I need the paper where i can find inquiry frame for THC sensor temperature humidity and conductivity
@mukundshukla5097
@mukundshukla5097 3 роки тому
I love your voice
@debihsofiane3229
@debihsofiane3229 3 роки тому
Awesome Thank you
@jyothsnabavisetti3857
@jyothsnabavisetti3857 2 роки тому
can we connect this to DE-10 nano fpga cyclone V
@user-tm7xd4im5m
@user-tm7xd4im5m Місяць тому
I created this, i am getting npk value but it's changing every second... How to fix it
@Richsteyr
@Richsteyr 2 роки тому
I like this video!
@Hackerspacetech
@Hackerspacetech 2 роки тому
Nice project
@user-tm7xd4im5m
@user-tm7xd4im5m Місяць тому
In display npk value is varying continuing... How to solve it
@mohamedrasik6094
@mohamedrasik6094 5 місяців тому
Please explain about protocol connection between npk and aurdino nano
@kishormahale674
@kishormahale674 2 роки тому
hi video is useful but when connected all the things it produce output 255
@Roxill_19
@Roxill_19 3 місяці тому
hello , i have a problem, even thou i dint put my sensor into the soil it keeps giving me a random data
@gilbeysjhonladion7468
@gilbeysjhonladion7468 3 роки тому
Hi. I tried to follow your steps but it is not working. What could be the problem.
@2006kishu
@2006kishu 2 роки тому
code running but the output for N P K is 255 how to overcome with this
@physicscrushcrusj6695
@physicscrushcrusj6695 Рік тому
Sir how to convert npk value to string?
@nj1204
@nj1204 9 місяців тому
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 9 місяців тому
Check the inquiry frame. Confirm with the manufacturer. Find datasheet and check what could be the inquiry frame.
@vitormelchioretto4130
@vitormelchioretto4130 Місяць тому
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?
@HowtoElectronics
@HowtoElectronics Місяць тому
You can submerge
@saravanank6909
@saravanank6909 2 роки тому
Hi mam, How to order this NPK sensor from india
@saravanank6909
@saravanank6909 3 роки тому
i could not find the link for buy sensor
@mri3884
@mri3884 3 роки тому
Hi, excellent video, can I read the 3 values in output voltage mode???
@HowtoElectronics
@HowtoElectronics 3 роки тому
Not at all
@mri3884
@mri3884 3 роки тому
@@HowtoElectronics so I can??
@kavikavipriya1267
@kavikavipriya1267 3 роки тому
How to get npk sensor? I need that
@go4minrakulyx
@go4minrakulyx 2 роки тому
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 роки тому
Hi, i was going to buy one but you always have the same problem?
@go4minrakulyx
@go4minrakulyx 2 роки тому
@@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 роки тому
@@go4minrakulyx Yes i found the same, it's bs...
@karthikeyansubramanian4400
@karthikeyansubramanian4400 3 роки тому
I need NPK sensor .What is the cost of NPK sensor
@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 ?
@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
@electronic7979
@electronic7979 3 роки тому
👏👏👏
@cahyoo88
@cahyoo88 3 роки тому
what is the schematic for Arduino Uno ?????
@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
@HowtoElectronics
@HowtoElectronics 3 роки тому
This sensor is designed for soil not for water
@aleeraza750
@aleeraza750 7 місяців тому
Can't download code kindly guide
@satriyabayu1466
@satriyabayu1466 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 Рік тому
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
@cyberg1058
@cyberg1058 Рік тому
dah dapat solusinya mas ?
@thecoolstuffat
@thecoolstuffat 3 роки тому
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 роки тому
@@HowtoElectronics how did you test for accuracy?
@malk6277
@malk6277 2 роки тому
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.
@carlosandressaldana8855
@carlosandressaldana8855 2 роки тому
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 Рік тому
Is this fake then? I was wondering how it differentiates between electrolytes
@alpukatpanjalu
@alpukatpanjalu Рік тому
Good
@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 Рік тому
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)
@krenma
@krenma 3 роки тому
Hi, For an Arduino Uno would they be the same connections?
@HowtoElectronics
@HowtoElectronics 3 роки тому
Yes the connection remains same
@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 роки тому
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
@egoistzxc
@egoistzxc Рік тому
Can you use the NPK sensor in water and not in soil?
@georgeolwal1087
@georgeolwal1087 10 місяців тому
How did it go?
@manojrobotics8626
@manojrobotics8626 6 місяців тому
sir what is the cost of this project if we want to buy you
@omsingharjit
@omsingharjit 3 роки тому
Everything is similar to .. How to Mechatronics
@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 ?
@eshachoudhari3373
@eshachoudhari3373 2 роки тому
Hi !! Can this NPK meter be used in water which have soluble npk in it? Please reply.
@HowtoElectronics
@HowtoElectronics 2 роки тому
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.
@scienceraven1200
@scienceraven1200 6 місяців тому
This info is missing: Is it accurate? does it work ok? thanks!
@HowtoElectronics
@HowtoElectronics 6 місяців тому
Not accurate. Thats the reason why manufacturer has stopped manufacturing it.
@khaledmerahi2298
@khaledmerahi2298 Рік тому
the 3 values ​​of N,P and K remains fixed at 255 they do not want to change How can i fix it
@anirudh4692
@anirudh4692 11 місяців тому
same problem please help
@ajinugroho4686
@ajinugroho4686 2 роки тому
Can i apply this sensor for water ? For hydroponic project
@HowtoElectronics
@HowtoElectronics 2 роки тому
This is only for Soil
@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 роки тому
hello sir, ur problem is also mine so please help me when u fix it
@PRANAVP-oq7of
@PRANAVP-oq7of Рік тому
can i have source code for this one
@nimalsandunsiri4024
@nimalsandunsiri4024 2 роки тому
👍👍👍
@loch6570
@loch6570 2 роки тому
Does the sensor work for fertilizer?
@HowtoElectronics
@HowtoElectronics 2 роки тому
Yes it does
@loch6570
@loch6570 2 роки тому
I'll use npk sensor, arduino uno ch340g, rs485 module,oled will it work?
@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.
@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
@mohamedrasik6094
@mohamedrasik6094 5 місяців тому
Anyone please tell me which protocal used to connect aurdino nano with npk sensor
@HowtoElectronics
@HowtoElectronics 5 місяців тому
RS485
@mohamedrasik6094
@mohamedrasik6094 5 місяців тому
@@HowtoElectronics but rs485 is a device name
@HowtoElectronics
@HowtoElectronics 5 місяців тому
Rs485 is protocol Max485 is device name. Use google to learn.
@mohamedrasik6094
@mohamedrasik6094 5 місяців тому
@@HowtoElectronics but in google the communication between max485 and aurdino is modbus RTU protocol
@urbanirrigation
@urbanirrigation Рік тому
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.
@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
@xXCaHeTeLxX
@xXCaHeTeLxX 2 роки тому
What about just adapting it to USB and use it with a laptop?🤔
@HowtoElectronics
@HowtoElectronics 2 роки тому
It won’t work as it requires power supply more than 9V
@saravanank6909
@saravanank6909 3 роки тому
where you got this sensor?Please share the link
@HowtoElectronics
@HowtoElectronics 3 роки тому
Check the website article for the link
@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?
@jairojoaquin6678
@jairojoaquin6678 10 місяців тому
@@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
@mashapimatimba8063
@mashapimatimba8063 3 роки тому
What's the cost for buying an NPK sensor.
@xXCaHeTeLxX
@xXCaHeTeLxX 2 роки тому
60$ on Aliexpress
@mikrotech3103
@mikrotech3103 Рік тому
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?
@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
@eliansoler1206
@eliansoler1206 3 роки тому
Does it work in water?
@HowtoElectronics
@HowtoElectronics 3 роки тому
Results are not impressive in water.
@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?
@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.
@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 роки тому
@@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 роки тому
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 роки тому
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?
@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
@swarneemnandanwar8117
@swarneemnandanwar8117 2 роки тому
Same
@satriyabayu1466
@satriyabayu1466 2 роки тому
I'm also having the same problem
@nimalsandunsiri4024
@nimalsandunsiri4024 2 роки тому
👍💯🇱🇰
@Ken2234
@Ken2234 3 роки тому
Thr website link went down
@HowtoElectronics
@HowtoElectronics 3 роки тому
It is fixed now
@Ken2234
@Ken2234 3 роки тому
@@HowtoElectronics much appreciated
@zargonetork8516
@zargonetork8516 2 роки тому
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 роки тому
hi, I have the same problem. is there any development?
@khaledmerahi2298
@khaledmerahi2298 Рік тому
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 4 місяці тому
​@@michapacholak9559 could you please tell where you added two 4.7 k resistors in the circuit?
@michapacholak9559
@michapacholak9559 4 місяці тому
​@@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 👍
@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 роки тому
@@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 роки тому
@@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 Рік тому
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
@rmstudies8621
@rmstudies8621 3 роки тому
where we buy npk sensor
@HowtoElectronics
@HowtoElectronics 3 роки тому
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.
@abdullahalaraf228
@abdullahalaraf228 2 роки тому
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 Рік тому
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 Рік тому
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.
ВЫШИБАЛЫ - Сатир, Янчик, Джарахов, Миша, Антон Форсаж
1:09:04
DIY Electromyography using MyoWare EMG Muscle Sensor & Arduino
10:21
How To Electronics
Переглядів 60 тис.
DIY Soil Ph Meter || Measure Soil Ph Value using Soil Ph Sensor & Arduino
7:52
How To Electronics
Переглядів 24 тис.
Arduino Garden Controller - Automatic Watering and Data Logging
9:13
Practical Engineering
Переглядів 3,1 млн
Home Soil Test vs Lab Soil Test. Demonstration and review
20:51
Urban Farmstead
Переглядів 194 тис.
DIY : Hydroponics - Understanding EC, pH. Simple Lettuce Nutrient Solution and Measurements
3:38
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Переглядів 563 тис.
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Переглядів 15 млн
Как должен стоять ПК?
1:00
CompShop Shorts
Переглядів 489 тис.
iPhone 19?
0:16
ARGEN
Переглядів 3,9 млн