Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianlesko/pi-pico-serial
communicate with a raspberry pi pico from a computer over wired connection
https://github.com/brianlesko/pi-pico-serial
Last synced: about 20 hours ago
JSON representation
communicate with a raspberry pi pico from a computer over wired connection
- Host: GitHub
- URL: https://github.com/brianlesko/pi-pico-serial
- Owner: BrianLesko
- Created: 2024-08-28T22:07:00.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T00:21:13.000Z (2 months ago)
- Last Synced: 2024-08-29T01:24:56.803Z (2 months ago)
- Language: CMake
- Size: 26.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Pi Pico Serial communication
This repository holds c code for a raspberry pi pico, a microcontroller for sending and receiving serial communication over usb. Flash the pi pico and it will print "hello world" over the usb serial interface. It will print the received buffer after "end" is received over the same serial port.This is useful for automating hardware components as the pi pico is very good at interfacing with electronics. You can easily create a python program to send messages to the pi pico using the 'pyserial' library .
## Hardware Dependencies
1. Pi Pico
2. Host computer## Usage
1. Clone this repository
```
git clone ...
```
2. Navigate to the project directory
3. Build the project using CMake
4. Connect the Raspberry Pi Pico to your computer via USB
5. Flash the compiled program to the Raspberry Pi Pico
6. Open a serial terminal on your computer (e.g., VScode serial plugin) and connect to the Raspberry Pi Pico at the specified baud rate (e.g., 115200)
7. The program will start running, and you should see "Hello, world!" messages printed every second
8. To interact with the program, type input into the serial terminal. The program will check for the "end" string and print the received input up to that point
## Repository Structure
```
pi-pico-serial/
├── CMakeLists.txt # CMake configuration file for building the project
├── build/ # Directory for build artifacts
├── docs/ # Documentation and related files
├── hello_serial.c # Source code for the serial communication example
├── pico_sdk_import.cmake # CMake script to import the Pico SDK
└── readme.md # Project description and instructions
```
## Topics
```
## Topics
```
C | USB | Serial Communication | Raspberry Pi Pico
Baud Rate | Input Handling | Embedded Systems | Microcontroller
UART | stdio | Optimization | Memory Efficiency
```
```
╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯
follow all of these for pizza :)