Project Files of Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation
37cbd7578fd74bd9ab3cf7d722af7fd3.zip

Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation V1.0
Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 150 files (15.2 MB, 30.2 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- SRCSource code
- ZIPNested archive
Description
Cashless-NFC-Vending-Machine-Raspberry-Pi-5-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (Raspberry Pi 5, a PN532 NFC reader, an I2C LCD 20x4, two N20 encoder gear motors on an L9110S, an FC-51 drop beam, two buttons, the Laptop and Mobile WiFi Monitors), the Python program vending.py, every LIB and DLL, the TEPPi Python runtime and a README.
File Structure
20.7 KB229.3 KB205.4 KB78.5 KB39.5 KB13.1 KB17.4 KB109.9 KB60.5 KB171.9 KB3.3 MB34.3 KB620.8 KB36 KB169.8 KB628.1 KB99.3 KB65.3 KB4.8 MB4.1 MB80 B97.8 KB26.8 KB1.2 MB1.1 MB88.9 KB27.3 KB55.8 KB79.8 KB105.8 KB193.8 KB113.8 KB48.8 KB145.8 KB36.8 KB29.3 KB42.3 KB28.8 KB67.3 KB89.3 KB153.8 KB22.8 KB38.8 KB2.1 KB9.9 KB4.1 KB1.3 KB4.7 KB431 B2.5 KB17.5 KB283 B6.5 KB37.9 KB11.1 KB5.5 KB885 B13.6 KB9 KB878 B1.5 KB4 KB1004 B10 B110 B2.6 KB1.1 KB8.9 KB58.5 KB12.4 KB6.6 KB18.5 KB20.7 KB27.8 KB21.1 KB7.1 KB7.7 KB2.7 KB51.2 KB100.9 KB1.2 KB24.3 KB7.4 KB53.6 KB26.1 KB20.5 KB60.5 KB19.6 KB1.6 KB8.4 KB20.9 KB2.6 KB539 B1.4 KB9.7 KB2.8 KB21 B92 B7.9 KB264 B3.4 KB3.8 KB17.5 KB55.2 KB3.3 KB10.8 KB1.5 KB4.2 KB7.3 KB2.5 KB32.6 KB14.5 KB283 B17.4 KB257 B691 B14.5 KB12.8 KB3.6 KB1.7 KB37 KB418 B6.2 KB7 KB37.3 KB10.6 KB23.7 KB28.7 KB8.8 KB16.9 KB274 KB377 KB295 KB409 KB282.5 KB3.0 MB365 KB305.5 KB47.4 KB274 KB377 KB295 KB409 KB282.5 KB3.0 MB365 KB305.5 KB17.7 KB17.7 KB11.5 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation - Project V1.0
The Engineering Projects - www.TheEngineeringProjects.com
===============================================================================================================
IMPORTANT LINKS
The project tutorial (circuit, code, simulation results):
https://www.theengineeringprojects.com/2026/11/cashless-nfc-vending-machine-raspberry-pi-5-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
Raspberry Pi 5 board:
https://www.theengineeringprojects.com/2026/10/raspberry-pi-5-library-for-proteus.html
PN532 NFC module:
https://www.theengineeringprojects.com/2026/09/pn532-nfc-proteus-library.html
I2C LCD 20x4:
https://www.theengineeringprojects.com/2026/10/i2c-lcd-20x4-library-for-proteus-v1-0.html
L9110S motor driver:
https://www.theengineeringprojects.com/2026/10/l9110s-motor-driver-library-for-proteus-v1-0.html
N20 encoder gear motor:
https://www.theengineeringprojects.com/2026/10/n20-encoder-gear-motor-library-for-proteus-v1-0.html
IR obstacle sensor FC-51:
https://www.theengineeringprojects.com/2026/10/infrared-sensor-library-for-proteus-v2-0.html
Push button:
https://www.theengineeringprojects.com/2026/11/push-button-library-for-proteus.html
SMD resistor:
https://www.theengineeringprojects.com/2026/11/smd-resistor-library-for-proteus.html
Laptop WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/laptop-wifi-monitor-library-for-proteus.html
Mobile WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/mobile-wifi-monitor-library-for-proteus.html
Support our free work: https://www.theengineeringprojects.com/donate
FILE STRUCTURE
Pi-5-NFC-Vending-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPBUTTON.LIB 20.7 KB a part of the project -> LIBRARY folder
| |-- TEPFC51.LIB 229.3 KB a part of the project -> LIBRARY folder
| |-- TEPI2CLCD20X4.LIB 205.4 KB a part of the project -> LIBRARY folder
| |-- TEPL9110S.LIB 78.5 KB a part of the project -> LIBRARY folder
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPN20.LIB 17.4 KB a part of the project -> LIBRARY folder
| |-- TEPPN532.LIB 109.9 KB a part of the project -> LIBRARY folder
| |-- TEPRPI5.LIB 60.5 KB a part of the project -> LIBRARY folder
| |-- TEPSMDRES.LIB 171.9 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPBUTTON.DLL 274.0 KB a model -> MODELS folder
| |-- TEPFC51.DLL 377.0 KB a model -> MODELS folder
| |-- TEPL9110S.DLL 295.0 KB a model -> MODELS folder
| |-- TEPLCD.DLL 409.0 KB a model -> MODELS folder
| |-- TEPN20.DLL 282.5 KB a model -> MODELS folder
| |-- TEPNET.DLL 2.99 MB a model -> MODELS folder
| |-- TEPPN532.DLL 365.0 KB a model -> MODELS folder
| |-- TEPSMDRES.DLL 305.5 KB a model -> MODELS folder
| |-- TEPPi/python/ 17.54 MB Python 3.11 embeddable -> MODELS\TEPPi (33 files)
| |-- TEPPi/runtime/ 1.11 MB TEP Pi runtime, gpiozero -> MODELS\TEPPi (87 files)
|-- Proteus Simulation/
| |-- Pi-5-NFC-Vending.pdsprj 47.4 KB the project simulation
| |-- TEPBUTTON.DLL 274.0 KB copy of the model
| |-- TEPFC51.DLL 377.0 KB copy of the model
| |-- TEPL9110S.DLL 295.0 KB copy of the model
| |-- TEPLCD.DLL 409.0 KB copy of the model
| |-- TEPN20.DLL 282.5 KB copy of the model
| |-- TEPNET.DLL 2.99 MB copy of the model
| |-- TEPPN532.DLL 365.0 KB copy of the model
| |-- TEPSMDRES.DLL 305.5 KB copy of the model
| |-- vending.py 17.7 KB the program PI1 runs
|-- Python Code/
| |-- vending.py 17.7 KB the program (the same file)
|-- README.txt ~10.7 KB this file
Total: 30.15 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A two-slot vending machine paid with NFC cards: the money is stored on the card itself, as on campus, canteen and
transport cards. Tap a card, press A or B: the price is taken off the card, a spiral turns, the item drops.
* U1 a PN532 NFC reader (PN532ADVTEP, the pop-up panel: four cards to tap or hold) and LCD1 a 20x4 I2C LCD
(I2CLCD20X4BLUEADVTEP) on I2C1: SDA GPIO2 (pin 3), SCL GPIO3 (pin 5); the PN532 at 0x24, the LCD at 0x27, both
on 3V3.
* DRV1 an L9110S (L9110SADVTEP) on +6V: A-IA = GPIO5 (pin 29), B-IA = GPIO6 (pin 31), A-IB / B-IB on GND (a spiral
turns one way only); its outputs to M1 / M2, the spirals: N20 encoder gear motors (N20MOTORTEP, 6 V, 1:100),
encoder VCC 3V3, C1 to GPIO17 (pin 11) / GPIO27 (pin 13).
* U2 the drop beam across the delivery bin, an FC-51 (FC51ADVTEP): OUT to GPIO26 (pin 37), VCC 3V3.
* SW1 (A) / SW2 (B) (BUTTONGREENTEP) from 3V3 to GPIO23 (pin 16) / GPIO24 (pin 18), R1 / R2 10 kohm to GND.
* RASPBERRY PI 5 (PI1) runs vending.py on Ethernet at 192.168.1.51 (port 8000).
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.51:8000/.
The rules (at the top of the program):
* the wallet is block 4 (sector 1, key A FF FF FF FF FF FF) of a MIFARE Classic 1K card: 'TEPV', the credit in
cents, the number of purchases and a CRC32 of those 12 bytes with the card's UID; any other content = not a
wallet yet (TOP UP turns it into one), a wrong CRC = not accepted;
* A Cola 1.50, B Chips 1.00, 5 of each; a purchase: the price taken off the card first (written back), then the
spiral turned one turn at 30 % PWM - 700 encoder pulses (7 a motor turn x 100:1); the item must cross the beam
within 1.5 s, or the price goes back on the card; a spiral that makes no full turn in 3 s is refunded too;
* a button bounces: the edges of its release during a purchase do not count as a second press.
The pages:
/ the dashboard: the card and its credit, the stock, the sales, the events
/topup +5.00 on the card on the reader /restock 5 of each again /data JSON
No extra Python library: lgpio (in the TEPPi runtime and on Raspberry Pi OS), struct, zlib, threading, http.server.
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the program's times):
- 0.1 s "PN532 firmware 1.6, the LCD at 0x27"; the LCD: NFC VENDING, tap your card, A Cola 1.50 (5), B Chips 1.00 (5).
- CARD 1 (DE AD BE EF) held on the reader: 22.5 s "not a wallet yet" (block 4 held the text TEP PN532 CARD 1);
TOP UP from the laptop: 25.1 s credit 5.00 - block 4 = 54 45 50 56 F4 01 00 00 00 00 00 00 + the CRC.
- SW1 A: 29.2 s 1.50 taken off (3.50 left); one spiral turn in 0.91 s (the N20 at about 64 RPM, 1.5 V average);
the item through the beam: 30.3 s "A Cola dropped", 4 left.
- SW2 B, nothing in the beam: 34.4 s 1.00 taken off, 36.9 s "nothing crossed the beam - 1.00 refunded" (3.50).
- A, A: 2.00, 0.50 left; A again: 44.6 s "not enough credit: 0.50 on the card, A Cola costs 1.50" (one message).
- The card taken away (48.2 s) and back: 49.3 s "credit 0.50 (3 purchases)" - the credit is on the card.
- TOP UP from the phone: 53.5 s credit 5.50; SW2 B: 55.9 s "B Chips dropped", 4.50 left (block 4: C2 01 = 450,
4 purchases); RESTOCK from the laptop: 59.1 s. Sold 4, takings 5.50, refunds 1.
- 61 s of simulation in 411 s.
INSTALLATION
1. Close Proteus. Extract the WHOLE zip file, for example to your Desktop.
2. Copy the files from "Proteus Library Files" into the LIBRARY folder of Proteus, for example
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
3. Copy everything in "Proteus Model Files" - the DLL files and the TEPPi folder - into the MODELS folder (next
to LIBRARY).
4. Start Proteus. Press P in the schematic and search for RASPBERRY PI 5, PN532ADVTEP or N20MOTORTEP to check that
the parts are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\Pi-5-NFC-Vending.pdsprj". Keep vending.py and the DLL files beside it.
2. Press Play. The LCD shows NFC VENDING and the two products.
3. On the PN532's pop-up (U1) press Hold beside CARD 1: the LCD says it is not a wallet yet.
4. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1), press Go, then TOP UP: credit 5.00.
5. Press SW1 (A) or SW2 (B). While the spiral turns, put something in the FC-51's beam (its pop-up, 10 cm) and
take it out again: the item dropped. Leave the beam empty: refunded.
Your own program: edit vending.py.
PROPERTIES USED IN THIS PROJECT
PI1 RASPBERRY PI 5 PROGRAM=vending.py, ETHERNET=IN (192.168.1.51)
U1 PN532ADVTEP (I2C 0x24); LCD1 I2CLCD20X4BLUEADVTEP (0x27); DRV1 L9110SADVTEP (+6V)
M1 / M2 N20MOTORTEP; U2 FC51ADVTEP; SW1 / SW2 BUTTONGREENTEP; R1 / R2 10 kohm
PC1, MOB1 HOMEPAGE=http://192.168.1.51:8000/
TROUBLESHOOTING
* "NO PN532 at 0x24": SDA / SCL on GPIO2 / GPIO3, VCC / GND.
* "cannot read block 4 (key A)": the card's sector 1 keys were changed - use a new card or its key in KEY_A.
* A spiral does not turn: the L9110S needs +6V on VCC; A-IA / B-IA must reach GPIO5 / GPIO6.
* Every purchase is refunded: the FC-51's OUT must reach GPIO26 (LOW while something is in the beam).
* The terminal cannot start Python: the TEPPi folder is not in MODELS.
LICENCES
* The project, the program, the parts (LIB files) and the models (DLL files) are made by The Engineering Projects
and are free for learning and for your own projects. The models use only standard Windows libraries.
The C++ source code of the models is not included; the source code is not included for any model.
* TEPPi\python is the Python 3.11 Windows embeddable package (Python Software Foundation License); TEPPi\runtime
holds our TEP Pi runtime with gpiozero and colorzero (BSD licences) - their licence files are inside the folders.
* Proteus is a product of Labcenter Electronics and is not included. Raspberry Pi is a trademark of Raspberry Pi
Ltd; the PN532 and MIFARE are products and trademarks of NXP. This project is not made or endorsed by them. It is
a teaching model, not a payment system.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation V1.0this page
V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.
Installation7 steps
From the download to a working project, in order. The steps follow what the package contains.
You will need
- Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
- Pythonto build the source files into firmware
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click 37cbd7578fd74bd9ab3cf7d722af7fd3.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Pi-5-NFC-Vending-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPBUTTON.LIB, TEPFC51.LIB and TEPI2CLCD20X4.LIB and 7 more and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.
- 3
Add the simulation model
Copy TEPBUTTON.DLL, TEPFC51.DLL and TEPL9110S.DLL and 12 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.
- 4
Restart Proteus and place the component
Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.
- 5
Build the source code
Open vending.py, attr.py and color.py and 28 more in the compiler named in the tutorial (MikroC, Keil, MPLAB, Code Composer or the Arduino IDE) and build it to get the firmware.
- 6
Open the example simulation
Open Pi-5-NFC-Vending.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 7
Follow the tutorial
Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs8 questionsContact TEP
How do I download Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation V1.0?
Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.
What is inside the archive?
Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 150 files (15.2 MB, 30.2 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive. Open the File Structure tab for the full list of 150 files.
What should I do if the download does not start?
Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.
Is this file free?
Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.
How do I check that the file arrived complete?
Compare its SHA-256 with the one on this page, 4434c4843a9090857b91f512008fee3f4b6c9f4a9bd16348743aebdcecd8052b. In PowerShell run Get-FileHash "37cbd7578fd74bd9ab3cf7d722af7fd3.zip"; on macOS or Linux run shasum -a 256 "37cbd7578fd74bd9ab3cf7d722af7fd3.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.
Do I need WinRAR to open the ZIP file?
No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.
Where do I put the LIB and IDX files?
Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.
Which Proteus version does the library need?
The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- Raspberry PiCategory
- 0Comments
- ssyedzainnasirUploaded by
- 23 Nov 2026Uploaded at
4434c4843a9090857b91f512008fee3f4b6c9f4a9bd16348743aebdcecd8052b






















Comments
0