Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wojtekb30/discord-bot-pi-pico-display
Description in readme. Mostly demo of PC to Pi Pico USB Serial communication.
https://github.com/wojtekb30/discord-bot-pi-pico-display
discord-bot micropython pipico python3 serial-communication waveshare-eink
Last synced: 19 days ago
JSON representation
Description in readme. Mostly demo of PC to Pi Pico USB Serial communication.
- Host: GitHub
- URL: https://github.com/wojtekb30/discord-bot-pi-pico-display
- Owner: Wojtekb30
- License: gpl-3.0
- Created: 2022-12-16T16:44:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-16T21:33:40.000Z (about 2 years ago)
- Last Synced: 2024-11-13T13:18:58.316Z (about 2 months ago)
- Topics: discord-bot, micropython, pipico, python3, serial-communication, waveshare-eink
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# Discord-Bot-Pi-Pico-Display
This bot recieves messages from a Discord server and then displays them over USB on E-Ink screen connected to Raspberry Pi Pico.How it works and more details:
The Raspberry Pi Pico requires the 3-colour 7,5" 800x480 Waveshare Pico-ePaper-7.5-B. Pi Pico is connected to the computer via USB and runs its MicroPython program.
The Discord bot runs on the computer. When it recieves a message, it sends the text and message author over USB to the Pi Pico, which then displays the data on the E-Ink (and displays new messages and who written them in new rows).
This way you can track messages from the Discord server the bot is on.
This program is also a example/demo of USB Serial communication between computer and Pi Pico.
The WaveShare E-Ink is equipped with a reset button, you can use it to force clear the E-Ink screen and reset the Pico's program. This may crash the Discord bot on the PC though.
The Discord bot requires Token stored in a .env file. May require adapting to latest Discord API requirements.
If it's long, the text is split before sending and then reconnected into a single string on the Pico.
![image](https://user-images.githubusercontent.com/112283903/208149847-b6543520-6000-4bcf-acb2-a762e603fb13.png)