انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents

A Bluetooth lamp

Section 11: Bluetooth with Robo MakerLesson 11.1 · ⏱ 10 min
A button to connect, and the switch sends 1 to turn on and 0 to turn off
A button to connect, and the switch sends 1 to turn on and 0 to turn off
The test device shows what the app sent
The test device shows what the app sent
  • 🔗 connect Bluetooth chooses the Bluetooth device.
  • 📤 Bluetooth send sends a letter or a number, and the Arduino reads it and turns the lamp on.
  • In the lab a Test Bluetooth device appears under the phone, so you see what your app sends.

📌 Another example: two lamp buttons over Bluetooth

Two buttons: the first sends 1 (on), and the second sends 0 (off).

The design
The design
The blocks
The blocks
In the lab: the remote
In the lab: the remote
The test device received the messages
The test device received the messages
✍️ Practise
Make the example yourself: put the parts in “🎨 Design”, then the blocks, and tap ▶ Run.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

One button sends the letter A.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab
The test device received the messages
The test device received the messages

Result: A arrives.

Medium

After connecting the title writes “Connected ✅”.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab
The test device received the messages
The test device received the messages

Result: Connected ✅

Hard

The slider sends the light's strength (0 to 255).

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab
The test device received the messages
The test device received the messages

Result: 200 arrives.

Finished the lesson? Mark it so your progress counts.