CT262_FierroLab1
docx
keyboard_arrow_up
School
MiraCosta College *
*We aren’t endorsed by this school
Course
250
Subject
Mechanical Engineering
Date
Apr 3, 2024
Type
docx
Pages
7
Uploaded by DeaconNewtMaster981
Name: Jonathan Fierro
GID: G00304033
Lab 1: Setting up the Arduino
Grantham University
Date: December 16, 2023
Introduction:
This lab consisted of the initial set up and becoming familiar with the Arduino uno. In part a, the blink program will be loaded to the Arduino to control the built-in LED. In part b, the program will be modified
to have the LED always on. Next, another modification such that the LED has a duty cycle of 40%. The multimeter will be used to measure the voltage across pin 13 and ground. Equipment/Components: Arduino Uno
Digital Multimeter
Arduino IDE
Procedure: The initial blink program that will be loaded to the Arduino comes from the list of built in example in the Arduino IDE. This program is then modified for the desired output. It is expected that while the LED is on
the measured voltage across pin 13 will be approx. 5 Volts and while the LED is off the measured voltage
across pin 13 will be 0 Volts.
Results/Analysis:
Part 1a
The following screenshot shows the blink program running on the Arduino:
Part 1b
The following screenshot shows the blink program modified such that the onboard LED is always on:
The following photo shows the Arduino running with the LED always on with the multimeter measuring the voltage across pin 13 and ground:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
The measured voltage across pin 13 and ground was 5.04 Volts.
To achieve a duty cycle of 40% over a 10 second period, the loop was modified as follows:
void loop() {
int on_time = 4; // 40% duty cycle
int off_time = 6;
digitalWrite(13, HIGH);
delay(on_time * 1000);
digitalWrite(13, LOW);
delay(off_time * 1000);
}
The following screenshot shows the modified Arduino program with the LED having a 40% duty cycle:
The following photo shows the measured voltage across pin 13 and ground during the on portion of the duty cycle:
As seen above, the measured voltage across pin 13 and ground during the on portion of the duty cycle was 5.08 Volts.
The following photo shows the measured voltage across pin 13 and ground during the off portion of the duty cycle:
As seen above, the measured voltage across pin 13 and ground during the off portion of the duty cycle was 0.00 Volts.
Conclusion/Discussion:
After verifying the initial blink LED program would load and run on the Arduino, the loop needed to be modified such that the LED is always on. To accomplish this, all lines in the loop were commented out except for digitalwrite(LED_BUILTIN, HIGH);
. With this being the only active line, the LED was always on. To achieve a 40% duty cycle, integers were declared for on and off time and assigned values of 4 and 6, respectively. The on and off integers are multiplied by 1000 in the delay functions to achieve the 40% duty cycle. When loaded to the Arduino it was verified that the LED was on for 4 seconds and off for 6 seconds. The measured voltage of pin 13 while the LED was on was approximately 5V, as this is the voltage the Arduino supplies to a HIGH pin. The measured voltage of pin 13 while the LED was off was 0V, as expected.
Some features of the Keurig coffee maker that could be implemented with an Arduino very easily are listed below:
1.
Power control: A relay can be connected to the Arduino to control the power supply to the coffee maker and can be interfaced with a switch.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
2.
Water level monitoring: A pressure sensor or a moisture sensor can be connected to the Arduino to sense when the water level gets low. An LED can also be connected and turned on when the level is low. 3.
User interface: An LCD screen and buttons can be connected to display brewing size information and the buttons can be used for user input. Another project idea could be an automated plant watering system. The components needed for this would be a moisture sensor placed in the soil, a relay connected to a water pump, a water reservoir, and
an Arduino for controlling. You could program the Arduino such that when the soil moisture reaches a certain point, it will trigger the relay switch to send power to the water pump. The water pump should only be activated for a few seconds. Then the Arduino should sit idle before attempting to read the moisture sensor again as it will take a few seconds for the water to soak in. References:
Blum, J. (2013). Exploring Arduino: Tools and Techniques for Engineering Wizardry.
Related Documents
Related Questions
AutoSave
STATICS - Protected View• Saved to this PC -
O Search (Alt+Q)
Off
ERIKA JOY DAILEG
EJ
File
Home
Insert
Draw
Design
Layout
References
Mailings
Review
View
Help
Acrobat
O Comments
E Share
PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View.
Enable Editing
Situation 9 - A 6-m long ladder weighing 600 N is shown in the Figure. It is required to determine
the horizontal for P that must be exerted at point C to prevent the ladder from sliding. The
coefficient of friction between the ladder and the surface at A and B is 0.20.
25. Determine the reaction at A.
26. Determine the reaction at B.
27. Determine the required force P.
4.5 m
1.5 m
H=0.2
30°
Page 5 of 5
671 words
D. Focus
100%
C
ЕPIC
GAMES
ENG
7:24 pm
w
US
16/02/2022
IZ
arrow_forward
System Specification
The aim of task 2 is to design a simulated obstacle detection sensor system for a mobile robot platform. You
should assume your chosen sensors will be placed on a small mobile robot platform as designed in task 1.
The sensor system must be able to detect objects within the range of 0mm to 1000mm and have a field of
vision of 90 degrees (see diagram below). You may need to use multiple sensors to achieve the desired
specification.
Robot
platform
H
0-1000mm
range
90° sensor
view
Example
object
arrow_forward
The Weather Monitor. Your South American expedition splits into two groups: one that stays at home base, and yours that goes off to
set up a sensor that will monitor precipitation, temperature, and sunlight through the upcoming winter. The sensor must link up to a
central communications system at base camp that simultaneously uploads the data from numerous sensors to a satellite. In order to
set up and calibrate the sensor, you will have to communicate with base camp to give them specific location information.
Unfortunately, the group's communication and navigation equipment has dwindled to walkie-talkies and a compass due to a river-raft
mishap, which means your group must not exceed the range of the walkie-talkies (3.0 miles). However, you do have a laser rangefinder
to help you measure distances as you navigate with the compass. After a few hours of hiking, you find the perfect plateau on which to
mount the sensor. You have carefully mapped your path from base camp around lakes and…
arrow_forward
DISCUSS THE STEP-BY-STEP PROCESS OF HOW TO COME UP WITH A SOLUTION.
*Preferably if you typed the answer
Thumbs up guaranteed If you discuss the steps. Thankyou!
arrow_forward
Version #2
Describe the situation using a diagram:
Contact Push/Pull Interaction
4
Write the narrative:
During the contact push/pull interaction between the hand and the cart kinetic energy is transferred between them. The type of energy that changes in the two interacting objects is always the same as the type of energy that is transferred, so this means that the kinetic energy of the hand decreases while the kinetic energy of the cart increases. Since the cart was at rest to start with, this increase of kinetic energy means that it starts to move.
Which criterion (accuracy, completeness, or clarity and logical reasoning) is not satisfied by this explanation? Briefly explain why you think so.
arrow_forward
I need help with simulink. It is my first time using simulink. I am trying to make a simulink program turning on the LED on the board for 10sec for an Arduino Mega 2560. I have attached an image of what I tried to do. After I run, it just says no diagnostic. How do I know if I did this correctly or not?
arrow_forward
Don't Use Chat GPT Will Upvote And Give Handwritten Solution Please
arrow_forward
David is working on her farming business and faces the challenge of watering her plants daily,which is a tedious and time-consuming task, especially under the scorching sun. The path shefollows for watering the plants is illustrated in figure 1.David's son has taken on the task of designing a prototype to automate the watering process forher. Figure 2 depicts the design, featuring a set of rods. The curved path represents David'stypical watering route, and the straight rod AB AB is confined to move along the path due to the pinsat its ends. Water sprinklers will be positioned at points A and B to efficiently water the plants.At the instant shown in figure 2, point A has the motion shown while its at the edge of the path.Determine the velocity and acceleration of point B at this instant.
arrow_forward
Hartley Electronics, Inc., in Nashville, producesshort runs of custom airwave scanners for the defense industry.The owner, Janet Hartley, has asked you to reduce inventory byintroducing a kanban system. After several hours of analysis, youdevelop the following data for scanner connectors used in onework cell. How many kanbans do you need for this connector?Daily demand 1,000 connectorsLead time 2 daysSafety stock 12 dayKanban size 500 connectors
arrow_forward
I have been working on this Solid Mech problem for a while and have gottem nowhere
we are supposed to be finding the modulus of elasticity for a set of data (attached). I have made an excel sheet from this to finda stress strain graph. I understand how the modulus of elasticity is (E = (delta stress)/(delta strain)) but I cannot find the propotional limit that I need to find delta stress and delta strain
arrow_forward
Hello. I need help with this review question. Please help me out.
arrow_forward
I just need a drawing or interpretation of this question, i just need how to draw or execute this (pleaseee help) thank yoouuu in advance
arrow_forward
You are assigned as the head of the engineering team to work on selecting the right-sized blower that will go on your new line of hybrid vehicles.The fan circulates the warm air on the inside of the windshield to stop condensation of water vapor and allow for maximum visibility during wintertime (see images). You have been provided with some info. and are asked to pick from the bottom table, the right model number(s) that will satisfy the requirement. Your car is equipped with a fan blower setting that allow you to choose between speeds 0, 1,2 and 3. Variation of the convection heat transfer coefficient is dependent upon multiple factors, including the size and the blower configuration.You can only use the following parameters:
arrow_forward
Make a simulink program turning on the LED on the board for 10sec. Can you write down the steps to create the simulink program because it is my first time using it.
arrow_forward
reful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View.
Your Full Name
Enable Editing
ID:
Sec:
Q1: Which one is stronger; undeformed copper or
copper that has been plastically deformed?
Q2: Which one is stronger; unannealed copper or
copper annealed (heated) at 750° C?
Q3: Why?
101.
O
Focus
arrow_forward
I want to answer all the questions by handwriting.
arrow_forward
The free body diagram must be drawn , its mandatory.
Don't use chatgpt
arrow_forward
(PID solution with the requirements and simple explanation. Thx)
INSTRUCTION: Given three bare processes develop a control system using feedbackand feedforward concept/principle. Your output is a process and instrumentationdiagram (P & ID) using ISA's Instrument Identification and Symbols standards withexplanation.
PROCESS 2: The liquid level inside the tank is regulated at a value of 3.0 m on a condition ofcontinuous liquid inflow and outflow.
Requirements: Two feedback solutions One feedforward solution
arrow_forward
how do I dimension the object shown below
assume grid spacing is 0.2
arrow_forward
I need help solving this problem.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Related Questions
- AutoSave STATICS - Protected View• Saved to this PC - O Search (Alt+Q) Off ERIKA JOY DAILEG EJ File Home Insert Draw Design Layout References Mailings Review View Help Acrobat O Comments E Share PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. Enable Editing Situation 9 - A 6-m long ladder weighing 600 N is shown in the Figure. It is required to determine the horizontal for P that must be exerted at point C to prevent the ladder from sliding. The coefficient of friction between the ladder and the surface at A and B is 0.20. 25. Determine the reaction at A. 26. Determine the reaction at B. 27. Determine the required force P. 4.5 m 1.5 m H=0.2 30° Page 5 of 5 671 words D. Focus 100% C ЕPIC GAMES ENG 7:24 pm w US 16/02/2022 IZarrow_forwardSystem Specification The aim of task 2 is to design a simulated obstacle detection sensor system for a mobile robot platform. You should assume your chosen sensors will be placed on a small mobile robot platform as designed in task 1. The sensor system must be able to detect objects within the range of 0mm to 1000mm and have a field of vision of 90 degrees (see diagram below). You may need to use multiple sensors to achieve the desired specification. Robot platform H 0-1000mm range 90° sensor view Example objectarrow_forwardThe Weather Monitor. Your South American expedition splits into two groups: one that stays at home base, and yours that goes off to set up a sensor that will monitor precipitation, temperature, and sunlight through the upcoming winter. The sensor must link up to a central communications system at base camp that simultaneously uploads the data from numerous sensors to a satellite. In order to set up and calibrate the sensor, you will have to communicate with base camp to give them specific location information. Unfortunately, the group's communication and navigation equipment has dwindled to walkie-talkies and a compass due to a river-raft mishap, which means your group must not exceed the range of the walkie-talkies (3.0 miles). However, you do have a laser rangefinder to help you measure distances as you navigate with the compass. After a few hours of hiking, you find the perfect plateau on which to mount the sensor. You have carefully mapped your path from base camp around lakes and…arrow_forward
- DISCUSS THE STEP-BY-STEP PROCESS OF HOW TO COME UP WITH A SOLUTION. *Preferably if you typed the answer Thumbs up guaranteed If you discuss the steps. Thankyou!arrow_forwardVersion #2 Describe the situation using a diagram: Contact Push/Pull Interaction 4 Write the narrative: During the contact push/pull interaction between the hand and the cart kinetic energy is transferred between them. The type of energy that changes in the two interacting objects is always the same as the type of energy that is transferred, so this means that the kinetic energy of the hand decreases while the kinetic energy of the cart increases. Since the cart was at rest to start with, this increase of kinetic energy means that it starts to move. Which criterion (accuracy, completeness, or clarity and logical reasoning) is not satisfied by this explanation? Briefly explain why you think so.arrow_forwardI need help with simulink. It is my first time using simulink. I am trying to make a simulink program turning on the LED on the board for 10sec for an Arduino Mega 2560. I have attached an image of what I tried to do. After I run, it just says no diagnostic. How do I know if I did this correctly or not?arrow_forward
- Don't Use Chat GPT Will Upvote And Give Handwritten Solution Pleasearrow_forwardDavid is working on her farming business and faces the challenge of watering her plants daily,which is a tedious and time-consuming task, especially under the scorching sun. The path shefollows for watering the plants is illustrated in figure 1.David's son has taken on the task of designing a prototype to automate the watering process forher. Figure 2 depicts the design, featuring a set of rods. The curved path represents David'stypical watering route, and the straight rod AB AB is confined to move along the path due to the pinsat its ends. Water sprinklers will be positioned at points A and B to efficiently water the plants.At the instant shown in figure 2, point A has the motion shown while its at the edge of the path.Determine the velocity and acceleration of point B at this instant.arrow_forwardHartley Electronics, Inc., in Nashville, producesshort runs of custom airwave scanners for the defense industry.The owner, Janet Hartley, has asked you to reduce inventory byintroducing a kanban system. After several hours of analysis, youdevelop the following data for scanner connectors used in onework cell. How many kanbans do you need for this connector?Daily demand 1,000 connectorsLead time 2 daysSafety stock 12 dayKanban size 500 connectorsarrow_forward
- I have been working on this Solid Mech problem for a while and have gottem nowhere we are supposed to be finding the modulus of elasticity for a set of data (attached). I have made an excel sheet from this to finda stress strain graph. I understand how the modulus of elasticity is (E = (delta stress)/(delta strain)) but I cannot find the propotional limit that I need to find delta stress and delta strainarrow_forwardHello. I need help with this review question. Please help me out.arrow_forwardI just need a drawing or interpretation of this question, i just need how to draw or execute this (pleaseee help) thank yoouuu in advancearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY