charry1729 / WeiGold

Robotic servo motor vending machine with smart contract for physical gold

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WeiGold: Fair Value Commodities Vending Machine

WeiGold ensures fair, transparent vending for physical gold, silver and oil
based on Chainlink's commodities pricefeed aggregators.

WeiGold Youtube presentation with demo [https://www.youtube.com/watch?v=nxwqg_YGh0c]:
Watch the video

WeiGold's structure:
Overview_Structure

Hardware used:
-Raspberry Pi 4 [Quantity: 1]
-S90 Servo Motors [Quantity: 3]
-A cardboard box [Quantity: 1]

Wiring diagram:
Wiring

Instructions:
1a.Install web3.js and pi-blaster.js with Node.js on wired Raspberry Pi 4
1b.web3.js: npm install web3
1c.pi-blaster.js: Build and install directly from source: https://github.com/sarfata/pi-blaster
2.Have the "HardwareServoControl.js" script running on the wired Raspberry Pi 4
3.Connect to site with Metamask on Rinkeby [make sure you have some free Rinkeby Ethereum to modify contract states]
(you can create your own custom contract by redeploying on Remix and changing address and ABI for FrontEnd and Servo scripts)
4.Interact with the contract and watch the servos move based on contract State!

Contract source code published at deployed Rinkeby address with Etherscan:
https://rinkeby.etherscan.io/address/0x44f3e9288682385e08433db8e95b2aab9075dd83#code

Live site on IPFS+Filecoin with Fleek [if IPFS gateway goes down, use another IPFS gateway, use Github pages [https://marcuswentz.github.io/WeiGold/index.html?] or run locally]:
https://weigold.on.fleek.co/index.html?

Solo project by Marcus Wentz.

Chainlink Hackathon Fall 2021.

About

Robotic servo motor vending machine with smart contract for physical gold


Languages

Language:JavaScript 61.2%Language:Solidity 20.5%Language:HTML 18.3%