PickCounter
This repo contains firmware and configuration instructions for PickCounter Projects
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them.
- Arduino IDE
- A PC with python3 installed
A step by step series that tell you how to get the Firmware and Backend running
You should have Arduino IDE Installed
-
Add ESP32 Board to your Arduino IDE 1. In your Arduino IDE, go to File> Preferences Installing ESP32 Add-on in Arduino IDE Windows, Mac OS X, Linux open preferences 2. Enter
https://dl.espressif.com/dl/package_esp32_index.json
into the “Additional Board Manager URLs” field then, click the “OK” button: Note: if you already have the ESP32 boards URL, you can separate the URLs with a comma as follows:https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
1. Open the Boards Manager. Go to Tools > Board > Boards Manager… 2. Search for ESP32 and press install button for the ESP32 by Espressif Systems“: 3. That’s it. It should be installed after a few seconds. -
Now copy the contents of the libs folder to the libraries directory of your Arduino 4. If you are using windows, the libraries directory will be Documents/Arduino/libraries
- Select ESP32 Dev Module from Tools->Board->ESP32
- Select the correct port from Tools->Port
- Then open ESP32Firmware.ino file, and open WiFiCreds.h tab on line number 4 and 5, put your WiFi creds
- Upload the Code to your ESP32 Wrover Module Gateway Board
- Open the serial monitor and press reset button of your ESP32.
- You will get Device ID on serial monitor, note it down as you will be using it in Python Script to send data.
- Download and install Python3 from official website: https://www.python.org/downloads/
- Go in the Backend folder and open the terminal
- Execute
pip3 install -r requirements.txt
- Run the python script using
python3 sheetsHandler.py
- The script will start running. You can add orders to the Spreadsheet and they will be instantly dispached to the ESP32 devices. Once the ESP32 completes an order, it will be removed form the sheet and the next order will be sent.
- PickCounter - PickCounter ESP32 and Python Backend Demo Video
- @Nauman3S - Development and Deployment