Week 7- journal
Week 7- journal
The assignment for7th week :
Design and program a smart device that perform a certain function or solve a problem: program Arduino UNO to read signals from multiple input components (Sensor, Switch, or variable resistor) to control multiple action components (Motor, Buzzer, LED...etc) using Arduino C (Text Code).
I applied all process as the following with a consideration of instructions:
Idea: "Mongiz" Project !
simulation part of the final project actions.
sequence should be as the following:
1- Putting the order inside the box.
2- the door of money opens.
3- LCD writes instruction. (User Interface).
4- closing the door after the operation has been done.
5- LCD writes thanking message.
Software/Tools/ materials has been required for the project as the following:
Material:: cardboard.
Card Board
Design Software (an electric circuits & simulation) : TinkerCAD
Components:
Arduino- port-Breadboard- Servo-IR Sensor- LCD-Plug wires .
I designed the circuit depending on the sequence of the main idea, used the Tinker-Cad to simulate the circuit connections as the following:
Circuit on Tinker Cad!
IR sensor/input detects the object, so servo/output opens money gate then LCD/output writes instruction (UI) as "Kindly, Have Your Money".
I selected and arranged the code blocks depending on the sequence of the main idea, used the Tinker-Cad /code/blocks to simulate the circuit and the code blocks as the following:
I divided the code into 2 parts to imagine the sequence steps:
Part A: IR sensor as Input, Servo as Out put.
if IR sensors is High, detect the object, Servo/Output position= 80 Degree (Opens the Door).
Part A (IR with Servo.)
Part B: (PartA+LCD.)
inserting LCD as out put with part A components. it needed to make some amendments of Part A.
now code means:
if IR sensors is High, detect the object, Servo/Output position= 80 Degree (Opens the Door) & LCD writes: "Kindly, Have Your Money.
The Full Code
Step 1:Testing mechanism of the door with Servo fixing has been done,
Step2: applying the circuit on breadboard.
Step3: fixing IR sensor&LCD and testing Part A coding components in their cardboard house.
Servo Testing
Circuit Implementation
LCD OutPut
Mechanism Checking
Controlling the arm connection (Door mechanism) had some try and errors but I did it finally, Ibrahim "the Instructor" helped me alot. he made it more simple by removing the third connector I wadding to transfer the movement from servo to the door
I texted part of the coding but still proceeding to link all according to the demanded logical sequences for the full process.
it was a good step towards the final project, discovered the challenge points and some solutions.
Smart Home Application!
Manual Controlling: Push Buttons controllers.
Auto Controlling: Sensing the darkness switches on the light and sensing the temperature moister.
I shared the full process with Nariman.
this session answered many questions about the applications of coding & smart components.