Building an IoT Plant-Shop System: Our 2022 Design Project
A look back at building a barcode-based plant guide, inventory, and billing system—from schematics and PCB fabrication to firmware, Firebase, and mobile apps.
In May 2022, our team documented the IoT-based Plant Guide, Inventory and Billing System for a Plant Shop as a BS Computer Engineering design project at Mapúa University. I worked on the project with Marie Krystine D. Anticuando and Claudee Khiarra R. Directo, under our design adviser and plant-shop client, Engr. Analyn N. Yumang.
The project addressed two connected needs: helping customers choose plants with suitable care requirements, and helping the seller keep track of orders, stock, and bills. Our solution combined a portable barcode-scanning device, customer and seller mobile-app accounts, and Firebase. Looking back at the final report alongside the code and photos gives a fuller picture of what we built.
V1: building the first prototype
Before the final model with its printed PCB, we built V1. The earlier layout and internal-wiring photo show this first version of the hardware. This stage brought the main circuit, separate button circuit, modules, and enclosure together.
At this stage, we had to decide how to connect the LCD, ESP module, and barcode reader, how to power the ESP, and whether to use a two-layer board or a single-layer board with jumper wires. Project discussion
The V1 design used two single-layer PCBs designed in Eagle: a main circuit and a separate button circuit, with jumper wires used to route connections. The button-priority encoder used AND, OR, and NOT gates to encode the operation inputs. The enclosure then had to accommodate the boards, modules, wiring, and controls.

The earlier PCB layout for the V1 model, shared by Krystine on March 8, 2022. It shows the View, Add, Remove, and Pay controls and connections for the LCD, barcode module, and ESP8266.
The internal view shows how the V1 board, connectors, and wiring fitted together inside the prototype.
Developing and building V1 involved a lot of trial and error. Each setback taught us more about PCB design, assembly, and troubleshooting. Some connections could not be routed on a single copper layer without crossing other traces, so we used copper-wire jumpers to complete them.

Inside the V1 prototype: the board, connectors, and wiring.
Power and input behavior also shaped the design. The report records a move from one 9V battery to two in parallel after the original supply proved insufficient, and the addition of pull-down resistors for the buttons. These were historical prototype choices. The report’s own recommendations later called for improving the power supply.
Another photo from the earlier development period records a powered prototype in April 2022.

A personal photo with a powered prototype, recorded in Google Photos on April 29, 2022.
Conceptual framework: from a scan to a completed order

