Click here to Skip to main content
15,885,921 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good Day All,

I am starting my first IOT project. I need your help to design my project architecture.

With respect to requirements,

1. There will be multiple sensor installed/fitted inside the home. Eg. smoke detector sensor.
2. Sensor will send data to cloud. Might be using some get-way or hub.
3. Data will get stored into DB.
4. End user will get alerts/notification on TAB,Mobile,Web application from cloud.
5. Communication will be two way.

Kindly share your comments.

Regards,
YRishi

What I have tried:

As a get-way or hub, I checked on Raspberry Pi front.
But not sure like
Question,
Each sensor will have one separate Raspberry pi or all sensor will send their data to one Raspberry Pi device or Hub.
Posted
Updated 30-Jul-19 6:32am
Comments
Richard MacCutchan 30-Jul-19 5:09am    
This is a design issue and is far too broad for a Quick Answers forum.
[no name] 30-Jul-19 10:31am    
I got oatmeal, raisins, shortening and milk. I want to make cookies. Comments?
Andy Lanng 30-Jul-19 12:12pm    
Betty Crocker Chocolate Chip Cookie Mix 17.5 OZ XD

1 solution

Step One: Sensors.
Have you tried reading sensors? They pretty much have a few pins and a board with some stuff on it. Doesn't make for good reading without the right tool.
Many sensors work differently. There are resistive sensors that need to be read via an adc (analogue to digital converter). Others use serial communication. There are a few different protocols.

Step Two: Microcontroller
using a laptop for a smoke detector is a bit overkill. You need to work out what option to use. I use Arduino Nano's for most small projects. You can get cheap ones for about £3 GBP. You need to know how to wire them up to your sensors and read the data from them. This should be a pretty steep learning curve as there are many libraries out there. You can pretty much find an arduino (c++) library for any sensor out there.

Step Three: Power
How are you going to power the microcontroller and it's kit? A battery might last a short while, but with bespoke setups, you're unlikely to get much more than a day or two. I still haven't solved this problem.

Step Four: Communication
The microcontrollers can read data no problem, but how are they going to report back to a hub / gateway / db? I've played with the esp8266 (wifi). The adafruit huzzah is a great arduino type microcontroller that has one built in. I also have a SIM800L (gprs) for another project. The problem is that these take a lot of watt/hours. I tried fitting PoE but I couldn't handle the ethernet stack. The thick cable is overkill in most cases.

Step Five: The Hub
So now you have to write a solution that monitors posted sensor data and recognises when something needs attention. can be written on any device. Loads of choice there.

Step Six: Alerts
One of my projects will be written as a mobile app so alerts on a device will be simple. You cannot hope for the same with a web page style system. The easiest would be to send out emails. That's pretty trivial. You could use a texting api at a particular cost per message. I doubt you'd need to use many so it should be pretty cheap. As I mentioned, I have a SIM 800L with a contract sim so I can text / call / email or whatever using that gizmo for about £6 per month GBP.

So that's the broad-strokes. This forum is pretty strict on the format of "quick questions". You have to have something that's broken. You have to be specific about how it's broken (what is does, what it should do, what you have tried etc).

My Advice: Get stuck in. Break some stuff. Fix some stuff. Ask us for help if you really get stuck ;)
 
Share this answer
 
Comments
yrishi 5-Aug-19 0:19am    
Many thanks Andy for your reply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900