Arduino MENG 4350__ Introduction to Mechatronics Individual Project 2 REPORT SUBMITTED BY: Ruaa Selman We certify that the narrative, diagrams, figures, tables, calculations and analysis in this report are our own work. DATE REPORT DUE: February 2nd , 2022 DATE REPORT SUBMITTED: February 2nd , 2022 MECHANICAL ENGINEERING DEPARTMENT HOUSTON ENGINEERING CENTER COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT TYLER Objective Projects focuses on using three sensors in the Arduino kit and how to read all sensors at the same time. Projects involved IR, Ultrasonic set at 20 cm distance and Temperature & Humidity sensors set at 37%. Three LED lights and other components in the kit. Table of Contents DESCRIPTION ……………………………………………………………………………………………………………… 1 COMPONENT LIST ………………………………………………………………………………………………………. 2 CIRCUIT DIAGRAM …………………………………………………………………………………………………….. 3 VIDEO ………………………………………………………………………………………………………………………….. 5 CODE …………………………………………………………………………………………………………………………… 6 APPENDICES ……………………………………………………………………………………………………………… 13 DESCRIPTION Temperature and Humidity Sensor This sensor type is used to measure ambient temperature or humidity and Arduino takes the data and display or perform some desired function as per programming done by user. LCD can be interfaced with the board in order to display these parameters. Real Application: Heating, ventilation and air conditioning systems. Weather stations also use these sensors to predict weather conditions. Ultrasonic distance sensor It transmits sound waves at ultrasonic frequency towards object and receives the reflected echo. It measures the distance of the object from sensor by comparing received echo with the transmitted signal. Real Application: collision prevention by detecting when cars or other objects in front of and behind yours come dangerously near. For example, when parking your car, the sensors can monitor how close the car comes to a wall or other vehicles and alert you to stop. Infrared emission sensor also known as infrared emitting diodes, directly converted into electrical energy near infrared Light (black light), and can radiate out of the light emitting device is mainly used in various photoelectric switches and remote control transmitter circuit. Real Application: used for remote controlling applications such as controlling TV or another Arduino board. 1 COMPONENT LIST Component UNO R3 Controller Board Large Breadboard Small Breadboard Red LED Blue LED Breadboard Jumper Wire 220 Ω Resistor 100 Ω Resistor USB Cable Ultrasonic HC-SR04 Sensor IR Receiver Module KY-022 Sensor DHT11 Temperature and Humidity Sensor LCD 1602 Module (With pin header) Remote Control Quantity 1 1 1 3 1 29 1 4 1 1 1 1 1 1 2 CIRCUIT DIAGRAM Circuit Stigmatic Single Line Diagram 3 1 2 3 4 5 6 U1_5V U1_5V A U2 U5 U3 +VS R2 R3 R5 VCC OUT GND VOUT 100 D2 RED 100 D1 BLUE VCC VO LED+ LEDRS RW ENA GND 220 GND LCD 16×2 A DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 U1_D5 U1_D7 U1_D4 U1_D3 U1_D6 U1_D2 U1_A3 U1_A5 B B U1_D9 U1_D10 U1_GND U1_GND U1_5V U1 C RX VIN TX 5V D2 3.3V D3 D4 AREF D5 IOREF D6 RES D7 Arduino A0 D8 UNO A1 D9 D10 A2 D11 A3 D12 A4 D13 A5 SDA SCL GND C DIST1 VCC TRIG ECHO GND D4 RED D3 RED R4 R1 100 100 D D U1_D2 U1_D3 U1_D4 U1_D5 U1_D6 U1_D7 U1_D9 U1_D10 U1_A3 U1_A5 U1_GND E E Title: Shiny Curcan Made with Tinkercad® Date: 2/19/2022, 11:33:51 PM Sheet: 1/1 VIDEO https://youtube.com/shorts/cXPinlp0G_0?feature=share . 5 CODE 6 //Ruaa Selman //MENG 4350 Mechatronics //Individual project 2 //Start off with calling out all required libraries for this project. #include //This is the library for the Humidity and Temperature Sensor #include //Library for LCD screen #include //to access IR remote //Call out LCD screen pins (RS,En,D4,D5,D6,D7) LiquidCrystal lcd(7, 6, 5, 4, 3, 2); //Call out Ultrasonic, IR, & Humidty_Temp sensor pins #define ULT_TRIG A1 //Ultrasonic sensor pin 1 #define ULT_ECHO A2 //Ultrasonic sensor pin 2 #define IR_SENSOR A3 //IR sensor pin #define HT_SENSOR A5 //Humidity and Temperature sensor pin //Call out LEDs pins #define ULT_LEDR #define ULT_LEDB #define IR_LED #define HT_LED 8 9 10 11 IRrecv receiver(IR_SENSOR); decode_results results; SimpleDHT11 dht11(HT_SENSOR); //HT_SENSOR is now part of the dht11 library and we’ll be able to use it in our code loop const const const const const const const const int int int int int int int int FADE1 FADE2 FADE3 FADE4 FADE5 FADE6 FADE7 FADE8 = = = = = = = = 10; 20; 30; 40; 50; 60; 70; 80; void setup() { Serial.begin(9600); lcd.begin(16, 2); //A little welcome message for 3 seconds lcd.setCursor(0, 0); lcd.print(“Ruaa Selman MENG”); lcd.setCursor(0, 1); lcd.print(“4350 IP 1”); delay(3000); //clearing off the screen for the code lcd.begin(16, 2); lcd.clear(); //Setting sensor pins as input for the loop portion for (int i = ULT_TRIG; i 27 || humidity > 37) digitalWrite(HT_LED, HIGH); else digitalWrite(HT_LED, LOW); delay(100); } long duration, inches, cm, cm2; long microsecondsToInches(long microseconds) { return microseconds / 74 / 2; } long microsecondsToCentimeters(long microseconds) { return microseconds / 29 / 2; } int time_Measurement(int duration) { pinMode(ULT_TRIG, OUTPUT); digitalWrite(ULT_TRIG, LOW); delayMicroseconds(2); digitalWrite(ULT_TRIG, HIGH); delayMicroseconds(5); digitalWrite(ULT_TRIG, LOW); pinMode(ULT_ECHO, INPUT); duration = pulseIn(ULT_ECHO, HIGH); return duration; inches = microsecondsToInches(duration); cm = microsecondsToCentimeters(duration); } void display_distance(int distance) { lcd.setCursor(12,0); if (distance < 10) { lcd.print(0); } lcd.print(distance); Serial.print(“US=”); Serial.print(distance); Serial.print(“t”); if (distance < 10) { digitalWrite(ULT_LEDR, LOW); analogWrite(ULT_LEDB, FADE1); } if (10 < distance && distance > 20) { digitalWrite(ULT_LEDR, LOW); analogWrite(ULT_LEDB, FADE2); } } if (20 < distance && distance > 30) { digitalWrite(ULT_LEDR, HIGH); analogWrite(ULT_LEDB, FADE3); } if (30 < distance && distance > 99) { digitalWrite(ULT_LEDR, HIGH); analogWrite(ULT_LEDB, FADE8); } delay(10); APPENDICES 13 XIAMEN AMOTEC DISPLAY CO.,LTD
The post MENG 4350 Arduino Mechatronics Worksheet first appeared on Assignment writing service.
All our Essay orders are Original, and are written from scratch. Try us today at 30% off
MENG 4350 Arduino Mechatronics Worksheet
Let your paper be done by an expert
Custom Essay Writing Service
Our custom essay writing service has already gained a positive reputation in this business field. Understandably so, all custom papers produced by our academic writers are individually crafted from scratch and written according to all your instructions and requirements. We offer Havard, APA, MLA, or Chicago style papers in more than 70 disciplines. With our writing service, you can get quality custom essays, as well as a dissertation, a research paper, or term papers for an affordable price. Any paper will be written on time for a cheap price.
Professional Essay writing service
When professional help in completing any kind of homework is all you need, scholarfront.com is the right place to get it. We guarantee you help in all kinds of academia, including essay, coursework, research, or term paper help etc., it is no problem for us. With our cheap essay writing service, you can be sure to get credible academic aid for a reasonable price, as the name of our website suggests. For years, we have been providing online custom writing assistance to students from countries all over the world, including the United States, Canada, the United Kingdom, Australia, Italy, New Zealand, China, and Japan.