Creative Technology 10 Quarter 3 Module 2 PDF
Document Details
Uploaded by CompatibleObsidian9658
2024
Tags
Summary
This module, Creative Technology 10 Quarter 3 Module 2, covers robotic technology. It details various concepts including modules, components, and practical applications. The module includes pre-tests and activities focused on the use of Arduino.
Full Transcript
Science, Technology, and Engineering Creative Technology 10 Quarter 3 - Module 2, week 2-3 Department of Education Republic of the Philippines Creative Technology - Grade 10 Quarter 3 – Module 2: Status Indicator and Control Interface First Edition, 2024 Republic Act 8293, se...
Science, Technology, and Engineering Creative Technology 10 Quarter 3 - Module 2, week 2-3 Department of Education Republic of the Philippines Creative Technology - Grade 10 Quarter 3 – Module 2: Status Indicator and Control Interface First Edition, 2024 Republic Act 8293, section 176 states that: No copyright shall subsist in any work of the Government of the Philippines. However, prior approval of the government agency or office wherein the work is created shall be necessary for exploitation of such work for profit. Such agency or office may, among other things, impose as a condition the payment of royalty. Borrowed materials (i.e., songs, stories, poems, pictures, photos, brand names, trademarks, etc.) included in this book are owned by their respective copyright holders. Every effort has been exerted to locate and seek permission to use these materials from their respective copyright owners. The publisher and authors do not represent nor claim ownership over them. Published by the Department of Education-Region 10 Regional Director: Schools Division Superintendent: Development Team of the Module Writer: Melany P. Sialana, Ronil P. Tagactac, Maverick Pacamalan Editors: Melany P. Sialana, Ronil P. Tagactac, Maverick Pacamalan Reviewers: Illustrator: Layout Artist: Name (Do not bold the text) Management Team: Dr. Arturo B. Bayocot, CESO III Mala Epra B. Magnaong Marie Emerald A. Cabigas Nick Pañares Name of the CID Chief Name of EPS-LRMDS in the Division Name of the SSP Focal Person Printed in the Philippines by the Department of Education-Region X Division of _____________________________________________ Office Address: _________________________________________ Telephone No./Telefax: ___________________________________ Email Address: __________________________________________ 10 Creative Technology Quarter 3 - Module 2: week 2-3 Status Indicator and Control Interface Introductory Message This part contains instructions for the learner and for the facilitator on how to use the module For the Learner: We are delighted to have you join us on this journey throughout the world of robotic technology. This course will educate you regarding the essential modules and elements that make up robotic systems. You'll learn how each module functions, how they interact with one another, and how to combine them to form practical robots. Ready for a journey into the captivating domains of sensors, actuators, control systems, and programming. By the end of this course, you'll have a good basis for creating and experimenting with your own robotic projects. Let's explore the future of technology together! For the Facilitator: Welcome and congratulations to our robotics program! You play a vital role for assisting our learners understand the exciting world of robotics as facilitators. The objective of this course is to educate you with the abilities and knowledge required to teach robotic systems' basic modules and components. Significant concepts including sensors, actuators, control systems, and programming will be covered. Our intention is to provide you the self-assurance and competencies you need to inspire and help your students as they experiment and learn about robotics. Let's work together to develop the upcoming generation of technologists and innovators! Lesson Final Element and Indicating Devices 1 What I Need to Know Integrate status indicator to control interface Notes to the Teacher Can be included in any part of the lesson proper to give additional instructions to the teachers/facilitators 1 What I Know Pre-Test 1. What is the primary use of a jumper wire in Arduino projects? A) Powering the Arduino board B) Connecting components on a breadboard C) Storing data D) Programming the microcontroller 2. What is the primary function of a breadboard in electronics projects? A) To store programs B) To connect components without soldering C) To display information D) To power the circuit 3. What is the primary purpose of a resistor in an electrical circuit? A) To amplify signals B) To limit current flow C) To store electrical energy D) To convert AC to DC 4. Which component is commonly used to create voltage dividers in circuits? A) Capacitor B) Diode C) Resistor D) Transistor 5. What is the primary function of an Arduino controller in a project? A) To store data B) To control and program electronic components C) To display graphics D) To provide power to sensors 6. Which of the following best describes an Arduino controller? A) A type of sensor B) A microcontroller board C) A power supply unit D) A communication module 7. Which of the following is a common use for LEDs in electronic projects? A) Power supply B) Light source C) Data storage D) Voltage regulation 8. What component is commonly used to create a user input in electronic projects? A) LED B) Resistor C) Button D) Capacitor 9. What is the primary function of a USB wire connector in electronics? A) To connect sensors B) To transfer data and power C) To store data D) To display output 10. Which type of connector is commonly used to interface Arduino boards with a computer? A) HDMI connector B) USB wire connector C) VGA connector D) Ethernet connector 11. Which of the following is a popular microcontroller board used for prototyping? A) Raspberry Pi B) Arduino Uno C) BeagleBone D) ESP8266 12. Which component stores electrical energy in an electric field? A) Resistor B) Inductor C) Capacitor D) Diode 13. What is the primary function of a capacitor in a circuit? A) To resist current flow B) To convert AC to DC C) To store and release electrical energy D) To amplify signals 14. What function is used in Arduino to set a pin HIGH or LOW? A) pinMode B) analogRead C) digitalWrite D) delay 15. Which of the following commands would turn on an LED connected to pin 9? A) pinMode(9, INPUT); B) digitalWrite(9, HIGH); C) digitalRead(9); D) analogWrite(9, 255); What’s In On the previous topic the learner demonstrates an understanding of the underlying principles of robot functions and purpose specifically the different actuators and locomotion’s. This module focuses on the status indicator to control interface using Arduino Uno R3, which learners are given the chance to work/explore on the given activities/projects on robotic technology. What’s New In this experiment, you will learn how to turn on/off an LED by using an I/O port and a button. The "I/O port" refers to the INPUT and OUTPUT port. Here the INPUT port of the Arduino Uno board is to read the output of an external device. Since the board itself has an LED (connected to Pin 13), you can use the LED for convenience. Step 1: Components - Arduino Uno board * 1 - USB cable * 1 - Resistor (10kΩ) * 1 - LED * 1 - Button * 1 - Capacitor 104 * 1 - Breadboard * 1 - Jumper wires Step 2: Principle Buttons are a common component used to control electronic devices. They are usually used as switches to connect or break circuits. Although buttons come in a variety of sizes and shapes, the one used here is a 6mm mini-button as shown in the following pictures. Pin 1 is connected to pin 2 and pin 3 to pin 4. So you just need to connect either of pin 1 and pin 2 to pin 3 or pin 4. Step 3: The following is the internal structure of a button. The symbol on the right below is usually used to represent a button in circuits. Step 4: Since the pin 1 is connected to pin 2, and pin 3 to pin 4, when the button is pressed, the 4 pins are connected, thus closing the circuit. Step 5: The Schematic Diagram Step 6: Procedures Connect one end of the buttons to pin 12 which connects with a pull-down resistor and a 0.1uF (104) capacitor (to eliminate jitter and output a stable level when the button is working). Connect the other end of the resistor to GND and one of the pins at the other end of the button to 5V. When the button is pressed, pin 12 is 5V (HIGH). Set the pin 12 as High level by programming and pin 13 (integrated with an LED) as High at the same time. Then release the button (pin 12 changes to LOW) and pin 13 is Low. So we will see the LED lights up and goes out alternately as the button is pressed and released. Step1: Build the circuit. Step 2: Download the code from https://github.com/primerobotics/Arduino Step 3: Upload the sketch to the Arduino Uno board Click the Upload icon to upload the code to the control board. If "Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded. Now, press the button, and the LED on the SunFounder Uno board will light up. Step 7: Code //Controlling Led By Button //Turns on and off a LED ,when pressings button attach to pin12 //Email:[email protected] //Website:www.primerobotics.in const int buttonPin = 12; //the button connect to pin 12 const int ledPin = 13;//the led connect to pin13 int buttonState = 0; // variable for reading the pushbutton status void setup() { pinMode(buttonPin, INPUT); //initialize thebuttonPin as input pinMode(ledPin, OUTPUT); //initialize the led pin as output } void loop() { //read the state of the button value buttonState = digitalRead(buttonPin); //and check if the key is pressed //if it is,the state is HIGH if (buttonState == HIGH ) { digitalWrite(ledPin, HIGH); //turn the led on } else { digitalWrite(ledPin, LOW); //turn the led off } } Step 8: Code Analysis Code Analysis 1 Define variables Connect the button to pin 12. LED has been connected to pin 13. Define a variable buttonState to restore the state of the button. Code Analysis 2-2 Set the input and output status of the pins We need to know the status of the button in this experiment, so here set the buttonPin as INPUT; to set HIGH/LOW of the LED, we set LedPin as OUTPUT. Code Analysis 2-3 Read the status of the button buttonPin(Pin12) is a digital pin; here is to read the value of the button and store it in buttonState. digitalRead (Pin): Reads the value from a specified digital pin, either HIGH or LOW. Code Analysis 2-4 Turn on the LED when the button is pressed In this part, when the buttonState is High level, write ledPin as High and the LED will be turned on. As one end of the button has been connected to 5V and the other end to pin 12, when the button is pressed, pin 12 is 5V (HIGH). And then determine with the if(conditional); if the conditional is true, then the LED will light up. Else means that when the if(conditional) is determined as false, run the code in else. What is It In general, status indicator serves as output devices (LED) and the controlling interface are input devices (Buttons) and the microcontrollers serves as the processing devices. What’s More Directions: Label and define each function and purpose on the diagram below. What I Have Learned Directions: Rearrange the following text to form a words/phrase. 1. REPMUJ ERIW - 2. DRAOBDAERB - 3. SITORRES - 4. CIMROCONLLERTRO - 5. DEL LUBB - 6. NOTBUT - 7. BUS NNECTORCO - 8. UINOARD NOU - 9. CITORCAPA - 10. GIDITALTEWRI - What I Can Do Performance Task. Group Activity. Directions: Execute the correct diagram base on the pictures given below. Scoring Rubric for Group Dynamics Group #: Group Name: Grade & Section: Date: Title of the Activity: Student’s Name & Task/s: 1. 2. 3. 4. 5. Assessment 1. What is the primary use of a jumper wire in Arduino projects? A) Powering the Arduino board B) Connecting components on a breadboard C) Storing data D) Programming the microcontroller 2. What is the primary function of a breadboard in electronics projects? A) To store programs B) To connect components without soldering C) To display information D) To power the circuit 3. What is the primary purpose of a resistor in an electrical circuit? A) To amplify signals B) To limit current flow C) To store electrical energy D) To convert AC to DC 4. Which component is commonly used to create voltage dividers in circuits? A) Capacitor B) Diode C) Resistor D) Transistor 5. What is the primary function of an Arduino controller in a project? A) To store data B) To control and program electronic components C) To display graphics D) To provide power to sensors 6. Which of the following best describes an Arduino controller? A) A type of sensor B) A microcontroller board C) A power supply unit D) A communication module 7. Which of the following is a common use for LEDs in electronic projects? A) Power supply B) Light source C) Data storage D) Voltage regulation 8. What component is commonly used to create a user input in electronic projects? A) LED B) Resistor C) Button D) Capacitor 9. What is the primary function of a USB wire connector in electronics? A) To connect sensors B) To transfer data and power C) To store data D) To display output 10. Which type of connector is commonly used to interface Arduino boards with a computer? A) HDMI connector B) USB wire connector C) VGA connector D) Ethernet connector 11. Which of the following is a popular microcontroller board used for prototyping? A) Raspberry Pi B) Arduino Uno C) BeagleBone D) ESP8266 12. Which component stores electrical energy in an electric field? A) Resistor B) Inductor C) Capacitor D) Diode 13. What is the primary function of a capacitor in a circuit? A) To resist current flow B) To convert AC to DC C) To store and release electrical energy D) To amplify signals 14. What function is used in Arduino to set a pin HIGH or LOW? A) pinMode B) analogRead C) digitalWrite D) delay 15. Which of the following commands would turn on an LED connected to pin 9? A) pinMode(9, INPUT); B) digitalWrite(9, HIGH); C) digitalRead(9); D) analogWrite(9, 255); Additional Activities Directions: Write a sketch code in controlling servo motor. (Arduino IDE) References Include all third party materials or sources in developing the material Follows the Chicago Manual of Style 17th edition For your guide, https://www.instructables.com/Controlling-LED-by-Button-With-Arduino-Uno-R3/ Note: Number of pages from Introduction/What I Need to Know to Additional Activity shall be 16 pages or number of pages from Title Page to reference shall be divisible by 8 or 16. (OUTSIDE BACK COVER) For inquiries or feedback, please write or call: Department of Education – Division of ___________ Office Address: Telephone Nos.: E-mail Address: