Page 1 of 1

IOT Design for Agriculture

Posted: Wed Nov 07, 2018 9:09 am
by atulkatti
Im designing a system for a farming application where i want to measure Temp/humidity/moisture at 6 places on the field (60 X 60 meters)

Then gather the data and send to a server and subsequently to a smartphone app. Get input from user and then turn the pump ON/OFF via a relay.

I have come up with a couple of design options

1) Use Sensors + MCU + GPRS module and send data directly to server from every sensor node in the field

2) Use Sensors + MCU + Zigbee to send data to a sink Node and from there I upload data via PI to server

Option 1 seems easier but i have read a lot of literature with option 2. Forming WSN with zigbee seems like a lot of work.

Can anyone provide feedback on the 2 options or suggest any other option ?

Re: IOT Design for Agriculture

Posted: Thu Nov 08, 2018 10:28 am
by DougieLawson
Run a Mosquitto or RabbitMQ broker on your Raspberry. Each sensor then uses Nick O'Leary's MQTT library to publish its data on an MQTT topic.

Your data consumers then subscribe to the topics they need.

The hard part is designing the MQTT topic hierarchy.

Each sensor is wired to a microcontroller with an ESP8266 to give it WIFI access to your network. All messages are sent over a TCP/IP channel.

Not sure whether anyone has added MQTT support to ZigBee, you'd have to research that.

Re: IOT Design for Agriculture

Posted: Sun Nov 11, 2018 4:19 am
by atulkatti
i Think I would need to make the Web server as MQTT broker to wich all MCUs and Android APP will be clients , right ?

Re: IOT Design for Agriculture

Posted: Sun Nov 11, 2018 8:25 am
by DougieLawson
The MQTT broker has nothing to do with any webserver unless you choose to use websockets.

Run Mosquitto or RabbitMQ on your Raspberry.

Re: IOT Design for Agriculture

Posted: Wed Nov 14, 2018 10:23 am
by henmina53
The wireless temperature sensors are specially designed to work through a wireless mesh network. The best part is battery cycle is much better than the mesh network with ESP8266 communicating with the gateway receiver can serially connect with raspberry pi and further you can use any kinds of advanced tools for notification, backend stuff, data analytics etc.