Imagine you have an automated beer machine, a bit like an automatic coffee machine, but for beer.
This machine uses specific technologies like RFID to recognize who is actually trying to get a drink. If you are known in our system, your name will be display on the screen once the data processing has recognized your badge ID.
How does it work?First of all, you will have to register your equipment on The Things Network.
The first step is to create an account on their website. Next, access the console and select the "Gateways" option. Click on "Register Gateway" and fill in the information form, choose a frequency that corresponds to your region, select the "I'm using the legacy packet forwarder" option, and validate your registration. Your equipment should now be registered and ready to be used on The Things Network.
It's only once you've registered your equipment that you'll find the unique keys that will allow your device to send its information over the TTN network.
So, at the start of your program, after following The Things Network tutorials, you will need to enter your credentials/keys to identify your device on your network.
const char *appEui = "XXXXXXXXXXXXXX";
const char *appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
To allow your arduino to use the RFID reader, you will need to identify which PIN is used.
#define RST_PIN 9
#define SS_PIN 10
MFRC522 mfrc522(SS_PIN, RST_PIN);
Same thing for the OLED Screen
LiquidCrystal_I2C lcd(0x27, 16, 2);
Then, it start with the RFID badge reader. Each badge has a unique code that is sent to an online platform called "The Things Network". This platform then relays the code to a virtual machine, a computer server that contains a database and a Node-RED.
The database stores information about each badge, such as the owner's bank balance, his name,.... If a badge is scanned for the first time, the server does not recognize the code and sends a message back to The Things Network saying "Unknown". This message is then relayed to the beer machine, which will not perform the service and will display "Unknow Badge " on the OLED screen.
If the badge is recognized, the server checks the badge owner's bank balance. If the balance is less than €4 (the cost of a beer), the server sends the message "Insufficient balance" to The Things Network, which sends it back to the beer machine. In this case, the beer will not be served.
However, if the balance is greater than or equal to €4, the server sends the message "Balance sufficient". At the same time, it updates the database by deducting €4 from the badge owner's balance. This message is sent back to the beer machine via The Things Network.
Since the badge is known, the customer's first and last names are displayed on the OLED screen of the machine. Then, if the beer machine receive the message "Balance sufficient", the pump is activated to serve the beer, else the system inform you that you don't have enough money on your account.
To administrate the system, you (administrator) have an access to this Web-Site
Using the framework CodeIgniter 4, based on the MVC (Models Views Controllers) architecture, we have designed and implemented this website that serves as an administrative platform. This platform is intended for both administrators and users.
As an administrator, you will benefit from a dynamic and interactive dashboard. This will give you a real-time view of your machine's performance, allowing you to closely monitor the gains generated. In addition, this dashboard provides visibility into the latest consumers and the current state of their balance. This allows you to analyze consumption trends and adapt your strategies accordingly.
Furthermore, users have full access to their profile page. They can not only modify their personal information but also check their balance at any time. A summary of their activities is also available, offering them complete transparency over their transactions and their use of the platform.
Another advantage for users is the ability to recharge their bank balance directly via their profile page. The process is simple and secure, carried out through a transfer. This makes the user experience more seamless, eliminating the need to travel or use other platforms to carry out transactions.
In sum, our website, based on the MVC model, offers a comprehensive solution for administrators and users. With robust features and an intuitive user interface, the platform ensures an optimal level of management and convenience for all users.
Advantages :As main advantages, we have the following ideas:
- Ease of use: The use of an RFID badge automates the beer distribution process, making the experience more user-friendly and accessible.
- Precise measurement control: An autonomous beer dispenser can be programmed to distribute exact quantities of beer for each use, ensuring consistent servings and avoiding wastage.
- Speed and efficiency: Automating the distribution process enables quick beverage service, reducing waiting times and improving throughput.
- Simplified stock management: An autonomous beer dispenser can have an integrated inventory tracking system, making it easy to monitor the remaining beer quantity, forecast reorders, and minimize stock shortages.
As main areas for improvement, we have the following ideas:
- Addition of a double verification system with a flow meter and a scale to ensure the perfect serving accuracy for the requested dosage.
- Integration of a connection to a professional beer dispenser, allowing the use of beer kegs and CO2 cartridges to serve authentic bar-quality beers.
- Easy and quick conversion of the beer dispenser into a soft drinks dispenser, with free soft drinks for individuals committed to not consuming alcohol.
- Implementation of a feature to allow users to credit their personal RFID badge via a website.
The ultimate goal of our product would not be to offer a replacement for bartenders but rather to provide them with a support tool that would help lighten their workload. In the case of our soft drink example, it would be to offer a free soft drink fountain for designated drivers at student parties. All of this while remaining an affordable and versatile product due to its adaptability for both beer and soft drinks.
To Create the box, we used the basedBox model and it is 29cm high, 21cm wide, and 15cm deep.
To globally synthesize the entire process for the functioning of this beer tap, here is the Poster for the Day of Project
Comments
Please log in or sign up to comment.