Roboki - Session 3: Difference between revisions

From Yudurobotics
(draft)
 
m (first draft)
Line 1: Line 1:
= '''Dive into Basics : Sensor ON - Step-by-Step''' =
= '''Dive into Basics: Sensor ON - Step-by-Step''' =


====== Description : ======
====== Description : ======
Discover the process of connecting an external proximity sensor to the Roboki microcontroller in this engaging project. As you link the sensor, experience how the built-in LED responds by changing colors according to the distance of an object. This activity provides a practical introduction to sensor-driven LED control, demonstrating how microcontrollers interpret sensor data to create dynamic visual effects. Ideal for young engineers eager to dive into sensor integration and explore the fascinating world of microcontroller applications.
Discover the process of connecting an external proximity sensor to the Roboki microcontroller in this engaging project. As you link the sensor, experience how the built-in LED responds by changing colors according to the distance of an object. This activity provides a practical introduction to sensor-driven LED control, demonstrating how microcontrollers interpret sensor data to create dynamic visual effects. Ideal for young engineers eager to dive into sensor integration and explore the fascinating world of microcontroller applications.
=== Objective of the Activity: ===
This activity demonstrates the practical use of sensors in robotics and electronics. By integrating a proximity sensor with Roboki, we will create a system that reacts to its environment—an essential concept in automation, robotics, and even smart devices.By mastering this activity , how to take sensor readings and turn them into actions, whether lighting up a simple LED or creating dynamic color displays with an RGB LED. These are key skills that form the foundation of building responsive, intelligent systemsyou're lighting up an LED or displaying colors on an RGB LED, you are applying real-world concepts that can be extended to more complex robotics projects.
Before we begin, let us take a look at the Roboki and its components, including the external ports A and B for connecting external input and output devices. This will help you understand how to use these parts effectively for your projects.
== '''HARDWARE''' ==
=== Introduction to Roboki and Proximity Sensors ===
Roboki, a powerful and user-friendly microcontroller, opens the door to endless possibilities in robotics and electronics. In this activity, we will explore how to interface Roboki with an external proximity sensor to control LED lights. A proximity sensor detects the presence of nearby objects without physical contact, making it ideal for applications that require distance measurement or object detection.
This guide will take you through the steps of connecting the proximity sensor, reading its values, and using those readings to control LEDs, including programming an RGB LED to display different colors based on sensor data.
==== Proximity sensor ====
[[File:Range sensor.jpg|left|frameless|291x291px]]
A proximity sensor measures the distance between itself and an object by emitting electromagnetic radiation (like infrared) and detecting the reflection. When the object comes within a certain range, the sensor picks up a signal, and Roboki can use this information to trigger an output.
'''Key Features of a Proximity Sensor:'''
* Detects objects without physical contact.
* Provides distance-based values that can be used to trigger actions.
* Commonly used in automation systems and robotics.
'''Connecting the Proximity Sensor to Roboki:'''
Step 1: Ensure your Roboki is powered and ready to connect to external components.
Step 2: Connect the proximity sensor to Roboki’s designated input pins.
'''Reading Values from the Proximity Sensor:'''
Once the sensor is connected, Roboki can start reading the sensor values. In the Plode app :
* The sensor provides a range of values that reflect how close or far an object is from the sensor.
* '''High sensor value''': Object is closer.
* '''Low sensor value''': Object is farther away.
== '''SOFTWARE''' ==
Now, let us program our Roboki to recognise readings from the proximity sensor and use them to control the LED. To do this, we will connect Roboki to the PLODE app, where we can write and upload the code needed to make the sensor readings trigger LED actions. By programming the Roboki, we’ll be able to illuminate the LEDs based on the proximity sensor reading. Follow the step-by-step instructions in the video below to complete the coding process and get your Roboki ready to light up its LEDs based on sensor values.




Before we begin, let us take a look at the Roboki and its components, including the external ports A and B for connecting external input and output devices. This will help you understand how to use these parts effectively for your projects.


== What Next? ==
== What Next? ==


=== Challenge! ===
=== Challenge! ===

Revision as of 14:52, 10 September 2024

Dive into Basics: Sensor ON - Step-by-Step

Description :

Discover the process of connecting an external proximity sensor to the Roboki microcontroller in this engaging project. As you link the sensor, experience how the built-in LED responds by changing colors according to the distance of an object. This activity provides a practical introduction to sensor-driven LED control, demonstrating how microcontrollers interpret sensor data to create dynamic visual effects. Ideal for young engineers eager to dive into sensor integration and explore the fascinating world of microcontroller applications.

Objective of the Activity:

This activity demonstrates the practical use of sensors in robotics and electronics. By integrating a proximity sensor with Roboki, we will create a system that reacts to its environment—an essential concept in automation, robotics, and even smart devices.By mastering this activity , how to take sensor readings and turn them into actions, whether lighting up a simple LED or creating dynamic color displays with an RGB LED. These are key skills that form the foundation of building responsive, intelligent systemsyou're lighting up an LED or displaying colors on an RGB LED, you are applying real-world concepts that can be extended to more complex robotics projects.


Before we begin, let us take a look at the Roboki and its components, including the external ports A and B for connecting external input and output devices. This will help you understand how to use these parts effectively for your projects.

HARDWARE

Introduction to Roboki and Proximity Sensors

Roboki, a powerful and user-friendly microcontroller, opens the door to endless possibilities in robotics and electronics. In this activity, we will explore how to interface Roboki with an external proximity sensor to control LED lights. A proximity sensor detects the presence of nearby objects without physical contact, making it ideal for applications that require distance measurement or object detection.

This guide will take you through the steps of connecting the proximity sensor, reading its values, and using those readings to control LEDs, including programming an RGB LED to display different colors based on sensor data.

Proximity sensor

Range sensor.jpg

A proximity sensor measures the distance between itself and an object by emitting electromagnetic radiation (like infrared) and detecting the reflection. When the object comes within a certain range, the sensor picks up a signal, and Roboki can use this information to trigger an output.

Key Features of a Proximity Sensor:

  • Detects objects without physical contact.
  • Provides distance-based values that can be used to trigger actions.
  • Commonly used in automation systems and robotics.

Connecting the Proximity Sensor to Roboki:

Step 1: Ensure your Roboki is powered and ready to connect to external components.

Step 2: Connect the proximity sensor to Roboki’s designated input pins.

Reading Values from the Proximity Sensor:

Once the sensor is connected, Roboki can start reading the sensor values. In the Plode app :

  • The sensor provides a range of values that reflect how close or far an object is from the sensor.
  • High sensor value: Object is closer.
  • Low sensor value: Object is farther away.

SOFTWARE

Now, let us program our Roboki to recognise readings from the proximity sensor and use them to control the LED. To do this, we will connect Roboki to the PLODE app, where we can write and upload the code needed to make the sensor readings trigger LED actions. By programming the Roboki, we’ll be able to illuminate the LEDs based on the proximity sensor reading. Follow the step-by-step instructions in the video below to complete the coding process and get your Roboki ready to light up its LEDs based on sensor values.



What Next?

Challenge!