From 46d7afd353c585aa455414249ad58bc7ed0d9c45 Mon Sep 17 00:00:00 2001 From: KasparByrne <103092736+KasparByrne@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:44:33 +1000 Subject: [PATCH] Removed BLE discovery from fan driver -Just commented out the BLE discovery process in the fan driver -This process was disrupting other BLE connection processes -The process was likely not necessary --- Drivers/fan/fan.py | 2 +- Drivers/pico_remote/readme.md | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/Drivers/fan/fan.py b/Drivers/fan/fan.py index 7a7efe11..92321bcc 100755 --- a/Drivers/fan/fan.py +++ b/Drivers/fan/fan.py @@ -234,7 +234,7 @@ def main(): global manager manager = AnyDeviceManager(adapter_name=adapter_name) manager.prefix=alias_prefix - manager.start_discovery() + #manager.start_discovery() manager.run() except KeyboardInterrupt: pass diff --git a/Drivers/pico_remote/readme.md b/Drivers/pico_remote/readme.md index e69de29b..91f94506 100644 --- a/Drivers/pico_remote/readme.md +++ b/Drivers/pico_remote/readme.md @@ -0,0 +1,25 @@ +# Description: +This device interacts with the wahoo kickr and climbr via the Raspberry Pi 000001, located in the IoT lab, building M.102. +Its intention is to manipulate the hardware in real-time without the need for running or accessing third-party software such as the mobile app, VR, or other interfaces. +The purpose of this is that it allows users to simply use the bike with a simple interface. + +# How to Run: +- Kickr script (/iot/scripts/./start_kickr.sh) must be executed and successful connection between Pi and Kickr must be established for this device to work as intended. +- Turn on remote device by pushing the white button on the power regulator on the top of the breadboard +- BT module should be flashing red while waiting for pairing. +- Navigate to iot/Drivers/pico_remote and execute the script via 'python3 pico_bt_handler.py' to run the handler. +- successful connection is determined by the HC-06 module turning into a solid red light. +- Upon successful connection between the HC-06 Bluetooth module and the Raspberry pi, you may now interact with the hardware via the push buttons: + +### Note: You must press and hold the selected button in order to influence hardware. + +# Buttons: +### Button 1: increase resistance +### Button 2: decrease resistance +### Button 3: increase incline +### Button 4: decrease incline + +![Screenshot 2023-09-24 142627](https://github.com/redbackoperations/iot/assets/69894063/d3f90db2-0b68-41e7-b8c1-3ca8d65c8ad4) +![WIN_20230924_12_03_43_Pro](https://github.com/redbackoperations/iot/assets/69894063/0cd708ff-146f-48b0-ac11-f858ef215387) +![WIN_20230924_12_03_08_Pro](https://github.com/redbackoperations/iot/assets/69894063/91f63b5b-432b-4208-a054-40ffb96bd527) +