2. TABLE OF CONTENTS
1. Executive Summary
2. Description
3. Justification
4. Schematic
5. Parts List
6. Theory of Operation
7. Software Listing Letters
8. Software Listing Arrows
9. Block Diagram
10. Test Procedure
11. Test Report
12. Time Line
13. Problems
14. References
15. Data Sheets
3. EXECUTIVE SUMMARY
• Built an electronic
compass
• Displays the cardinal
directions
• Costs $25.83
• Took seven weeks to
complete
4. DESCRIPTION
• Had to order and build the
compass within a deadline and
budget.
• The compass needed hardware
and software construction.
• Hardware: soldered and
assembled the components
onto the circuit board.
• Software: created a program
that instructs the hardware
what to do.
• Within the deadline I would
document a weekly progress
report upon completion.
5. JUSTIFICATION
MintyBoostv3.0
• Its purpose is to function as a small portable USB
charger for devices like iPhones and iPods.
• Costs $19.50.
Chap Stick LED Flashlight
• Functions as a mini flashlight.
• Made from LEDs, Chap Stick Tube, battery and
more…
Electronic Compass
• Runs on hardware and software.
• Displays all the cardinal directions.
• Costs $25.83.
• I chose to build the compass because the
other devices were too easy to make.
• Plus, I need practice in programming so that
will help my experience.
6. SCHEMATIC
U3
PIC16F72
MCLR
A0
A1
A2
A3
A4
A5
VSS
OCS1
OSC2
C0
C1
C2
C3 C4
C5
C6
C7
Vss
Vdd
B0
B1
B2
B3
B4
B5
B6
B7 U2
08FYD5421AS
E1
N2
NC3
M4
L5
G26
D7
DP8
C9 B 10
CC2 11
A 12
G1 13
K 14
J 15
CC1 16
H 17
F 18
Bus1
F(1)
H(2)
E(3)
N(4)
G1(5)
A(6)
L(7)
C(11)
CC1(8)
CC2(9)
R2
220Ω R5
220Ω
Bus1 Bus1
B5(12)
B4(14)
B1(15)
B0(16)
C7(17)
C6(18)
B7(19)
B6(20)
C5(21)
B3(22)
B2(23)
C4(24)
C1(25)
G2(26)
D(27)
B
Title:
Designed by:
Checked by:
Approved by:
Document No:
Date:
Sheet of
Revision:
Size:
COMPASS2 COMPASS2
Eric Ayala
ECT-295L
0001
2012-12-04
1 1
1.0
A
Desc.:
801-111 Peter Street
Toronto, ON M5V 2H1
(416) 977-5550
National Instruments
U1
LM7805CT
LINE VREG
COMMON
VOLTAGE
VDD
5V
C1
10µF
C3
1µF C2
1µF
P1
HDR1X2
On/Off jumper
C4
10pF
R1
10kΩ
RNET1E
100kΩ
VDD
5V
C5
10pF
U4
11S1490
SB1
SE2
SC3
EB4
EE5
EC6 NB 7
NE 8
NC 9
WB 10
WE 11
WC 12
RNET1C
100kΩ
RNET1B
100kΩ
RNET1A
100kΩ
RNET1E4
100kΩ
K
M
J
7. PARTS LIST
Item # Quantity Part # Description Vendor Item Cost Subtotal
1 2 14DK50010P-W Ceramic Cap 10pf (0.2' spacing) RadioShack 2 x $0.74 $1.48
2 2 14MN0501U-W Mono Cap 1uf (0.2' spacing) RadioShack 2 x $1.75 $3.50
3 2 13005220 220 ohm, 1/4W RadioShack 2 x $1.44 $2.88
4 1 1300510K 10k ohm, 1/4W RadioShack 1 x $1.44 $1.44
5 1 14ER05010O 10uf electro cap sparkfun ELECTRONICS 1 X $0.45 $0.45
6 1 08FYD5421AS Dual alphanumeric display Ebay 1 x $2.50 $2.50
7 1 10PIC16F72-I/SP PIC Microprocessor 16F72 Ebay 1 x $2.39 $2.39
8 1 19ICL28-N IC socket 28 pin Ebay 1 x $0.99 $0.99
9 1 11S1490 Compass module -Sensor 1490 Zagros Robotics 1 x $16.95 $16.95
10 1 24SHTEXBAR Shorting Bar (Long Bar) Digi-Key Corporation 1 x $4.75 $4.75
11 1 107805-L 5 Volt Regulator 78L05 Ebay 1 x $1.99 $1.99
12 1 2800RG9 9V battery Ebay 1 x $0.99 $0.99
13 1 2801BSI 9V battery conector Ebay 1 x $0.59 $0.59
14 1 97COMPASS PCB Ebay 1 x $3.98 $3.98
15 1 240220DF Female Header (10x2) Ebay 1 x $0.99 $0.99
16 1 23561L6.50 Nylon tapped spacer 1/2' Ebay 1 x $0.99 $0.99
17 1 2321M3-10 Screw M3-10 RC PLANET 1 x $2.49 $2.49
18 1 13S8,7100K 100k SIP (8,7) network Ebay 1 x $1.00 $1.00
19 1 240202S Jumper 1x2 Ebay 1 x $0.99 $0.99
20 1 60700 Solder Tube RadioShack 1 x $7.49 $7.49
21 1 2330RB1 Rubber Feet Ebay 1 x $2.99 $2.99
Total $61.82
1 32DVRECETCOMPR1 Electronic Compass Kit Follet Bookstore 1 x $25.83 $25.83
8. THEORY OF
OPERATION
• For software:
Converted binary
data into
hexadecimal in
order to simplify
the program
Assigned cardinal
directions to the
proper ports
(A, B, & C)
10. THEORY OF
OPERATION CONT.
• Flowcode
• Used conditions to
hold true an input
which displayed an
output until it
became false
• Then, created a loop
that made it possible
to use both sides of
the display by having
each side flicker
back and forth fast
11. THEORY OF
OPERATION CONT.
• For hardware, the compass needs its
electronic components:
• a sensor which detects the cardinal
directions
• an alphanumeric display which will
display the cardinal directions
• a programmable integrated circuit
that processes the programmed
data
• a female header that will provide an
interface for another circuit that
connects to the PC
• a shorting bar that controls the
on/off state of the board.
• Plus, the circuit also runs on its:
• 9V battery
supply, capacitors, resistors, SIP
and voltage regulator which:
• supplies, stores, limits and
regulates the current throughout the
circuit.
17. TEST PROCEDURE
1. Checked if the circuit
connectivity by
connecting the 9V
battery.
2. Turned the compass
clockwise and counter-
clockwise to check if the
display module was
displaying the correct
signals from the sensor.
3. Compared the cardinal
directions of my
compass to a functional
compass.
19. TIME LINE
Week 1: Reviewed three possible projects
and chose the preferred project based on a
budget, time and difficulty.
Week 2: Created a schematic diagram of
electronic compass that displays the
connectivity throughout the circuit.
Week 3: Created the first initiation of the
program that displayed singly four letters
(N, S, W, and E).
Week 4: Created/converted binary data to
hexadecimal and decimal in order to
simplify the program. We altered the
program to display the rest of the cardinal
directions (NW, NE, SW, and SE).
Week 5: Received my compass kit.
Then, soldered and assembled my circuit.
And, added some adjustments to the
program that displayed arrows that always
point north. I then programmed my own
board for the first time.
Week 6: Experimented more with the
software and added the compatible
hardware that adjusted with the new
program. This involved adding a
speaker, wires, and a capacitor. So, by
using a speaker the program will output
different frequencies at different cardinal
directions.
Week 7: Documented the whole project on
the electronic compass which includes a:
technical
summary, description, justification, schema
tic diagram, parts list, theory of
operation, software listings, block
diagram, test procedure and report, time
line, problems, references and data sheets.
20. PROBLEMS
1. First, I didn’t receive my
kit until the fifth week.
But, the instructor let me
borrow his kit so I could
test my programs.
2. Then, the other problem
was that I had trouble
getting my program to
work properly. I had
forgotten to declare my
variables but the
instructor overlooked it
and caught the mistake.
21. REFERENCES
1. Professor Cliff Present
2. Colleague Paul Noska
3. Datasheet: PIC16F72
(http://ww1.microchip.com/downloads/en/devicedoc/3959
7b.pdf)
4. eCollege (www.devryu.net)