- As soon as the device starts it checks for configured
wifi
credentials and connects to wifi network. - Then it starts reading the
weight scale
and waits for any weight adding to the scale. - Once a weight add to the scale, it immediately increments the counter and displays in the screen. Both add and remove will increment and decrement the counter acurately.
- Mean while, if user press the
button
it will send thecurrent item count
and send it to the server. Therespose
from the server will be thecashier No.
and will be displayed to the user. - When the
cashier No.
displays theBlue LED
will also turnON
. - If user switch the button again, it will again show the current item count and the
Blue LED
turnOFF
.
- There are 2
18650 Lithium 3.7v
Batteries. DC-DC Regulator
and7805 5v Regulator
converts the Voltage to stable5v
.- The red 5v wire from regulator connects to
NodeMCU
PinVV
and Black wire connects to anyGND
pin. This powers theNodeMCU
Module. TheRed LED
just indicates the power supply. NodeMCU
outputs3.3v
for other pins.
More Info - 0.96 inch OLED Display with Arduino IDE
OLED SDA
pin connects toNodeMCU D2
pin.OLED SCL
pin connects toNodeMCU D1
pin.- Red
3.3v
and BlackGND
.
We’re using I2C communication protocol. The most suitable pins for I2C communication in the
NodeMCU
areGPIO 5 (SCL)
andGPIO 4 (SDA)
.
More Info - NodeMCU with Load Cell and HX711 Amplifier (Digital Scale)
HX711 DT
pin connects toNodeMCU D6
pin.HX711 SCK
pin connects toNodeMCU D7
pin.- Red
3.3v
and BlackGND
.
Switch
connects toNodeMCU D5
andGND
pins.Blue LED
connects toNodeMCU D8
andGND
pins.