Figure 2. Conceptual framework of the device, extracted from the final report, printed p. 18 (PDF page 25).
The framework organizes the system into Input → Process → Output. It explains how a customer’s actions become plant information, a running bill, and an order shared with the shop.
Input: identify the plant and the intended action
Barcode data identifies the plant, while the push buttons select View, Add, Remove, or Pay. These inputs answer two different questions: which plant is involved, and what does the customer want to do with it? The button-encoder circuit translates the selected operation into signals for the ATmega328P.
Process: apply the shopping rules
The system determines the operation, obtains the relevant plant and price information, calculates the total bill, and generates the order receipt. The ATmega328P handles the device interface and operation inputs; the ESP8266 links the device to Firebase, which also connects the mobile-app workflow.
Viewing a registered plant produces its care overview. Adding it updates the shopping list and running total within the stock limit. Removing it adjusts the list and bill. Confirming checkout finalizes the order and updates stock; cancelling allows shopping to continue. The report’s individual operation flowcharts expand the decisions summarized in this middle box.
Output: give each user the information they need
The LCD displays a compact plant-care overview and total bill. The customer app presents extended plant information and the full bill list. The order receipt appears for both customer and store owner, linking the customer’s selection to the seller’s records. Payment itself still takes place at the cashier.
This division lets the handheld device provide quick feedback while the app handles the more detailed presentation and shared order record. It also makes integration essential: the displayed total, shopping list, and stock update must refer to the same order.
The figure describes the full system concept. The firmware appendices show implementation details within that concept: some LCD care fields are held in local arrays, even though the conceptual narrative discusses database retrieval.
What the prototype did
The system covered 15 types of houseplants, identified through EAN-8 barcodes. Its handheld device used an ATmega328P, a NodeMCU V3.0 with an ESP8266, a barcode scanner, a 20×4 I²C LCD, and four operation buttons.
The four operations formed the shopping workflow:
- View: show a plant’s name, care level, light needs, and water needs on the device, with extended information in the app.
- Add: add a plant to the customer’s list and update the running bill, subject to available stock.
- Remove: remove the selected plant from the list and adjust the bill.
- Pay: show the total and request confirmation. Confirming the order updated stock and generated the receipt for customer and seller; cancelling left stock unchanged.
The customer still proceeded to the cashier to pay. The system automated order preparation, billing, and inventory updates rather than collecting money electronically.
Connecting the device to the cloud
The ATmega328P handled the device’s local interface and operation inputs. The ESP8266 provided the connection between the device and Firebase, while the mobile app accessed the shared cloud data.
The report’s final-code appendices add detail that was absent from the earlier Drive sketches: local billing logic, a checkout-confirmation screen, Firebase Realtime Database transaction writes, and Firebase Cloud Messaging events for viewing plant information and opening the receipt flow. The LCD’s care information still appears in local arrays, so the implementation should not be described as fetching every displayed field from Firebase.
Two sides of the mobile app
The customer could enter the PIN displayed on the device to connect to the corresponding shopping session. The app provided detailed plant information, the shopping list, and the generated bill. The seller signed in with assigned credentials to view inventory, transactions, and orders. The device workflow also allowed the customer to skip app pairing.

Actual customer-app plant-information screen, extracted from Appendix F, printed p. 121 (PDF page 128). The screen combines care guidance, stock, price, and an Add to Cart control.

Actual customer-app purchase screen, extracted from Appendix F, printed p. 123 (PDF page 130). This example shows 10 Dumbcane plants at ₱390 each, totaling ₱3,900.
From circuit schematics to the final PCB
The circuit drawings explain the electrical connections behind the prototype, while the later PCB layouts document the next hardware revision.
Circuit schematics: how the hardware connects
The schematics explain the electrical connections behind the PCB layouts: which signals reach the controller, how button presses are encoded, and where the display, scanner, and Wi-Fi module connect.

