Effortlessly Send Data via Motion Sensors with WIFI Technology

Click For Summary
SUMMARY

This discussion focuses on sending data from motion sensors to an online database using WiFi technology. Key hardware options include the Arduino with WiFi shield, ESP8266 module, and Raspberry Pi Zero. Participants emphasize the importance of using a commercial WiFi sensor to avoid liabilities when selling a system. Additionally, they recommend utilizing a Python database API for data management, along with various compatible database interfaces such as MySQL and PostgreSQL.

PREREQUISITES
  • Understanding of Arduino with WiFi shield
  • Familiarity with ESP8266 module
  • Knowledge of Raspberry Pi Zero
  • Experience with Python database API
NEXT STEPS
  • Research how to configure and program Arduino with WiFi shield
  • Learn about integrating ESP8266 with motion sensors
  • Explore Python database API documentation for data handling
  • Investigate MySQL and PostgreSQL for online database management
USEFUL FOR

This discussion is beneficial for hardware developers, IoT enthusiasts, and anyone looking to implement motion sensor data collection and management systems using WiFi technology.

Somali_Physicist
Messages
117
Reaction score
13
Does anyone know how i can send information to the web through motion sensors?
 
Engineering news on Phys.org
Please elaborate, this is rather ambiguous so far.

In general you should connect the sensor to something capable of both reading the sensor state and forwarding the information. Arduino with WiFi shield, ESP2866 module, Raspberry Pi (Zero should be enough) - something like that.
 
  • Like
Likes   Reactions: davenn
Borek said:
Please elaborate, this is rather ambiguous so far.

In general you should connect the sensor to something capable of both reading the sensor state and forwarding the information. Arduino with WiFi shield, ESP2866 module, Raspberry Pi (Zero should be enough) - something like that.
I want to basically check if someone walked into a room, so if X enters or leaves a room , uptick 1.If X leaves a room uptick -1. However i want the upticks to be sent to an online database.
 
OK.

My advice still holds.
 
Borek said:
OK.

My advice still holds.
but i want to use a commercial wifi sensor.Building it my self would involve liabilities since i am selling a system.
 
I believe there is a python database API that you could possibly make use of, if you choose to use a raspberry pi. Which should be quite familiar if you've worked with databases before. Here are some popular compatible database interfaces:
- GadFly
- mSQL
- MySQL
- PostgreSQL
- Microsoft SQL Server 2000
- Informix
- Interbase
- Oracle
- Sybase

Once you've got all that set up, it should just be a case of uploading the motion sensor's data to the database. You would also need to configure the sensor's sensitivity, possibly write a bit of code that will upload the data when a certain condition is met such as a time interval or you'll just over load the database with data. And then if you wanted to, make it log the data so you can see what's triggering it throughout the day. And then you should have a fairly good Internet motion sensor.

Additional information about the python database API can be found here:
https://www.python.org/dev/peps/pep-0249/

Hope this helps, I'm no expert but this would be my best approach!
 
Somali_Physicist said:
but i want to use a commercial wifi sensor.Building it my self would involve liabilities since i am selling a system.

Do you mean something like this? https://www.amazon.com/dp/B07F7D557R/?tag=pfamazon01-20

If you don't already know how to design it, it may make sense to become a retail reseller of a product that other people already make.
 
anorlunda said:
Do you mean something like this? https://www.amazon.com/dp/B07F7D557R/?tag=pfamazon01-20

If you don't already know how to design it, it may make sense to become a retail reseller of a product that other people already make.
Kind of , i want to be able to manipulate the data.Also i want to be for small rooms , thus if it shouldn't detect motion past a limited angle.(The latter could probably be fixed with just fancy cardboard.
 
Somali_Physicist said:
Kind of , i want to be able to manipulate the data.

Manipulation would typically be done in the smart phone app that received the data.
 
  • #10
So is the problem with manipulating the data, connecting existing WiFi sensor to the database on some computer, or about making a sensor that is able to send the information to the database?

Or is it all at the same time?
 
  • #11
anorlunda said:
Manipulation would typically be done in the smart phone app that received the data.
Borek said:
So is the problem with manipulating the data, connecting existing WiFi sensor to the database on some computer, or about making a sensor that is able to send the information to the database?

Or is it all at the same time?
The software part, how could i send raw data into my computer so i can manipulate with a database software.
 
  • #12
Somali_Physicist said:
The software part, how could i send raw data into my computer so i can manipulate with a database software.

You have a lot of learning to do. The question is, "How can my program get data from the Internet?" That's too big a question for a forum. Instead, you need some programming courses.
 
  • Like
Likes   Reactions: TechTree

Similar threads

  • · Replies 34 ·
2
Replies
34
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
536
  • · Replies 7 ·
Replies
7
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K