Internet of Things Asked by Fahad Najib on August 23, 2021
I am mainly from software background with very very basic level of electronics/microcontroller knowledge.
I recently did a small IoT project for moisture/temp detection following this tutorial
At a very high level this uses Raspberry Pi4 and a capacitive moisture sensor (which is plugged into raspberry pi) to send the data via AWS IoT to my email.
I would like to upgrade to where I can have multiple stemma capacitive moisture sensors (1 for each of my indoor plants) without obviously buying many Raspberry Pis… I did some basic research and I believe I would need some sort of microcontroller with each moisture sensor for each plant that is battery operated and can send data either on WiFi/MQTT (something like this) or Bluetooth… then my Raspberry Pi can act as a server to each of these devices send data to AWS.
I kindly need guidance on what piece of cheap battery operated (ideally don’t want to plug in)/WiFi or Bluetooth enabled hardware (microcontrollers?) is best for individually having many moisture sensors connected.
Also is my thinking correct?
Below is what I would do if I were you.
I would completely skip the Pi (unnecessary design complications and need for additional hardware + code) and ensure the nodes send data directly to the AWS over wifi(for indoors) using MQTT.
For ensuring a longer battery life, I would to the following:
deep sleep-->timer elapse INT-->wakeup-->turn on radio-->connect to wifi-->connect to server-->read sensor data-->transmit data-->disconnect from server--> disconnect from wifi-->turn off radio-->reset timer/clear INT-->go back to deep sleep.
Your battery life will also depend on the rate at which you transmit the data. I would generally do it once in a few hours in your case.
To get a good estimate of how much power you node draws and how long it can last on battery. Measure the current drawn when a node is in deep sleep + measure the current drawn when full active and then do the math based on (2) and you can get a rough idea of how long the device could last on battery.
For suggestion for the micros, I would go with an AVR (something like the atmega1280 or 1281) and use an external module for wifi in case I decide to switch to a different one at some point in time, it would be easier.
Answered by Vinay Divakar on August 23, 2021
You got the right idea, let's jump into your questions:
First of all, you need to think about the microcontroller itself. Since you said that you need wifi/bluetooth, I could recommend an ESP8266 (wifi only) or an ESP32 (wifi and bluetooth, also more expensive).
Now for the battery: there are some dev boards which already include all of the battery management stuff, like some LILYGO boards that can be easily found on AliExpress or the likes, with support for the commonly found 18650 cells. Another option would be to get a regular dev board with no battery slot, and add it yourself if you want something more involved.
Answered by Igor Moura on August 23, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP