Professional Documents
Culture Documents
Introduction
hobbyist, students and enthusiast alike uses microcontrollers for their own
education use microcontrollers and play a huge role in the course syllabus.
the users want. It has many features compared to PICs and has a wide range of
The Raspberry Pi is a low cost, credit-card sized computer and has the
ability to interact with the outside world. It can be used to make electronic
projects and users can learn the Python programming language. From what the
researchers have observed from the theses section in the library, out of fifty
(50) researches gathered from year 2009-2014, only twenty-eight (28) have
used microcontrollers, only two (2) have used the Arduino platform and no one
used the Raspberry Pi. This is due to the students having little to no knowledge
1
of the Raspberry Pi. The students are not exposed to new technology and are
lagging behind the time. The introduction of Arduino is a good start but it is not
a laboratory circuit trainer based on Raspberry Pi will not only widen the
b. Interfacing
c. Data communications
2
III. Significance of the Study
programming and circuit design. With this circuit trainer, we won’t be needing
computer the size of a credit card which only requires a small power source.
Due to the cheap price of the minicomputer, students won’t have to worry
breaking it during experiments. In the near future, single board computers will
trainer which will be put into use in three engineering courses of the University
might be able to build or create other designs or projects which may further
3
Professors. Professors will also benefit from this project. Since the
traditional way of teaching is through theory, professors could use the trainers
engineering.
terms of the GPIO, the pins can only tolerate 3.3 volts compared to Arduino
Uno which can accept 5 volts from various outside devices. Aside from the
voltage tolerance, the Raspberry Pi 2 model B has only 1 PWM output. The
VI. Methodology
This section contains procedures taken into account for the development
4
A. Research Design
The research study was outlined using the structure of applied research.
It involved the application of basic principles about circuits and basic concepts
will be used to communicate with other devices. The design structure was
B. Conceptual Framework
the trainer based on minimum requirements of CHED and the course syllabus
implementing programming and circuit design subjects. Topics that are covered
designed a trainer and construct the main board that contained various circuit
Experiment gathering
from various sources
based on the course Circuit design, circuit Raspberry PI
syllabus and or the testing and board Laboratory circuit
CHED Memorandum fabrication trainer
Order 13 Series of
2008
5
C. Multiple Designs and Constraints
Both designs have the same modules and components. Components like
resistors, and transistors are soldered directly into the board. The difference is
mainly found in the circuit board. In Design A, the components are soldered
directly into the circuit board while in Design B has female pinheaders soldered
and the components are attached later. See figure 9 for Design A and figure 10
for Design B.
Figure 9. Design A
6
The researchers considered the following realistic constraints of the two
proposed designs:
Design A and Design B’s cost are almost comparable. However, in the long run
dismantled and remade while Design B can be easily replaced with new
Table 1. Costing
Design A Design B
Main Components Price Main Components Price
1 PCB 15x12 PHP 180 2 PCB 9.5x6.5 PHP 123.5
1 Raspberry Pi Kit PHP 2,678 1 Raspberry Pi Kit PHP 2,678.04
10 Female Pinheader PHP 80 30 Female Pinheader PHP 240
Total PHP 2938 Total PHP 2942
Model B as the main computer. Considering that the Raspberry Pi only uses 5
volts, 2 amperes direct current electricity, we can’t deny the fact that this
the research helps lessen the consumption of electricity and will lead to less use
of fossil fuels. Also, the researchers will use little to no hazardous materials in
7
Manufacturability Constraints. The researchers had considered many
things to complete the trainer. This included the physical dimensions, circuit
design, and time consumption. With design A, the circuit components are
soldered directly to the circuit board while design B has pin headers that will be
D. Trade-offs
Somewhat not
Economical in the long
economical in the long
Economical run because of
run because of non-
replaceable components.
replaceable components.
Uses 5 volts 2 amperes Uses 5 volts 2 amperes
Environmental
power source. power source.
Components are
Components are directly
removable because of
Manufacturability soldered to the circuit
soldered female
board.
pinheaders.
Easier to sustain because
Less sustainable in the
Sustainability of easy component
long run
replacement.
8
Design A was discarded by the researchers since it is not that economic
and not easy to sustain as mentioned above. Design B has been chosen as it is
E. Design Standards
establishes the generic requirements for the design of organic printed boards and
card form factors. The organic materials may be homogeneous, rein- forced, or
double, or multilayered.
This specification establishes the general requirements for printed boards and
the quality and reliability assurance requirements that must be met for their
acquisition. The intent of this specification is to allow the Printed Board user
9
F. Research Procedure
The study was focused on creating a circuit trainer using the Raspberry
Pi.
functionality.
3. After the functionality test, the circuits were made into a printed
10
Figure 9. Process Flow for the Development of the Trainer
Testing Procedure:
11
VII. Findings of the Study
This section contains the final design of the trainer and the results and
findings attained from the series of tests conducted to serve the purpose of the
study.
designed a trainer that the parts are easily replaceable incase a component
doesn’t work anymore. The dimensions of the enclosure of the trainer are 16
inches. Shown in Figure 12 is the back part of the trainer which shows the AC
socket and the switch for turning on the trainer. There are two circuit boards as
shown in Figure 13. The dimensions of each board are 9.5 inches by 6.5
complicated components like motors and sensors. A 7-inch monitor is the main
12
Figure 11. Final Trainer
13
Figure 13. Printed Circuit Board
RFID. Shown in Figure 14 are the components found in the circuit trainer.
14
Functionality Test Results
Shown in Table 3 are the results of the test procedures conducted for the
LED display. The objective was to ensure that the lights emitted by the LEDs
were stable. The tabulated data below show that the testing conducted was
successful.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
15
Shown in Table 4 are the results of the test procedures conducted for the
Active buzzer module. The objective was to make an active buzzer sound and
ensure that it is functioning as it should be. The table below indicate that it was
working properly.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
16
Shown in Table 5 are the results of the test procedures conducted for the
Passive Buzzer. The objective was to make an active buzzer sound and ensure
that it is functioning as it should be. The table below indicate that it was
working properly.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
17
Shown in Table 6 are the results of the test procedures conducted for the
Tilt Switch. The objective was to know whether or not the tilt switch works as
it should be by tilting it to a certain angle. The tabulated data indicate that the
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
18
Shown in Table 7 are the results of the test procedures conducted for the
button control. The objective was to know where or not the buttons are
consistent when pressed. The result of the test was successful as shown in the
Table 7. Button
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
19
Shown in Table 8 are the results of the test procedures conducted for the
Relay. The objective to know where or not the relay works as intended. The
relay produces a sound whenever it opens or closes. The tabulated data below
Table 8. Relay
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
20
Show in Table 9 are the results of the test procedures conducted for the
RGB LED. The objective was to ensure that all three colors of the RGB led are
okay and works at is it should. The tabulated data below show a result that the
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
21
Shown in Table 10 are the results of the test procedures conducted for
the 7-Segment Display. The objective was to guarantee that the lights emitted
by the nodes of the segment were equally distributed. The tabulated data below
is the trials conducted during the testing which give a successful result.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
22
Shown in Table 11 are the results of the test procedures conducted for
the 74HC959. The objective was to ensure that the IC can drive the 7-segment
display and the dot-matrix display. The tabulated data below is the trials
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
23
Shown in Table 12 are the results of the test procedures conducted for
the 4-digit 7-Segment Display module. The objective was to ensure that all
LED nodes of the display works. The tabulated data below shows that the
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
24
Shown in Table 13 are the results of the test procedures conducted for
the 16x2 LCD. The objective was to know whether the LCD displays the
intended output. The data below tells that the testing was successful.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
25
Shown in Table 14 are the results of the test procedures conducted for
the Matrix Keyboard. The objective was to ensure that all keys are working.
The tabulated data below tells that the testing was successful.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
26
Shown in Table 15 are the results of the test procedures conducted for
the Ultrasonic Sensor. The objective was to ensure that the sensor
communicates correctly with the Raspberry Pi. The result of testing was
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
27
Shown in Table 16 are the results of the test procedures conducted for
the Temperature & Humidity Sensor – DHT-11. The objective was to ensure
the interconnection of the GPIO and the sensor was functional. The data below
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
28
Shown in Table 17 are the results of the test procedures conducted for
the Dot-Matrix Display. The objective was to ensure that all lights are
functional and lights emitted are equally distributed. The tabulated data below
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
29
Shown in Table 18 are the results of the test procedures conducted for
the Photoresistor. The objective was to measure the variable resistance based
on the light intensity. The tabulated data below show that the testing was
successful.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
30
Shown in Table 19 are the results of the test procedures conducted for
the Thermistor module. The objective was to measure the variable resistance
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
31
Shown in Table 20 are the results of the test procedures conducted for
the LED Bar Graph. The objective was to ensure that all light nodes of the LED
Bar Graph are all functioning. The tabulated data below tells that the testing
was successful.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
32
Shown in Table 21 are the results of the test procedures conducted for
the DC motor module. The objective was to ensure that the motor turns
according to the state commanded by the Raspberry Pi. The states of the DC
motor include forward, reverse, acceleration, deceleration and stop. The testing
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
33
Shown in Table 22 are the results of the test procedures conducted for
the stepper motor. The objective was to ensure that the Raspberry Pi connected
to the motor driver are communicating correctly and that the motor turns
according to the Pi’s command. The output of the stepper motor is to rotate
forward, backward and stop. The tabulated data below show that the testing
was successful.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
34
Shown in Table 23 are the results of the test procedures conducted for
accelerometer works and the output changes depending on the axis of the
component. The tabulated data below show that the testing was successful.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
35
Shown in Table 24 are the results of the test procedures conducted for
the PS2 Joystick. The objective was to ensure that all states of the joystick, left,
right, up, and down, are working properly. The table below show that the
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
36
Shown in Table 25 are the results of the test procedures conducted for
the Potentiometer. The objective was to ensure that the output of the
potentiometer changes whenever the knob is turned. The tabulated data below
shows that the program used and the device are functional and stable.
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
37
Shown in Table 26 are the results of the test procedures conducted for
the Passive Infrared (PIR) Sensor. The objective was to know where or not the
PIR sensor detects motion. The tabulated data below shows that the program
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
38
Shown in Table 27 are the results of the test procedures conducted for
the Servo motor. The objective was to ensure that the servo motor turns
according to the state command of the Raspberry Pi. The states are 0 degrees,
90 degrees, and 180 degrees. The tabulated data below show that the testing
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
39
Shown in Table 28 are the results of the test procedures conducted for the
RFID. The objective was to ensure that there is data communication between
the RFID card and the Raspberry Pi. The tabulated data below show that the
Functional
1 Successful
2 Successful
3 Successful
4 Successful
5 Successful
6 Successful
7 Successful
8 Successful
9 Successful
10 Successful
11 Successful
12 Successful
13 Successful
14 Successful
15 Successful
40
VIII. Conclusions
Based on the findings of the study, the researchers came up with the
following conclusions:
important in studying.
concepts for which it was tested on. The components tested were
GPIO like LEDs and buttons, interfacing like motors, and data
IX. Recommendations
Based on the results of the tests conducted by the researchers and the
helpful for all students who are enrolled in subjects that has circuit
41
computer usage to the components used on the trainer. One can use
42