Skip to content

Adafruit MatrixPortal M4 project to display scrolling text on an LED matrix with messages fetched from a Telegram bot written in CircuitPython

License

Notifications You must be signed in to change notification settings

Fr4nkFletcher/MatrixPortal_Telegram_Scroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MatrixPortal Telegram Scroller

Adafruit MatrixPortal M4 project to display scrolling text on an LED matrix with messages fetched from a Telegram bot, written in CircuitPython.

Scrolling text on LED matrix

Overview

This project uses the Adafruit MatrixPortal M4 to display scrolling text on a 64x32 RGB LED matrix. The text messages are fetched from a Telegram bot, allowing for dynamic updates to the displayed message.

Scrolling text on LED matrix

Hardware Required

  • Adafruit MatrixPortal M4
  • 64x32 RGB LED Matrix (HUB75 display used in this project)
  • Wi-Fi with internet access

Getting Started

Hardware Setup

  1. Connect the Adafruit MatrixPortal M4 to the 64x32 RGB LED matrix.
  2. Power the MatrixPortal M4 using a USB-C cable connected to your computer or a power source.

Software Setup

  1. Install CircuitPython on the MatrixPortal M4.

  2. Download the required CircuitPython libraries from the Adafruit CircuitPython Bundle and copy them to the lib folder on your MatrixPortal M4. (all needed libraries included in this repo)

  3. Create a settings.toml file in the root of your CIRCUITPY drive with your Wi-Fi credentials:

    CIRCUITPY_WIFI_SSID = "YOUR_SSID"
    CIRCUITPY_WIFI_PASSWORD = "YOUR_PASSWORD"

Setting Up Telegram

These are the steps you need to get a bot token to use in your project:

  1. Install Telegram from your phone's app store (you may need to set up the account on your phone initially). Once logged in, you can install the desktop versions or use the Telegram web interface.
  2. Inside Telegram, search for a user called "botfather" and open a chat.
  3. Click the "/newbot" option or type that message in (exactly as shown).
  4. Follow the on-screen instructions to create your bot.
  5. You will receive a message with the token. Copy this token into your code.
  6. Click the link at the top of the message to open the chat with the new bot. There will be a "/start" button, click that to activate the bot.

Code Deployment

  1. Copy the code.py file to the root directory of your CIRCUITPY drive.

Usage

  1. Power on the MatrixPortal M4.
  2. The device will connect to the specified Wi-Fi network.
  3. The latest message from the Telegram bot will be displayed as scrolling text on the LED matrix.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

About

Adafruit MatrixPortal M4 project to display scrolling text on an LED matrix with messages fetched from a Telegram bot written in CircuitPython

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages