Iot project for the location of pets, using esp32 and firebase
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Pet Location is an IoT project that allows families to track the location of their pets. It uses an ESP32 microcontroller with GPS and WiFi modules to periodically send location data to a backend server. A React web application is used to display the location data on a map, and provide notifications when the pet leaves or enters designated areas.
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
To use Pet Location, you will need an ESP32 microcontroller with GPS and WiFi modules, and a backend server with a database and API. You will also need to set up the React web application and configure it to communicate with the backend server.
- Node.js (https://nodejs.org/)
- ESP32 microcontroller with GPS and WiFi modules
- Backend server with a database and API (e.g. Node.js with MongoDB and Express)
- Google Maps API key (https://developers.google.com/maps/gmp-get-started)
Create a Thingspeak account and channel:
- Create a Thingspeak account (https://thingspeak.com/)
- Create a new channel
- Add the following fields to the channel:
- Latitude
- Longitude
- Timestamp
- Pet Name
- Pet Status
- Create a new API key for the channel
- Copy the API key and channel ID
- Paste the API key and channel ID into the ESP32 code
- Paste the API key into the React web application code
Follow the steps:.
- Clone the repo
git clone https://github.com/AndresDiagoM/pet_location
- Install NPM packages
npm install
- Enter your API in
config.js
const API_KEY = 'ENTER YOUR API';
- Connect the ESP32 microcontroller to your pet's collar or harness
- Turn on the ESP32 and connect it to your WiFi network
- The ESP32 will periodically send location data to the backend server
- The React web application will display the pet's location on a map
- You can set up notifications for when the pet leaves or enters designated areas
For more examples, please refer to the Documentation
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
React is MIT licensed.
Andres Felipe Diago - @your_twitter - email@example.com
Project Link: https://github.com/AndresDiagoM/pet_location
The resources used to create this project are listed below.
Esp32 with GPS and WiFi modules:
Google Maps API: