All Projects → lemio → Esp32_ble_wedo

lemio / Esp32_ble_wedo

A library to control LEGO wedo 2.0 with the ESP32 through Bluetooth low energy

Projects that are alternatives of or similar to Esp32 ble wedo

Esp32 Ble Keyboard
Bluetooth LE Keyboard library for the ESP32 (Arduino IDE compatible)
Stars: ✭ 533 (+3231.25%)
Mutual labels:  arduino, esp32, ble
Esp32 Ble Mouse
Bluetooth LE Mouse library for the ESP32 (Arduino IDE compatible)
Stars: ✭ 180 (+1025%)
Mutual labels:  arduino, esp32, ble
Web Bluetooth Terminal
Progressive Web Application for serial communication with your own Bluetooth Low Energy (Smart) devices
Stars: ✭ 130 (+712.5%)
Mutual labels:  arduino, ble, bluetooth-low-energy
Watchy
Watchy - An Open Source E-Ink Smartwatch
Stars: ✭ 469 (+2831.25%)
Mutual labels:  arduino, esp32, bluetooth-low-energy
Esp32 ble arduino
The library source for the ESP32 BLE support for Arduino.
Stars: ✭ 552 (+3350%)
Mutual labels:  arduino, esp32, ble
Blinker Library
An IoT Solution,Blinker library for embedded hardware. Works with Arduino, ESP8266, ESP32.
Stars: ✭ 1,095 (+6743.75%)
Mutual labels:  arduino, esp32, ble
Esp32 Blecollector
ᛡᛒ BLE Scanner + Data persistence on SD Card for M5Stack, Odroid-Go, ESP32-Wrover-Kit and other models
Stars: ✭ 145 (+806.25%)
Mutual labels:  arduino, esp32, ble
Nimble Arduino
A fork of the NimBLE library structured for compilation with Ardruino, designed for use with ESP32.
Stars: ✭ 108 (+575%)
Mutual labels:  esp32, ble, bluetooth-low-energy
Arduino-BLE-MIDI
MIDI over Bluetooth Low Energy (BLE-MIDI) 1.0 for Arduino
Stars: ✭ 133 (+731.25%)
Mutual labels:  esp32, ble, bluetooth-low-energy
ESP32BleAdvertise
Simple library for BLE advertise using ESP32 in Arduino
Stars: ✭ 39 (+143.75%)
Mutual labels:  esp32, ble, bluetooth-low-energy
Blinker Doc
blinker中文文档
Stars: ✭ 139 (+768.75%)
Mutual labels:  arduino, esp32, ble
Blynk Library
Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc.
Stars: ✭ 3,305 (+20556.25%)
Mutual labels:  arduino, esp32, bluetooth-low-energy
Openmqttgateway
MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility, SMS & LORA.
Stars: ✭ 2,413 (+14981.25%)
Mutual labels:  arduino, esp32, ble
ESP32 BLE OTA Arduino
OTA update on ESP32 via BLE
Stars: ✭ 41 (+156.25%)
Mutual labels:  esp32, ble, bluetooth-low-energy
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+5025%)
Mutual labels:  arduino, esp32, ble
Gort
Command Line Interface (CLI) for RobotOps
Stars: ✭ 425 (+2556.25%)
Mutual labels:  arduino, bluetooth-low-energy
Android Scanner Compat Library
A compat library for Bluetooth Low Energy scanning on Android.
Stars: ✭ 462 (+2787.5%)
Mutual labels:  ble, bluetooth-low-energy
Esp32 mouse keyboard
ESP32 implementation for HID over GATT Keyboard and Mouse (Bluetooth Low Energy). Including serial API for external modules (similar to Adafruit EZKey HID)
Stars: ✭ 420 (+2525%)
Mutual labels:  esp32, ble
Platformio Atom Ide
PlatformIO IDE for Atom: The next generation integrated development environment for IoT
Stars: ✭ 475 (+2868.75%)
Mutual labels:  arduino, esp32
Android Dfu Library
A library with DFU feature for Android 4.3+.
Stars: ✭ 532 (+3225%)
Mutual labels:  ble, bluetooth-low-energy

esp32_ble_wedo

A library to control LEGO wedo with the ESP32 through Bluetooth low energy

myWedo(char* name)

Connect to a WEDO2.0 that is advertising with the defined name.

myWedo.connect()

Start connecting to the WEDO2.0 (do this after the wifi is initialized, if you're using wifi)

myWedo.writeMotor(uint8_t wedo_port,int wedo_speed)

Writes a certain speed (-100,100) to the specified port.

If you look in front of the WEDO ports; the back of the wedo, this is the port overview

 _________________
|  port2 | port1  |
|________|________|
|                 |
|                 |
|_________________|

myWedo.writeIndexColor(uint8_t color)

Sets the color of the RGB led on the wedo, you can choose from the list below

#define LEGO_COLOR_BLACK 0
#define LEGO_COLOR_PINK 1
#define LEGO_COLOR_PURPLE 2
#define LEGO_COLOR_BLUE 3
#define LEGO_COLOR_CYAN 4
#define LEGO_COLOR_LIGHTGREEN 5
#define LEGO_COLOR_GREEN 6
#define LEGO_COLOR_YELLOW 7
#define LEGO_COLOR_ORANGE 8
#define LEGO_COLOR_RED 9
#define LEGO_COLOR_WHITE 10

myWedo.writeSound(unsigned int frequency, unsigned int length)

Let's the piezo in the WEDO make some noise, I'm not sure if the freqency and length are set correctly

myWedo.writeOutputCommand(uint8_t* command)

Sends a direct output command to the WEDO2.0

Examples

  • wifi_control.ino (it let's you set the direction of the motor connected to the wedo).
  • button_motor.ino (it let's you controll the motor with the build in button on the ESP). (Nice start if you want to make a remote for you WEDO creation)

Prior art

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].