Page 147 - KEC Khaitan C6 Flipbook
P. 147

Once you have written the program, upload it to the WiFi shield. The Micro:bit will now
                           send data from the sensor to ThingSpeak. You can check the ThingSpeak website to see
                           the data being sent in real-time.

                 Here is the Sample code in python to write in the Arduino IDE.





























                      REVISIT



                   ▶  Smart solutions use technology and automation to optimize tasks.
                   ▶  IoT connects devices to share data and automate processes.
                   ▶  Smart home devices include thermostats, lights, and security systems.
                   ▶  Wearable IoT devices track fitness, health, and provide notifications.
                   ▶  Ultrasonic sensors measure distance using sound waves.
                   ▶  Motors control movement in IoT devices, including robotic arms.
                   ▶  Servo and Sonar extensions in MakeCode help control motors and sensors.
                   ▶  ThingSpeak stores and displays sensor data from Micro:bit online.









                                                   HANDS-ON PROJECT


                 PROJECT NAME: Smart Dustbin

                 Objective:
                    ∑  Design and build an interactive Smart Dustbin using a Micro:bit, ultrasonic sensor, and servo
                     motor to automate lid operation.

                    ∑  Explore sensor-based automation and IoT concepts by detecting objects and triggering motor
                     responses.





                                                                              Building Smart Solutions: An Introduction  145
   142   143   144   145   146   147   148   149   150   151   152