{"id":20477335,"url":"https://github.com/harbaum/rpi-ble-toy-control","last_synced_at":"2025-04-13T12:51:42.837Z","repository":{"id":89283579,"uuid":"101977042","full_name":"harbaum/RPI-BLE-toy-control","owner":"harbaum","description":"Control lego and fischertechnik controllers with the R-Pi via bluetooth LE","archived":false,"fork":false,"pushed_at":"2019-11-24T14:24:42.000Z","size":181,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T03:51:23.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harbaum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-31T08:17:25.000Z","updated_at":"2024-01-01T18:46:54.000Z","dependencies_parsed_at":"2023-06-25T22:55:44.915Z","dependency_job_id":null,"html_url":"https://github.com/harbaum/RPI-BLE-toy-control","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harbaum%2FRPI-BLE-toy-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harbaum%2FRPI-BLE-toy-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harbaum%2FRPI-BLE-toy-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harbaum%2FRPI-BLE-toy-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harbaum","download_url":"https://codeload.github.com/harbaum/RPI-BLE-toy-control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717258,"owners_count":21150388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T15:27:35.819Z","updated_at":"2025-04-13T12:51:42.826Z","avatar_url":"https://github.com/harbaum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bluetooth construction toys BLE examples\n\nThis repository contains examples how to connect a\nRaspberry Pi or any Linux PC with the fischertechnik\nbluetooth controllers or the Lego Wedo 2.0, Boost or later\ncontrollers.\n\nPart of this was published in\n[c't 18/2017 S. 144ff](https://www.heise.de/ct/ausgabe/2017-18-Spielzeug-Roboter-mit-dem-Raspberry-Pi-steuern-3798159.html).\n\n## Shell scripts\n\nThe shell scripts don't require any further installations. They\nrun on any Raspbian Jessie standard installation and later or\nany Debian or Ubuntu PC.\n\n- [`batterie.sh`](batterie.sh) is a simple shell script that\n  searches for BLE devicesm connects to them and tries to\n  read the battery level.\n\n- [`ft_bt_smart_led_blink.sh`](ft_bt_smart_led_blink.sh) is a bash\n  shell script which searches for the fischertechnik BT-Smart-Controller,\n  connects to it and toggles between the orange and blue interal\n  LEDs of that controller. Root permissions are required for the\n  automatic device detection. If a bluetooth MAC address is provided\n  on the command line then regular permissions are sufficient.\n\n- [`ft_bt_remote_led_blink.sh`](ft_bt_remote_led_blink.sh) is a bash\n  shell script which searches for the fischertechnik BT-Control-Receiver,\n  connects to it and toggles between the orange and blue interal\n  LEDs of that controller. Root permissions are required for the\n  automatic device detection. If a bluetooth MAC address is provided\n  on the command line then regular permissions are sufficient.\n\n- [`lego_wedo_led_blink.sh`](lego_wedo_led_blink.sh) toggles the\n  LED of the WeDo2.0 Hub between orange and blue. If the script\n  is being invoked without parameters it will automatically search\n  for matching devices. This requires root permissions. If a bluetooth\n  MAC address is given as a parameter then it will be used instead\n  and no root permissions are required.\n\n- [`lego_boost_led_blink.sh`](lego_boost_led_blink.sh) toggles the\n  LED of the Lego Boost Hub between orange and blue. If the script\n  is being invoked without parameters it will automatically search\n  for matching devices. This requires root permissions. If a bluetooth\n  MAC address is given as a parameter then it will be used instead\n  and no root permissions are required.\n\n## Python scripts\n\nThe pythons scripts need additional packages which are usually\nnot installed by default. The python gatt package is required\nand can e.g. be installed like this:\n\n```\n$ pip3 search gatt\ngatt (0.2.7)               - Bluetooth GATT SDK for Python\njumper-ble-logger (0.1.3)  - Jumper GATT proxy for logging BLE traffic\npygatt (4.0.3)             - Python Bluetooth LE (Low Energy) and GATT Library\nvernierpygatt (3.2.0)      - Python Bluetooth LE (Low Energy) and GATT Library\n$ pip3 install gatt\n...\n\n```\n\nOn older Linux version the script `[python-gatt-install.sh](python-gatt-install.sh)`\nmay help setting up bluetooth/python/gatt.\n\n- [`ft_karussell.py`](ft_karussell.py) controls the caroussell\n  model from the BT-Smart-Beginner-Set. On button press the\n  caroussell starts, slowly speeds up, runs for 30 seconds\n  and finally slows down.\n\n- [`lego_wed_dino.py`](lego_wedo_dino.py) controls the dinosaur\n  from the Lego WeDo 2.0 kit. The motions sensor is being evaluated\n  to colorize the LED. Additionally if something is detected right\n  in front of the sensor then the motor is being run.\n\n- [`ft_rc_racer.py`](ft_rc_racer.py) controls the car from the\n  fischertechnik BT-Racing-Set. The car speeds up 2 seconds,\n  turns 2 seconds and slows down 2 seconds.\n\n- [`lego_boost_color_echo.py`](lego_boost_color_echo.py) reads the\n  value of the color sensor and \"mirrors\" the color onto the\n  boosts internal LED.\n\n- [`lego_hub_monitor.py`](lego_hub_monitor.py) processes all known\n  signals and events of the Lego Boost, the Lego Hub NO.4, the\n  Technic Hub or later.\n\n  All known peripherals are supported incl. the sensors from\n  the WeDo 2.0 set.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharbaum%2Frpi-ble-toy-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharbaum%2Frpi-ble-toy-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharbaum%2Frpi-ble-toy-control/lists"}