Skip to content

Latest commit

 

History

History
89 lines (56 loc) · 3.09 KB

README.md

File metadata and controls

89 lines (56 loc) · 3.09 KB

Obo Blocks

Obo Blocks

Scratch Blocks to Python Converter with Pydiode Evaluation

Introduction

Obo Blocks is a project aimed at easing the transition from visual programming to text-based programming, specifically targeting students and teachers at Roboticgen Academy. This tool enables users to convert programs written in Scratch Blocks into Python code and provides code interpretation using Pydiode. Additionally, it supports micropython extensions for running Python code directly within the web interface.

Features

  1. Block-to-Code Conversion - Convert Scratch Blocks programs into equivalent Python code.
  2. Code Modification - Modify generated python code without Backward Compatibility (python to scratch conversion)
  3. Code Evaluation - Interpret Python code within the platform using Pydiode for instant feedback.
  4. Micropython Extension - Emulate underlaying hardware for to run micropython code with in platform(With Completion of Coffee Code Research Project)
  5. Web Driven Code Uploader - Upload generated Code Snippet to generated Code Snippet to ESP32

Components

  • Blockly Workspace : Interface for building programs using Scratch Blocks.
  • Code Converter : Converts Scratch Blocks programs into Python code.
  • Code Interpreter : Executes Python code within the browser environment.
  • Code Uploader : Uploads generated code to ESP32 Development Board (MagicBit).
  • Error Handler : Handles errors and provides informative messages to users.

Diagram of the components and their communication is shown below:

Component Communication

User Interfaces

Obo blocks will only interact with users on desktop-related devices.

  • Blockly Workspace: Interface for building programs using Scratch Blocks.
  • Code Viewer : Display Python code generated from Scratch Blocks and with read-only
  • Output Console: Display execution output and errors when evaluating Python code.

Installation

Clone this repository using the following command:

git clone https://github.com/yasanthaniroshan/Obo-blocks.git

Install dependencies:

npm install

Serve the frontend using:

npm run dev

Usage

You can access the Obo Blocks platform by opening oboblocks in a web browser.

Documentation

For detailed documentation, refer to the docs directory.

Dependencies

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is under Roboticgen Academy. Roboticgen Academy

Contributors

@yasanthaniroshan

@SeniruD