Content:
- Overview: HC-05 vs. PB-03
- Key Differences Explained
- Best Use Cases
- Which One Should You Buy?
- wiring diagram
- Troubleshooting Tips
- External Resources
Bluetooth connectivity is essential for wireless projects, but choosing between the HC-05 (Classic Bluetooth) and Ai-Thinker PB-03 (Bluetooth 5.1 LE) can be tricky. This guide compares their features, power efficiency, range, and best use cases to help you pick the right module.
Overview
Bluetooth connectivity is essential for wireless projects, but choosing between the HC-05 (Classic Bluetooth) and Ai-Thinker PB-03 (Bluetooth 5.1 LE) can be tricky.
This guide compares their features, power efficiency, range, and best use cases to help you pick the right module.
Overview: HC-05 and PB-03
| Feature | HC-05 (Classic Bluetooth) | Ai-Thinker PB-03 (BLE 5.1) |
|---|---|---|
| Bluetooth Version | Bluetooth 2.1 + EDR (Classic) | Bluetooth 5.1 Low Energy (BLE) |
| Data Speed | ~2.1 Mbps (SPP profile) | ~2 Mbps (optimized for bursts) |
| Range | 10–20m (Class 2) | Up to 100m (with antenna) |
| Power Consumption | ~30mA (active), no deep sleep | ~8mA (active), 0.4μA (sleep) |
| Interface | UART (5V/3.3V compatible) | UART/USB (3.3V) |
| Security | Basic PIN code pairing | AES encryption, secure BLE |
Key Differences Explained
A. Bluetooth Technology
HC-05
- Uses Classic Bluetooth (2.1+EDR) for continuous data streaming.
- Suitable for audio and serial communication.
- Best for high-throughput applications like wireless speakers.
PB-03
- Uses Bluetooth Low Energy (BLE 5.1).
- Designed for battery-efficient and intermittent data transfer.
- Supports long-range mode with coded PHY.
Winner
- HC-05 for audio and continuous data.
- PB-03 for IoT and battery-powered projects.
B. Power Efficiency
HC-05
- No sleep mode.
- Constantly draws ~30mA, which drains batteries quickly.
PB-03
- Ultra-low-power sleep mode (0.4μA).
- Ideal for coin-cell-powered devices.
Winner
- PB-03 for long battery life.
C. Range & Connectivity
HC-05
- Limited range of 10–20 meters.
PB-03
- Supports up to 100 meters with an external antenna.
- Better for remote and outdoor sensors.
Winner
- PB-03 for long-range applications.
D. Ease of Use
HC-05
- Plug-and-play with SPP-compatible apps.
- Works easily with Arduino and Raspberry Pi using AT commands.
PB-03
- Requires BLE-compatible apps such as nRF Connect.
- More advanced setup for beacon and mesh features.
Winner
- HC-05 for beginners.
Best Use Cases
✔ Choose HC-05 If You Need:
- Wireless audio
- Arduino-to-PC serial communication
- Legacy device compatibility
✔ Choose PB-03 If You Need:
- Battery-powered IoT projects
- Long-range BLE communication
- Secure wireless data transfer
Which One Should You Buy?
| Project Type | Best Module | Why? |
|---|---|---|
| Audio streaming | HC-05 | Supports Classic Bluetooth SPP |
| Battery IoT sensors | PB-03 | Low power + BLE 5.1 range |
| Arduino beginners | HC-05 | Easier UART setup |
| Secure BLE projects | PB-03 | AES encryption and long range |
Wiring Diagram
HC-05 Bluetooth Module Wiring
Components Needed
- HC-05 Module
- Arduino/ESP32
- 3.3V or 5V Power Supply
- Voltage Divider (for 5V Arduino boards)
Connection Diagram
- VCC → 5V or 3.3V
- GND → GND
- TXD → RX
- RXD → TX
- STATE → Optional status LED
- EN/KEY → Optional for AT mode
Ai-Thinker PB-03 BLE Module Wiring
Components Needed
- PB-03 Module
- Arduino/ESP32 (3.3V only)
- USB-to-TTL Converter
Connection Diagram
- 3.3V → 3.3V only
- GND → GND
- TXD → RX
- RXD → TX
- P0/P1 → Optional GPIO pins
Troubleshooting Tips
HC-05 Not Responding?
- Ensure a voltage divider is used with 5V Arduino boards.
- Try AT+ORGL to reset factory settings.
PB-03 Not Pairing?
- Confirm proper 3.3V power.
- Verify the baud rate settings.
- Use the nRF Connect app for BLE debugging.
External Resources
المحتويات
- نظرة عامة: HC-05 مقابل PB-03.
- شرح الفروقات الرئيسية.
- أفضل الاستخدامات.
- أي وحدة يجب أن تشتري؟
- مخطط التوصيل.
- نصائح استكشاف الأخطاء وإصلاحها.
- المصادر الخارجية.
المقدمة
يُعد الاتصال عبر البلوتوث عنصرًا أساسيًا في المشاريع اللاسلكية الحديثة، ولكن الاختيار بين
وحدة HC-05 التي تعتمد على البلوتوث الكلاسيكي،
ووحدة Ai-Thinker PB-03 التي تعتمد على Bluetooth 5.1 Low Energy (BLE)
قد يكون أمرًا محيرًا.
في هذا الدليل سنقارن بين المزايا الأساسية، وكفاءة استهلاك الطاقة، ومدى الاتصال، وأفضل الاستخدامات لكل وحدة لمساعدتك في اختيار الخيار الأنسب لمشروعك.
| الميزة | HC-05 | PB-03 |
|---|---|---|
| إصدار البلوتوث | Bluetooth 2.1 + EDR | Bluetooth 5.1 BLE |
| سرعة نقل البيانات | حوالي 2.1Mbps | حوالي 2Mbps |
| مدى الاتصال | 10–20 متر | حتى 100 متر |
| استهلاك الطاقة | حوالي 30mA | حوالي 8mA / 0.4μA في وضع السكون |
| واجهة الاتصال | UART | UART / USB |
| الحماية والأمان | رمز PIN بسيط | AES Encryption |
مقارنة بين وحدتي HC-05 و PB-03
شرح الفروقات الرئيسية
أ. تقنية البلوتوث
- HC-05:
- يعتمد على البلوتوث الكلاسيكي لنقل البيانات بشكل مستمر، مثل الصوت أو الاتصال التسلسلي.
- مناسب لمشاريع السماعات اللاسلكية وأنظمة الاتصال التسلسلي.
- PB-03:
- يعتمد على Bluetooth Low Energy (BLE 5.1) لتقليل استهلاك الطاقة.
- مثالي للحساسات والأجهزة القابلة للارتداء.
- يدعم وضع المدى البعيد لتغطية أكبر.
- الأنسب:
- HC-05 لنقل البيانات المستمر،
- PB-03 لمشاريع IoT منخفضة الطاقة.
ب. كفاءة استهلاك الطاقة
- HC-05:
لا يحتوي على وضع سكون، لذلك يستهلك الطاقة باستمرار. - PB-03:
يوفر وضع سكون منخفض جدًا للطاقة يصل إلى 0.4μA. - الأنسب:
PB-03 لعمر بطارية أطول.
ج. مدى الاتصال
- HC-05:
مدى تقليدي يتراوح بين 10 و20 متر. - PB-03:
يمكن أن يصل إلى 100 متر باستخدام هوائي خارجي. - الأنسب:
PB-03 للمشاريع بعيدة المدى.
د. سهولة الاستخدام
- HC-05:
- سهل الاستخدام ويدعم تطبيقات البلوتوث التقليدية.
- يعمل بسهولة مع Arduino و Raspberry Pi باستخدام أوامر AT.
- PB-03:
- يتطلب تطبيقات BLE مثل nRF Connect.
- إعداده أكثر تعقيدًا لكنه يوفر مزايا متقدمة.
- الأنسب:
HC-05 للمبتدئين.
الاستخدامات
- اختر HC-05 إذا كنت تحتاج:
- نقل صوت لاسلكي.
- اتصال تسلسلي بين Arduino والهاتف أو الكمبيوتر.
- دعم الأجهزة القديمة.
- اختر PB-03 إذا كنت تحتاج:
- مشاريع IoT تعمل بالبطاريات.
- اتصال BLE بعيد المدى.
- اتصال آمن ومشفر.
أي وحدة يجب أن تشتري؟
| نوع المشروع | أفضل وحدة | السبب |
|---|---|---|
| نقل الصوت | HC-05 | يدعم البلوتوث الكلاسيكي. |
| حساسات IoT بالبطارية | PB-03 | استهلاك منخفض للطاقة. |
| مشاريع Arduino للمبتدئين | HC-05 | سهولة التوصيل والإعداد. |
| مشاريع BLE الآمنة | PB-03 | تشفير AES ومدى طويل. |
مخطط التوصيل
- توصيل وحدة HC-05
- وحدة HC-05.
- لوحة Arduino أو ESP32.
- مزود طاقة 3.3V أو 5V.
- مقسم جهد عند استخدام Arduino بجهد 5V.
| HC-05 | Arduino / ESP32 |
|---|---|
| VCC | 5V أو 3.3V |
| GND | GND |
| TXD | RX |
| RXD | TX |
| STATE | اختياري |
| EN/KEY | اختياري لوضع AT Mode |
مخطط توصيل وحدة HC-05
- توصيل وحدة PB-03
- وحدة PB-03.
- Arduino أو ESP32 بجهد 3.3V.
- محول USB إلى TTL للتجارب.
| PB-03 | Arduino / ESP32 |
|---|---|
| 3.3V | 3.3V فقط |
| GND | GND |
| TXD | RX |
| RXD | TX |
| P0/P1 | GPIO اختياري |
مخطط توصيل وحدة PB-03
استكشاف الأخطاء وإصلاحها
- إذا كانت وحدة HC-05 لا تستجيب:
- تأكد من استخدام مقسم جهد مع Arduino بجهد 5V.
- استخدم الأمر AT+ORGL لإعادة ضبط المصنع.
- إذا كانت وحدة PB-03 لا تقترن:
- تأكد من استخدام جهد 3.3V الصحيح.
- تحقق من معدل الـ Baud Rate.
- استخدم تطبيق nRF Connect لاختبار BLE.
Leave a comment
You must be logged in to post a comment.