Coder Social home page Coder Social logo

jcbhmr / macounter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 8.68 MB

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Estimate the number of people using WiFi emanations

License: MIT License

C++ 85.20% C 14.80%
esp32 presence-detection sniffer spring-2023 uww

macounter's Introduction

MACounter

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Estimate the number of people using WiFi emanations
๐Ÿ’ก Inspired by Makerfabs/Project_WiFi-Statistics and ESP-EOS/ESP32-WiFi-Sniffer

๐Ÿ“ก Counts unique MAC addresses
๐Ÿ“š Great for tracking busyness over time
โœจ Complete project, not a library
๐Ÿ‘จโ€๐Ÿ’ป Make as a class project for Embedded Systems at UW-Whitewater

Installation

ESP32 Arduino IDE

This is a physical project, as well as a software project! You'll need...

  1. An ESP32 chip. Preferrably a development board. If you want something that you can reuse for other projects, the Adafruit HUZZAH32 is a good choice. If you just want a cheap $10 board for this project only, you can snag one of the many ESP32 boards on Amazon.
  2. A way to power your ESP32. This is most likely a USB charging brick. If you are truly dedicated to wireless deployment, you can use your own battery solution. But for the intended deployment case of an indoor stationary spot, a wired-to-wall solution is probably the most sensible. Your charging brick doesn't need to be fancy. As long as it can supply ~500mA of current, that's sufficient. You can find cheap $4/pc chargers on Amazon.
  3. An LCD screen. This will be used to display the count of how many people are estimated to be in the area (by MAC addresses). This project's code expects a 16x2 display, but you can probably fiddle with the code to get it to work with other sizes. You can find 16x2 LCD screens on Amazon.

In my own experimentation and development, I used the DOIT ESP32 DEVKIT V1.

To configure the hardware, you should match this circuit:

You'll also need to install the "FreeRTOS" library from the Arduino Library Manager. We need this library to use the vTaskDelay() function.

๐Ÿ“š Getting started: Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials

Usage

Once you've downloaded the application code to your ESP32, you just need to deploy it someplace! The easiest spot is, of course, right where you're sitting. Plug in the ESP32 to the power brick, make sure you've got the OLED output screen hooked up, and see how many WiFi MAC addresses are in your area!

Legal

I am not qualified to remark on whether or not this MAC address sniffing is legal or not in your area. This is not legal advice. With that said, here are some discussions and other resources about the legal side of tracking people with WiFi signals:

Related

There's some other interesting projects dealing with WiFi person detection that are pretty cool! ๐Ÿ˜ฒ

Development

C++ Arduino IDE ESP32

This project was developed using the Arduino IDE and an ESP32. You can get the project running locally using git clone and then opening the main mac-addr-counter.ino in the Arduino IDE. You'll need an actual ESP32 to run the code!

macounter's People

Contributors

195cn avatar jcbhmr avatar

Watchers

 avatar

Forkers

ac882

macounter's Issues

Add info on how to get Arduino IDE set up with ESP32?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.