Fakulti Kejuruteraan Elektrik Semester I 2021/2022 BEKB 1231 ENGINEERING PRACTICE II LAB REPORT ARDUINO MICROCONTROLLER Instructor Assoc. Prof. Ir. Ts. Dr. Abdul Rahim Bin Abdullah MOHAMAD AL-AMEEN BIN AZMIE Matrix Number B012010084 2 BEKG S1 MOHAMAD IKHWAN HAKIMI BIN ZULKENAIN B012010045 2 BEKG S1 MEGAT ZHAFRANN AMYR BIN MOHAMAD B012010024 2 BEKG S1 Name FAKHRI Program 1.0 Introduction The Arduino is an open-source electronics platform that allows users to create electronic creations with simple hardware and software. One thing that all Arduino boards have in common is a microcontroller. A microcontroller is essentially a little computer. We can design and build devices that interact with our surroundings with the Arduino. The Arduino boards are essentially a controller for electronics. They can use their onboard microcontroller to read inputs (such as light on a sensor or an object near a sensor) and convert them to outputs (Drive a motor, ring an alarm, turning on an LED, display information on an LCD). Makers and electricians can quickly prototype their goods and bring their ideas to life with the Arduino. 1.1 OBJECTIVE - To apply the basic programming requirements to use a microcontroller device. - To define the procedure to implement an embedded system. - To identify the interaction between microcontroller devices with external devices (Sensor and Actuator). 2.0 Methodology To simulate our circuit in this module, we'll use the Arduino software. We used the Proteus software to design our circuit. Proteus is a set of software tools for producing schematics, simulating electronics, and designing embedded circuits. The flowchart below illustrates how to build a circuit using Proteus software, which is linked to Arduino software for the simulation parts. Based on the flowchart, we need to understand the task given. Next, come up with some ideas and have a brainstorming session about how to build the circuit. We can easily assemble the component in the Proteus software if we have already brainstormed. Then, using the Arduino programme, insert the coding in accordance with the task's requirements. Run the simulation by connecting Arduino to the Proteus programme. Finally, observe and record the circuit's behaviour. 3.0 Results and Discussion Task 1 When we run the simulation in task 1, Led will blink every one second. Task 2 When we run the simulation in task 2, the Led will light up when the button is press. If we release the button, the Led will light off. Task 3 For exercise 1 When we run the simulation for execise 1 in task 3, the Led A - Led C will light up one by one and then light off all the Led by having a delay of 2 seconds for each Led. For exercise 2 When we run the simulation for execise 2 in task 3, the Led A will light up and then light off if the Led B light up by having a delay 2 seconds. The action will repeat for Led B if the Led C light up. Task 4 When we run the simulation in task 4, the Led A - Led G will light up one by one and then light off all the Led by having a delay of 2 seconds for each Led. Task 5 When the button is triggered once (pressed and released) in task 5, the Led A - Led G will light up one by one and then light off all the Led by having a delay of 2 seconds for each Led. The program will run one cycle and waiting for the button trigger to run another cycle. Task 6 When the button is triggered once (remain pressed) in task 6, the Led A - Led G will blinking. But, when the button is released, the program pause at its current state and will only resumed when the button is triggered again. Task 7 For 10% For 50% For 90% When we run the simulation in task 7, the Led will become brighter when the percentage duty cycle increase. The output voltage will also increase. Task 8 When the torch is far from LDR in task 8, Led will blinking slowly. Then, if the torch is become near to LDR, the blinking of Led will become fast. Task 9 For speed 25% (first) For speed 50% (second) For speed 75% (third) For speed 100% (fourth) For speed 0% (fifth) When we run the simulation in task 9, the motor's speed will increase as the percentage duty cycle increases. 4.0 Conclusion To sum up, we now know how to apply the basic programming criteria for using a microcontroller device, define the procedure for implementing an embedded system, and identify the interaction between microcontroller devices and external devices (Sensor and Actuator). 5.0 References 1. ago, yida 2 years, Yida, posts, yidaS. author's, & posts, S. author's. (2021, July 2). What is Arduino?: Overview and how to get started. Latest Open Tech From Seeed. Retrieved January 15, 2022, from - https://www.seeedstudio.com/blog/2019/12/04/introduction-to-thearduino-what-is-arduino/ 2. Nasir, S. Z., Author: Syed Zain Nasirhttps://www.theengineeringprojects.com/I am Syed Zain Nasir, Author: & Nasir, I. am S. Z. (2020, January 16). Introduction to proteus. The Engineering Projects. Retrieved January 15, 2022, from https://www.theengineeringprojects.com/2020/01/introduction-to-proteus.html 3. Arduino Uno REV3. Arduino Official Store. (n.d.). Retrieved January 15, 2022, from https://store.arduino.cc/products/arduino-uno-rev3/ 4. Secretsofarduinopwm. Arduino. (n.d.). Retrieved January 15, 2022, from https://www.arduino.cc/en/pmwiki.php?n=Tutorial%2FSecretsOfArduinoPWM Report Rubric Engineering Practice II (BEKB 1231) Module 4: Arduino Student Details Course/Group : BEKG S1 / GROUP 4 Semester : 1 2021/2022 Name A : MOHAMAD AL-AMEEN BIN AZME Matrix : B012010084 Name B : Matrix : B012010045 Matrix : B012010024 Date : MOHAMAD IKHWAN HAKIMI BIN ZULKENAIN MEGAT ZHAFRANN AMYR BIN : MOHAMAD FAKHRI Name C Instructor : Assoc. Prof. Ir. TS. Dr. Abdul Rahim Bin Abdullah 1.0 Experiment background Theory presented is clear and complete as to enhance experiment/project impact. Reader may have a few questions on theory or have to revise the material. Missing, incomplete or incorrect description of theory. Concept / Idea 2.0 Clear and complete design concept to achieve the objective by considering different situation / condition. Hardware concept with details of sensor placement 1 3 3 0 2 5 3 Prediction of all possible situations / conditions. 1 Program flowchart 1 Total 3.0 Methodology Step by step procedure / process to materialize the concept / idea Flow chart to program transformation Input Circuit Schematic and Testing Output Circuit Schematic and Testing Combination of all the steps 4.0 Results 4 1 1 1 1 Total 3 3 2 1 2 2 The experimental results are clearly discussed and acceptable The experimental results are discussed sufficiently The experimental results are discussed insufficiently 5.0 Conclusion Clear and complete summarization of experiment/project achievements. Insufficient summarization of experiment/project achievements. 1 0 Conclusion is not explained. 6.0 Writing Skill Information is well written and organized. Diagrams and illustrations are well presented. Information is moderately written and organized. Diagrams and illustrations are moderately written and organized. Poor writing and diagram TOTAL 3 3 1 2 0 /20 Comment :________________________________________________________________________ Evaluated by : Date :