Communicate

Bluetooth Remote Control

 

🧩 Fun Guide to Bluetooth Remote Control Blocks (Clu-blocks Pro)

🎮 Important! These blocks let your robot receive commands from a phone, tablet, or another device using Bluetooth. It’s like giving your robot ears — it listens and reacts to your remote control!

#BlockWhat it doesDropdown optionsWhat the options mean
1bluetooth handle Receive message do callback function handle_methodSets up a listener for incoming Bluetooth messagesWhen a message arrives, it runs the handle_method function
2handle_method with: key1, key2, key3, keyxDefines what to do with the received dataYou can use these keys to control motors, LEDs, sounds, etc.
3println key1 key2 key3 keyxPrints the received valuesGreat for debugging or showing what commands were received
4if key1 = "forward"Checks if the command is “forward”You can use conditions to trigger actions — like moving the robot
5Bluetooth send data body "Clu-Bots"Sends a message back to the controllerUseful for confirming actions or sending sensor data
6Whether the connection is successfulChecks if Bluetooth is connectedUse this to make sure your robot is ready before reacting
7Get local MAC addressGets your robot’s Bluetooth IDHelpful for pairing or identifying your robot in a list

🧠 Quick Tips for Students

  • Use handle + callback to make your robot respond instantly to remote commands.
  • Use key names like "forward", "left", "stop" to control movement.
  • Use conditions to match commands and trigger actions — like turning on a motor or light.
  • Use println to see what’s happening — it’s your robot’s voice for debugging.
  • Always check connection status before reacting — no Bluetooth, no control!
On this page