This paper illustrates the integration of BlocklyDuino with Arduino and the Polygon blockchain, showcasing an IoT project that collects sensor data. Challenges primarily revolve around synchronizing data with blockchain technology. The authors detail the steps involved, such as building a smart contract, leveraging the Polygon SDK for data interaction, and using Blockly for creating a user-friendly programming interface. This approach not only enhances computational thinking but also highlights the necessity for accessible educational tools in blockchain technology.
Our paper demonstrates the use of BlocklyDuino to control an Arduino board and obtain sensor data, with the primary challenge being to synchronize this data onto the blockchain.
صUsing a combination of Blockly, BlocklyDuino, Polygon SDK, and an Arduino board to create an IoT project that interacts with the blockchain offers a new framework for education.
Establishing a connection between the Polygon SDK and a smart contract involves setting up a provider and a contract instance, which is crucial for data synchronization.
Our JavaScript code sends data to the smart contract whenever our IoT device collects new data, ensuring data is stored on the blockchain for further analysis.
Collection
[
|
...
]