An automated electric grid powered by a Raspberry Pi 4, which is controlled by a hybrid smart contract using Chainlink Keepers to automate turning off LEDs for electric bill expirations [with sound alerts using Half Life's VOX (Black Mesa Announcement System).
Chainlink API/pricefeeds are used to get real world electric rate API data from the National Renewable Energy Laboratory and convert it in terms of MATIC/USD on Polygon.
Bonus project: Chainlink VRFv2 lightshow, with events logged on zkSync with 1 WEI deposits.
Links:
Demo under 4 minutes: https://www.youtube.com/watch?v=1dXsqiq0Faw
Website hosted on Fleek [IPFS+Filecoin]: https://electrickeeper.on.fleek.co/#/
Presentation slides: https://docs.google.com/presentation/d/1cRC4lI-hXJ0S35Tm_BWMym4Wqitvkxw0HylvKsHX4m4/edit?usp=sharing
Hardware:
-Raspberry Pi 4 [Quantity: 1]
-LED (Red, Blue, Green, Yellow, Purple, Orange, Pink, White) [Quantity: 1 each]
-330 ohm resistor (current limiting safety) [Quantity: 8]
Bounties: Chainlink, Polygon, Coinbase, IPFS, Skynet
https://functions.chain.link/base-sepolia/178
https://docs.chain.link/data-feeds/price-feeds/addresses?network=base&page=1#base-sepolia-testnet
forge install smartcontractkit/chainlink-brownie-contracts --no-commit
forge install rari-capital/solmate --no-commit
forge create src/LightShowVRF.sol:LightShowVRF \
--private-key $devTestnetPrivateKey \
--rpc-url $baseSepoliaHTTPS \
--etherscan-api-key $basescanApiKey \
--verify
forge create src/ElectricKeeper.sol:ElectricKeeper \
--private-key $devTestnetPrivateKey \
--rpc-url $baseSepoliaHTTPS \
--etherscan-api-key $basescanApiKey \
--verify