Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brianlesko/baud-vader

Using a low code UI, this code implements communication with an Arduino over the serial port. Python on both ends
https://github.com/brianlesko/baud-vader

Last synced: about 20 hours ago
JSON representation

Using a low code UI, this code implements communication with an Arduino over the serial port. Python on both ends

Awesome Lists containing this project

README

        

# Baud Vader
This code implements wired serial communication between two devices - Just make sure they have the same baud rate.

To recreate what ive done here you'll need a laptop, an arduino, and a usb C cable.

![Preview](docs/preview.png)

 

## Local Computer Dependencies

This code uses the following libraries:
- `pyserial`: For handling system resources, ports, etc
- `streamlit`: For creating the user interface

 

## Run this demo yourself

To run this demo yourself, you must have an arduino.

You can choose to run one of the following codes on the arduino:
- `MicroPython`: from micropython-serial-listener upload main.py to the board
- `Arduino C++`: from arduino-serial-listener upload the sketch using the arduino IDE

Once the arduino is running one of the above programs, is plugged into your computer, and the port is correct, you can send messages to your arduino in multiple ways:
- `streamlit app`: in the terminal: streamlit run app.py
- `python-serial-sender`: your feedback will be in the terminal
- `Arduino IDE`
- `Arduino Lab for Micropython`
- `VS Code arduino extension`

 

## How it Works

The app as follows:
1. The python script app.py is run by Streamlit in a loop, updating when you interact with the HTML page
2. The arduino waits for a message
2. Your message is sent to the arduino over USB C serial communication
3. The arduino receives your message and responds

 

## Topics
```
Python | Arduino | Serial Communication
External device | decode bytes | communication | custom classes
Self taught coding | Mechanical engineer | Robotics engineer
Brian Lesko | Brian Joseph Lesko
```
 


 

╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯

 

X Logo             GitHub             LinkedIn

follow all of these or i will kick you