Figure 4. Full schematic diagram from our May 2022 final report, printed p. 21 (PDF page 28). The original figure is presented in landscape orientation for readability. This is the report’s circuit design; it has not been verified as an exact schematic of the later July PCB revision.
The full circuit places the ATmega328P at the center. The four operation inputs pass through a network of NOT, AND, and OR gates before reaching the controller. The barcode scanner supplies the plant identifier; the LCD and its I²C interface provide local feedback; and the ESP8266 provides the communication link. The drawing also includes the power circuit and the controller’s crystal and capacitors. Together, these connections give the conceptual framework a physical implementation: buttons and scans become controller inputs, the firmware processes the operation, and the display and connected app present the result.
Button-module circuit schematic exported from the populated Sheet_1 in my EasyEDA Design03 project. It shows the View, Add, Remove, and Pay inputs, their 22 kΩ pull-down resistors, the connectors and switch, and the LED with its series resistor.
Each button connects its named signal to 5V_IN when pressed. A 22 kΩ resistor connects that signal to ground, providing a defined low state when the button is released. The four named signals leave through the BUTTON connector for the main circuit. The LED has a separate series resistor marked 290 Ω. This schematic explains the electrical behavior, while the button-module PCB layout below shows the corresponding physical arrangement.
My final PCB designs in EasyEDA
The main-board layout brings the controller and logic footprints, power connections, and NodeMCU footprint onto one board. Its signal names include the four shopping operations, serial TX/RX, and I²C SDA/SCL. In the conceptual framework, this board connects the physical inputs to the processing and communication hardware: the button operation must reach the controller, and the device must exchange information with the cloud through the ESP8266.
My final main-board PCB layout with all four copper layers overlaid in color: top in red, bottom in blue, Inner1 in cyan, and Inner2 in green. Top silkscreen is yellow, the board outline is magenta, and pads and holes are also shown.
The separate button-module places four push-button footprints in a two-by-two arrangement, with resistor footprints, mounting holes, and connections named View, Add, Remove, and Pay. Keeping the controls on their own board allows their physical position to follow the enclosure’s front panel while the main board holds the processing circuitry. This is the physical input stage of the conceptual framework: a customer selects an operation here before the controller applies the shopping rules.
My final button-module PCB layout, exported from EasyEDA. Four button footprints provide the physical controls for View, Add, Remove, and Pay.
From layout to a fabricated board
The fabrication archive documents a later manufactured revision beyond the single-layer design. The recovered production archive contains top and bottom copper, two inner copper layers, solder masks, top silkscreen, board outline, and plated/non-plated drill files. The order verifies fabrication of the matching main board; it does not establish that the separate button module was included in that order or that this revision was the one used in the report’s earlier tests.
The two PCB layouts document component placement and physical routing; the circuit schematics above explain the electrical connections. Both views complement the conceptual framework.
The final model with the printed PCB
We developed the final model to complete the requirements for our design project. We had already demonstrated the working V1 prototype, but the panel asked us to improve its physical presentation. For the final revision, we had the PCB fabricated, eliminating the copper-wire jumpers used in V1, and improved the enclosure.
The photos below show the final model with its printed PCB inside the enclosure and the finished exterior, including the LCD, four operation buttons, and scanner opening.

The powered final model with its printed PCB inside the enclosure. This photo was shared in our project chat on August 14, 2022; the original capture date is unconfirmed.

A front view of the final model with its printed PCB, showing the LCD, physical buttons, and scanner opening. Shared in the August 2022 photo set.
Explore the project on GitHub
The project source is now available in two public repositories under my GitHub account:
| Repository | Contents |
|---|---|
| VPpexis/DesignProjectApp | Flutter/Dart mobile-app fork, with a README covering the architecture, legacy setup, and unfinished integrations. |
| VPpexis/plant-shop-firmware | Eight archived ATmega328P, ESP8266/NodeMCU, and LCD experiment sketches recovered from Google Drive, with configuration templates and source-provenance notes. |
The firmware repository keeps differently named and identically named-but-distinct Drive variants separate. Original credentials and private-key material were excluded, and the ESP8266 sketches use local configuration files with committed placeholder templates. The wireless module uses an ESP8266; the archive does not contain an ESP32 implementation.
These repositories preserve development work rather than a verified release of every feature tested in the report. The app still includes temporary plant data and placeholder inventory views. The firmware variants have documented limitations and have not been compiled or tested on hardware during archival. The repository READMEs explain the setup and remaining work.
Looking back
The photos give this project a physical history: a layout on a screen, a populated board, and an enclosure with an LCD and four buttons. The final report connects those objects to the customer and seller apps, the inventory rules, and the tests of the full workflow.
This design project gave me valuable hands-on experience in both hardware and software development. I learned a great deal about schematic design, PCB layout and fabrication, and testing, as well as how to bring the hardware and software together into a working system. Our report concluded that the design objectives were met in the documented tests. Looking back, the project represents both a completed team effort and an important part of my growth as a developer.
Sources
Based on our May 2022 final report, IoT-based Plant Guide, Inventory and Billing System for a Plant Shop, by Marie Krystine D. Anticuando, Claudee Khiarra R. Directo, and Van Philip M. Panugan, Mapúa University. Report references above use printed page numbers. This retrospective also draws on our project photos, the archived source code, my EasyEDA designs, and the matching July 2022 fabrication archive.