atulkatti
Posts: 37
Joined: Sat Oct 20, 2018 3:18 am

IOT Design for Agriculture

Wed Nov 07, 2018 9:09 am

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 ?

User avatar
DougieLawson
Posts: 35805
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: IOT Design for Agriculture

Thu Nov 08, 2018 10:28 am

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.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

atulkatti
Posts: 37
Joined: Sat Oct 20, 2018 3:18 am

Re: IOT Design for Agriculture

Sun Nov 11, 2018 4:19 am

i Think I would need to make the Web server as MQTT broker to wich all MCUs and Android APP will be clients , right ?

User avatar
DougieLawson
Posts: 35805
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: IOT Design for Agriculture

Sun Nov 11, 2018 8:25 am

The MQTT broker has nothing to do with any webserver unless you choose to use websockets.

Run Mosquitto or RabbitMQ on your Raspberry.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

henmina53
Posts: 20
Joined: Thu Apr 05, 2018 4:49 am

Re: IOT Design for Agriculture

Wed Nov 14, 2018 10:23 am

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.

Return to “Automation, sensing and robotics”