Full Story @
Thai Chana on ThaichainAs part of M5Stack COVID-19 Contest, I came up with fun idea to use blockchain and IoT to track people who checking in any places.
What’s Thai ChanaAs in Thai word, “Chana” is winning, Thai Chana meaning is Thailand will win over COVID-19.
Thai Chana is a mobile platform used in Thailand to help authority tracking who has visited places throughout Thailand. Usage is simple as once you have done registration, you just open your camera on mobile phone and scan QR code at stores before your visit to check-in / check-out. So when authority has detected patients with COVID-19, they can track down where they have been visited and track whoever has been in closed contact with them and called to be tested for COVID-19
Thai Chana is now less ChanaAt first launch on May 2020, Thai Chana has been mandated by Thailand government to be a must-do procedure before you can enter any places. However, as COVID-19 cases are less detected in Thailand, people are neglected using of Thai Chana to check-in. Some pretend to scan the QR code but never check-in any information (me too.. 😅)
So I came up with fun idea, what if we give away token as a reward for people who check-in and they can store those tokens in their wallet and redeem for and rewards Store would be given.
Ok, What’s about ThaichainThaichain, https://thaichain.io/, is the first Thailand public Blockchain network, built on POA (Proof of Authority). So unlike Ethereum, POW (Proof of Work), it does not required miners to validate blocks for rewards. It has validators who help validate blocks. Now, it has 8 official validators in the network.
So unlike Ethereum, Thaichain gives faster transaction speed compared to Ethereum.
Building of Thai Chana on ThaichainAPP URL: https://liff.line.me/1653950823-bGVd8D99Hardware ComponentsM5Stack ESP32 Basic Core IoT Development Kit
M5Stack M5 Faces bottom
M5Stack RFID Faces
M5Stack GPS Module with External AntennaSoftware
VUEjs
Nodejs
Web3js
Arduino IDE
📷
Build on top of the DEFI wallet, I added a function called “Check-In”. It can scan QR Code which generated on M5Stack devices. Once it get QR Code information and geolocation from GPS modules attached to the M5Stack.
Smart Contracts are
1. ERC20 Contract for ‘IceZ’ Tokens, 0x2d040FDC5f20EB1F705Def07d8E3f5715d09D9B3
2. ThaiChana Contract for set check-in geolocation information and initiate transfer token from merchant to the user wallet, 0x33E56f0a94E7a725C5Dd362d501e8A0bc914a8f8
Comments