A flowchart showing how the product will be made:
Materials:
· HDMI Cable: To transfer data to be displayed on the monitor.
· Female to Female Jumper Wires: Used to connect to external devices.
· PIR motion Sensor: Sensor that detects movement
· Raspberry Pi (model b): A mini computer
· Ethernet cable: Connect one device to another so the internet can be shared.
· USB keyboard and mouse: USB used to connect to keyboard and mouse.
· SD card and adapter: Stores data. Put into adapter for accessibility on computer.
· Protective case for raspberry pi: To protect raspberry pi.
· TV or HDMI monitor: To display the output.
Software:
· Raspbian
· SD formatter
· NOOBS
· Python 3 DLC Programming
Creating the product (step-by-step process)
Steps
|
Parts required
|
Description
|
Date
|
Time taken
|
Assemble a protective for my Raspberry Pi Model B
|
· Opaque
plastic case
· Raspberry
Pi Model B
|
Disassemble the case. Put the Raspberry Pi inside and put
the parts all together.
|
3rd February
|
5min
|
Install NOOBS
file into Raspberry Pi
|
· SD
Formatter (in computer)
· SD card
· SD card
adapter
· NOOBS
file (in computer
|
Go to raspberrypi.org site and download NOOBS file. Go to
sdcard.org site and download SD formatter program. Place SD card inside card
adapter. Put it in the SD card reader of the computer. Format file and
extract NOOBS files into the SD card.
|
5th February
|
20min (extra 1hr for installation of NOOBS file and 5min
for SD card Formatter program)
|
Make all connections from the circuit board to the TV or
Monitor
|
· Ethernet
cable (if you want to use any other operating system)
· HDMI
cable
· USB
keyboard and mouse
|
Attach USB (for keyboard and mouse) into the USB port of
the circuit board. Connect HDMI cable (and/or Ethernet cable) to TV or
Monitor.
|
6th February
|
5min
|
Then, connect the power adapter to the board.
|
· Micro
USB power adapter
|
Attach the power adapter to the board. It will be supplied
with power and will start to boot.
|
6th February
|
5min
|
Select operating system and install it
|
-
|
Choose an operating system and it will start installing.
After that, you change details such as preferences, network, etc.
|
6th February
|
30min
|
Search extra parts for alarm
|
Internet
|
Search the internet for a PIR motion sensor and female to
female jumper wires for alarm
|
7th February
|
1 day (for delivery)
|
Connect the raspberry pi to the PIR motion sensor
|
· PIR
motion sensor
· Female
to Female jumper wires
|
For the GPIO header of the circuit board, connect the 5V
pin to the part labelled VCC on the sensor, GPIO pin 4 to OUT and GND to GND.
|
9th February
|
5min
|
Boot the Pi software into TV and write the code for
movement detection
|
Python 3 DLE
|
Go to Python Software in order to write a program for
movement detection. Run the code and check whether is functioning properly. If
pin is HIGH, it means there is movement. If it is LOW, there is no movement.
|
9th February
|
30min
|
Add any other improvements
|
PIR motion sensor
|
Adjust sensitivity and detection time by using the
potentiometers in the motion sensor.
|
7th March
|
40min
|
Create a program sequence in Scratch for movement
detection (Additional)
|
Scratch
|
First, start GPIO server. Then, double-click background
stage. In the script section, take a “broadcast” block palette from Control. Type
in the box, config4in. This shows that the OUT pin of the motion sensor is
configuring with GPIO pin 4. After this, select a sprite and create a program
sequence where it will appear enlarged and sound will emerge when movement is
detected.
|
8th March
|
16mins
|
Screenshots for my project:
In this picture, I am assembling my parts for the setup. Here are some parts: USB keyboard and mouse, raspberry pi + (model b), USB power adapter, HDMI cable, SD card, SD card adapter and ethernet cable.
Here, I am assembling the case for raspberry pi. First, I disassemble the covering of the case. Then, i place the raspberry pi inside and lock in place with the disassembled case and cover with lid.
Here are my SD card and SD card adapter. I put the SD card inside the adapter into the adapter so it can be accessed on the computer.
On the computer, I am downloading a NOOBS file so that it can be preloaded into the SD card. Then, I extract the files from the NOOBS file to the SD card. After that, I will remove the micro SD card from the adapter and put into micro SD card slot in the Raspberry Pi.
The diagrams above show how the program will be carried out. Firstly, I make all connections from circuit board to TV. I connect the HDMI cable and the USB keyboard and mouse. In this project, i didn't add an Ethernet cable, however, it isn't necessary. Then I supply power to the board using a micro USB power adapter and it will boot on the TV. Then an option bar will occur telling which one to select. I selected Raspbian and downloaded it. Here is the program above.
However, I used another method instead of the HDMI monitor or TV. I connected the Pi to laptop using direct network connection.
d
In the Putty application, I entered the ip address of the Pi (after setting up a fixed ip address through DHCP Server Wizard). Putty is an open-source terminal emulator which supports network protocols such as SCP, SSH, Telnet, rlogin and raw socket connection. Here, it uses Secure Shell network protocol (SSH). This will direct me to Pi's command line where I can execute commands.
After getting access to the command line of the Raspberry Pi, I set up a VNC server by using this command: vncserver :1. This server can then be found by other devices using a VNC viewer client. Virtual Network Computing is used to display a device's desktop display on another device.
In VNC viewer client, I entered the ip address as 192.168.2.100:1. I wrote :1 because the Ethernet is connected to port 1 through the computer. I entered my password and got access to raspberry pi's desktop as shown above.
Finally, I created my code sequence in Scratch. First, I started the GPIO Server. Then, in the Sensor block palette, I clicked GPIO 4 and the checkbox. It was displayed on the background. I then created the code sequence for the Robot sprite. This sequence's aim was to make the sprite appear immediately once movement was detected. In addition, the computer beeps sound was added to signal the person that there is an intruder. If there was no movement detected, the sprite would disappear and the sound would stop.
After getting access to the command line of the Raspberry Pi, I set up a VNC server by using this command: vncserver :1. This server can then be found by other devices using a VNC viewer client. Virtual Network Computing is used to display a device's desktop display on another device.
In VNC viewer client, I entered the ip address as 192.168.2.100:1. I wrote :1 because the Ethernet is connected to port 1 through the computer. I entered my password and got access to raspberry pi's desktop as shown above.
Gantt Chart:









No comments:
Post a Comment