Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhamidjamil/serial_monitor_project
A Flask-based Serial Monitor for Orange Pi running Ubuntu, offering features similar to the Arduino IDE. Allows communication with connected devices like Arduino and ESP32 via serial ports, with the ability to change baud rates and ports dynamically. It also provides an API for interacting with available serial ports.
https://github.com/mhamidjamil/serial_monitor_project
Last synced: 1 day ago
JSON representation
A Flask-based Serial Monitor for Orange Pi running Ubuntu, offering features similar to the Arduino IDE. Allows communication with connected devices like Arduino and ESP32 via serial ports, with the ability to change baud rates and ports dynamically. It also provides an API for interacting with available serial ports.
- Host: GitHub
- URL: https://github.com/mhamidjamil/serial_monitor_project
- Owner: mhamidjamil
- Created: 2024-09-12T19:37:16.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-09-23T18:40:31.000Z (3 months ago)
- Last Synced: 2024-11-04T11:24:48.356Z (about 2 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serial Monitor for Orange Pi
This project provides a web-based serial monitor for communicating with devices like Arduino, ESP32, and other microcontrollers connected via USB to an Orange Pi running Ubuntu. It allows users to choose the serial port, change the baud rate, send and receive data, and optionally view the data in different colors for sent and received inputs. Additionally, it offers a RESTful API for interacting with serial ports.
## Features
- **Serial Monitor**: Communicate with connected devices via USB.
- **Baud Rate and Port Selection**: Dynamically change the baud rate and port through the web interface.
- **Auto Scroll**: Optionally enable/disable automatic scrolling in the terminal.
- **API**: Exposes APIs to check available ports, send data, and receive data.
- **Clear Input**: Automatically clears the input field after sending data.## Table of Contents
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [API Endpoints](#api-endpoints)
- [License](#license)## Requirements
- Orange Pi running Ubuntu
- Python 3.x
- Flask
- `pyserial` library for serial communication## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/serial-monitor.git
cd serial-monitor
```2. Install required dependencies:
```bash
pip install -r requirements.txt
```3. Run the Flask server:
```bash
python app.py
```4. Access the web interface in your browser:
```
http://localhost:5000
```## Usage
1. Connect your device (Arduino, ESP32, etc.) to the Orange Pi via USB.
2. Open the web interface and select the serial port and baud rate.
3. Use the input field to send data to the connected device, and the terminal will display received data.
4. Toggle auto-scroll if needed, and clear the input field after sending data.## API Endpoints
### Get Available Ports
**Endpoint**: `/api/get_ports`
**Method**: `GET`
**Description**: Fetches the list of available serial ports.**Example**:
```bash
curl http://localhost:5000/api/get_ports