This project is an app displaying messages from Slack on microcontroller.
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.
- STM32CubeMX v4.27.0
- System Workbench for STM32 (Neon.3 Release v4.6.3)
- JetBrains PyCharm 2018.2.4
- JetBrains CLion 2018.2.6
- Display LCD 2x16 + converter I2C
- STM32F407G-DISC1
- 2x4 matrix Button Board
- Board with speaker and potentiometer
- LCD 16x2 with I2C module:
- PB9 - SDA
- PB8 - SCL
- 5V
- 3V
- GND
- SPEAKER WITH ADC AND DAC:
-
PA4 - DAC
-
5V
-
GND
-
PA6 - ADC
-
3V
-
GND
- BUTTONS:
- PB15 - GPIO_EXTI
- PB14 - GPIO_EXTI
- PB13 - GPIO_EXTI
- PB12 - GPIO_EXTI
- GND
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
- better (bigger) display
- sending messages to the slack
- wireless connection with server
- notification LED
The code which we used in the project was from:
MIT
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