Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brianlesko/baud-vader
- Owner: BrianLesko
- License: mit
- Created: 2023-12-10T21:58:12.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-17T23:15:42.000Z (10 months ago)
- Last Synced: 2024-01-18T06:06:39.587Z (10 months ago)
- Language: Python
- Homepage:
- Size: 7.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
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 IDEOnce 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
```
╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯
follow all of these or i will kick you