Page 117 - KEC Khaitan C8.2 Flipbook
P. 117

BLUETOOTH VS. WI-FI

                     Bluetooth:
                     o   Great for short-range connections (usually up to ~10 meters).

                     o   Commonly used for headsets, wireless keyboards, or phone-to-robot links.

                     Wi-Fi:
                     o   Longer range and internet access.

                     o   Useful for projects that need to be controlled from anywhere in the world or send data to
                        cloud services.

                 In this lesson, we’ll focus on Bluetooth for simplicity—ideal for controlling a small device like a
                 lamp from a smartphone nearby.


                 COMMON BLUETOOTH MODULES
                     HC-05 or HC-06 modules are popular in Arduino projects:

                     RX/TX Pins: For serial communication between Arduino and the module.

                     EN or KEY Pin (on some modules): Configuration pin for advanced settings.


                 UNDERSTANDING SERIAL COMMUNICATION
                 To send data between a smartphone and an Arduino, we use serial communication. This allows
                 data transmission one bit at a time.

                     Why Serial Communication?



























                       Allows real-time control of devices.

                       Enables Arduino to process commands from the smartphone.

                 Try making this simple program by scan the QR code in Arduino IDE to learn the
                 concept of Serial Communication with Arduino better.




                                                                           Introduction to IoT & Wireless Communication  115
   112   113   114   115   116   117   118   119   120   121   122