This week's assignment was to Build and Program a smart circuit using an Arduino UNO
I want to make a fire alarm
Fire alarm is a device that detects and alerts people of fire
inspiration
electronic component :
arduino uno
lm 35 sensor
jumber wires
buzzer
led
resistor
software :
thinker cad to simulate the circuit
arduino id to run the code
simulate the cercuit
using thinkercad to simulate the circuit and make sure that my connection is okay by using breadboard , arduino , then connect it to the breadboard then i put the led with 220 ohm resistor , then conect the buzzer
start to use bread board and arduino
use lm35 sensor nd conect
power
GND
signal in A0
use led with resestor and connect
GND
power to pin 3
use buzzer and connect
GND
power to pin 5
Final circuit
start to use code blocks
start to use (if else ) condition from control tap
from math tap
then from input tap choose read tempreature sensor
then choose pin A0 and make the condition >= 30 c
choose from output tap
set pin .... to ....
and choose pin 5 & pin 3 to HIGH
then duplicate the output
then change from HIGH to LOW
finall code
first start to build the cicruit
start to connect the vcc and ground to arduino
connect lm35 to ground and vcc and the signal to pin A0
connect led with resistor then connect to garound and pin 3
connect buzzer to groumd and pin 5
final circuit
second , using arduino id to uplode the cod to arduino
Before
After
first overcome , in code put 30> instead of 30<
so it works for cold , not heat 😆😂
the previous knowledge and skills I had learned this week will reflect a lot of benefits on the final project, for instance,
using thinkercad to simulate the circuit
how to make smart device using arduino
coding by use code block
spend special time on friday and doing activities
try to make RGB led to illuminate red,blue,green,orange,purple,white
Build a Smart Waving Hand using Arduino