Skip to content

App displaying messages from Slack on STM32 microcontroller

Notifications You must be signed in to change notification settings

matostr98/2019_SlackDisplay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2019_SlackDisplay

Overview

This project is an app displaying messages from Slack on microcontroller.

Description

App is divided into two parts.

One of them is Slack-Bot that is a server side of an app. Slack-Bot is written in Python with SlackAPI and launched on PC. It downloads channels and messages from Slack (using API) and sends it to microcontroller via USB. It also checks in another thread if some new message or channel hasn’t appeared.

The other one is microcontroller written in C. Microcontroller gets messages from Slack-Bot and shows them on LCD 16x2 display connected via I2C bus. There is implemented navigation with four buttons: up, down, ok, main menu.

61930626_2346513172289692_3868206769805197312_n

Tools

  1. STM32CubeMX v4.27.0
  2. System Workbench for STM32 (Neon.3 Release v4.6.3)
  3. JetBrains PyCharm 2018.2.4
  4. JetBrains CLion 2018.2.6

Hardware

  • Display LCD 2x16 + converter I2C
  • STM32F407G-DISC1
  • 2x4 matrix Button Board
  • Board with speaker and potentiometer

How to connect peripheral devices

  1. LCD 16x2 with I2C module:
  • PB9 - SDA
  • PB8 - SCL
  • 5V
  • 3V
  • GND
  1. SPEAKER WITH ADC AND DAC:
  • PA4 - DAC

  • 5V

  • GND

  • PA6 - ADC

  • 3V

  • GND

  1. BUTTONS:
  • PB15 - GPIO_EXTI
  • PB14 - GPIO_EXTI
  • PB13 - GPIO_EXTI
  • PB12 - GPIO_EXTI
  • GND

How to compile & run

Firstly open the vcom-test.ioc file with STM32CubeMX and generate code. Connect microcontroller and PC with Windows using miniUSB-B and microUSB-B cables. Then use IDE to send code to microcontroller via miniUSB-B cable using ST-Link firmware. Then launch server with command:

python slackbot.py

Future improvements

  • better (bigger) display
  • sending messages to the slack
  • wireless connection with server
  • notification LED

Attributions

The code which we used in the project was from:

License

MIT

Credits:

Mateusz Ostrowski
Adam Przywuski
The project was conducted during the Microprocessor Lab course held by the Institute of Control and Information Engineering, Poznan University of Technology. Supervisor: Tomasz Mańkowski

About

App displaying messages from Slack on STM32 microcontroller

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.5%
  • Python 3.5%