Powerpoint Controller
The entire idea based on:
If you do not want to stand in front of the laptop during the presentation so you decdied to use a Powerpoint controller to switch between the slides.
The problem:
There is no such a device in your school or in your university :(
The solution:
Let make one
Project structure
Components & supplies :
- Arduino Uno
- HC-05 Board
- Jumper cables
Softwares & web application :
- MIT app inventor
- Arduino IDE
- PyCharm
Let develop the App
I used MIT app inventor, it is a web application integrated development environment originally provided by Google, and now maintained by the Massachusetts Institute of Technology.
You only need a Google accoount to develop the App
App Design
App Code
Setup the Bluetooth conection:
To show and to check if the connection is successful or not:
Sending Data if the connection is successful:
Let receive data from the App to the Arduino:
the circuit:
the code:
char datafromUser=0;
void setup(){
Serial.begin(9600);
}
void loop(){
if(Serial.available() > 0){
datafromUser=Serial.read();
Serial.println(datafromUser);
}
}
Let process the received data in python
First of all, we need to install to python libraries
pip install pyserial
and then
pip install PyAutoGUI
the code:
import serial
import pyautogui
ser = serial.Serial('COM5',9600)
ser.flushInput()
while True:
ser_data = ser.readline()
data = chr(ser_data[0])
print(data)
if data == "R":
pyautogui.press('right')
if data == "L":
pyautogui.press('left')
Happy Hack :)