IR detector
This assignment idea is to Design, simulate, and build a simple electronic device that performs two actions.
considering the assignment idea, I got my inspiration from these IR sensor which are on the gates to detect if any one is tying to cross the door, either that was to catch him or alarm him that the door is closing, like the shutter doors does.
In this week's assignment, I've used TinkerCAD to design and simulate the circuit. And for building the real circuit, I've used these components:
Arduino UNO (as 5V Power Supply), Power Supply 5V, IR sensor, Relay module, On\Off Switch, white LED, resistance 220 Ohm, Buzzer, Jumpers.
TinkerCAD platform
First step was to extract the components, and wire them with together using breadboard, then simulating the circuit and make sure it works as planned. The circuit needed to have relay module as explained below, but I didn't find the relay module on TinkerCAD, so I've simulated the base circuit without the relay, but it had been wired as explained in week lecture hands-on activity.
Making sure that the circuit is working well
In this circuit I had to use the relay module for two purposes; first one that when I've used the output signal from the IR, the led worked well, but this signal wasn't able to active the buzzer with the led.
the second one was that the output signal from the IR module that we have in the kit is NORMALLY CLOSSED in the regular case (NO object detection), and I needed just the opposite of that, so the relay module helped me to solve these two problems.
Firstly, I've tested my circuit powered by 5V from Arduino without the relay module, just depending on the sensor signal as described above.
but the buzzer wasn't able to make it's buzz at all, just very little buzz you can't hear till you get very near from it.
I had to search for solution for the problem, so I've used the relay module as described above. and it went great, just like planned. In the circuit I needed two power supplies 5V, so I've used the one in the kit, and used the Arduino as second power supply.
IR sensor doesn't see object
IR sensor sees object
and here's a video showing the actual circuit
The next step was to build the detector enclosure and but the whole circuit in it showing the output elements, power supply jack, and sensor transmitter and receiver.
The next step was to cut the card board and make the device enclosure, put the components inside and reconnect the wiring , try the device now after the final touches :D
Here's video showing the device while working ^_^
the finishing of the enclosure might be not good looking enough, but it work great as planed :D
I had problem that the circuit needed two power supplies, I had two options, first on to use the 5V power supply and the 9V power supply with the volt regulator to have 5V output from it, but I hadn't two connection jacks,So, I had to use the Arduino as second 5V power supply.
It was really great to deal with the relay module in the hands-on activity, with out this component I wouldn't make this device