This repo contains code for ESP-12E chip. This chip is connected to keypad and small LED display for customer interactions and it is connected via WiFi to communicate via API with our Small business fridge e-shop, which allows customers to order any product directly next to our fridge.
You can replace any piece of hardware with something similar, but then code changes may be necessary.
ESP8266 NodeMCU V1.0 ESP-12E WiFI Module
https://protosupplies.com/product/esp8266-nodemcu-v1-0-esp-12e-wifi-module/
IIC I2C OLED display 0,96" 128x64
https://arduino-shop.cz/arduino/1569-iic-i2c-oled-display-0-96-128x64-bily.html
Adafruit matrix keypad
https://www.adafruit.com/product/3845
We are using Arduino IDE for simplicity, but you may want to use VSCode or other IDE, which may offer more features.
- Subscribe to ESP8266 url for board library downloads.
http://arduino.esp8266.com/stable/package_esp8266com_index.json - Then open board manager and install esp8266 by ESP8266 Community version 2.61 or later
- Choose board type NodeMCU 1.0 (ESP-12E Module) (or different if you own different board)
- Install following libraries:
a) Adafruit GFX Library by Adafruit version 1.6.1
b) ArduinoJson by Benoit Blanchon version 6.10.0
c) ESP8266 and ESP32 OLED driver for SSD1306 displays by ThingPulse, Fabrice Weinberg version 4.1.0
d) Keypad by Mark Stanley, Alexander Brevig version 3.1.1
Note: Library versions mentioned above are latest versions at the time of writing and developing this software. Using newer versions may be prefered, but there may be breaking changed.