Week # 7- Journal
Ideation
Tell us about your assignment's idea for this week. Why do you care about this idea? What inspired you? (Please include images or links to sources of inspiration)
The idea is to make cooling system with lights indicators controlled by temperature sensor, so when the Temp. is high than 25 c, the fan run automatically to reduce the heating degree for Laptop.
Tool Chain
Which software/machines/materials did you use in the assignment? Why?
I used different Thing as below:-
A- Tinkercad to do simulation for the blender components.
B- Bread board, wires, Red led, ON-OFF button 5V fan, arduino UNO board, LM35 Temp. sensor and crocodiles wire, resistor.
Design/Preparation Process
Explain the design and/or preparation process of your assignment. How did you use the tool or software to design and/or prepare your assignment before fabrication/implementation?
https://www.tinkercad.com/things/79hOxACcrzh
The process of simulating come as below:-
Open tinkercad website.
Log in the account.
Choose create circuits.
Add Arduino UNO board ,breadboard, led, resistor and DC motor and Temp. Sensor to the work space.
Assemble all components together as the picture attached.
create the code as blocks.
Run the simulation to stand on the result.
Development/Implementation Process
Explain the development/implementation process of your assignment. How did you use the machine/tool to manufacture or implement the design of your assignment?
The implementation process come as STEPS:-
first prepare the components on the work area as below:
LM35 Temp. sensor.
5V fan.
2V red led.
resistor.
ON-OFF button
Arduino uno board.
wire to connect all components together in the breadboard.
USB to Arduino connector to get the power
Second create the Circuit :
Connect positive and ground from Arduino board to bread board.
Put the LM35 on the bread board.
Connect ML35 vc to the positive on the board and ground to ground on the board.
Connect output LM35 to the Analog input on the board.
Put resistor on the bread board.
Put Red led connected to resistor on board
Connect Red led positive to digital pin 3.
Connect Red led ground to the breadboard ground.
Connect the fan to the positive and ground.
Upload the code to the Arduino board.
// C++ code
//
int val;
void setup()
{
pinMode(10, INPUT_PULLUP);
pinMode(A2, INPUT);
pinMode(3, OUTPUT);
pinMode(6, OUTPUT);
Serial.begin(9600);
}
void loop()
{
digitalWrite(10, HIGH);
val = analogRead(A2);
float mv = (val / 1024.0) * 5000;
float cel = (mv / 10);
Serial.print("Temp = ");
Serial.print(cel);
Serial.print("c");
Serial.println();
if (digitalRead(10) == HIGH || (cel >= 25) {
digitalWrite(3, HIGH);
digitalWrite(6, HIGH);
} else {
digitalWrite(3, LOW);
digitalWrite(6, LOW);
}
delay(10); // Delay to improve simulation performance
}
The code show as below:-
Identify pin 10 as input start with High value , pin A2 as input to read data from sensor, pin 3 & 6 as output to give value High or low to do action.
Identify word val as integer so Arduino can understand that val is refer to number.
Identify serial data.
Inside the loop
A-identify the val = data reciving from Temp sensor.
B- divided the val on 1024 "value of reading analog data ".
C- identify the Temp . as Celsius by divided it on 10 to convert from F to CIf condition
A- when button in on or Temp. bigger than 25, action fan run and red light turn on.
B- when button in off or Temp. Less than 25, no action happen.
Overcoming Challenges
What kinds of challenges or problems did you face while doing the assignment, tutorials, or exercises? How did you solve them? Did you ask for help from an instructor or peer? Please provide a link to the tutorial or article that you used to solve your problem (if any)
The challenge was to make the ON-OFF button control the circuit as manual mode but i had problem because the button doesn't do the function correct.
so i used On-OFF button pinMode as INPUT_PULLUP so when i turn off the button it take signal to power the circuit.
Final Project
How can you use the skills and knowledge that you've acquired this week in your final project?
That would help me to stand on how to use ON-OFF button with Temp. sensor and Led which is automatic and manual mode.
WOW!
What is the coolest thing that you've learned this week? What is something that you will never forget from this week?
How to design and write the code as i would like to run the process of the project and to get what i target.