This document summarizes Eric Ayala's final project report for an applied electronics course. The project involved building an electronic compass that displays cardinal directions. It cost $25.83 to complete and took seven weeks. The compass uses a PIC microprocessor, compass sensor module, and alphanumeric display. It runs on a 9V battery and was programmed using Flowcode software to display the correct directions based on sensor input.
Machine Learning and Apache Edgent with STM32F401 to Firebase Mostafa Ramezani
The STM32F401 Nucleo board detects the heartbeats through the pulse sensor. Do real-time analytics on the continuous streams of data coming from sensor by Apache Edgent. Such as Aggregation, Categorize data in order to Reduce the amount of data transmitted to analytics servers and Reduce the amount of data to be stored . Data Pre-processed with Apache Edgent and then submitted to the Machine Learning algorithm. ML algorithm does Classification of Heart Disease Using K- Nearest Neighbor and detect Heart Disease such as Atrial fibrillation(Atrial fibrillation (AF or A-fib) is an abnormal heart rhythm characterized by rapid and irregular beating ) Finally all Data sent to Firebase Realtime Database by Firebase Admin in Java Application.
CONSEQUENCES OF INTEGRATION IN DIGITAL SYSTEM DESIGNSklezeh
Digital systems design teams are facing exponentially growing complexities and need processes and tools that reduce the time needed to gain insight into difficult system integration problems.
ECE321322 Electronics I & Lab Spring 2015 1 Final P.docxjack60216
ECE321/322 Electronics I & Lab Spring 2015
1
Final Project – Demo. Review Form
Student name:
Item Comments Grade
Simulation verification
Are the transformer and overall
power supply working
/10
Are the pre/main
amplifiers work?
/10
Final breadboard setup and test
Power supply works?
/10
Is Preamp design approach
correct and the board working?
/10
Is main amplifier design correct
and working?
/10
Lab skills
Proficient with lab equipment
and testing?
/10
Overall grade /60
ECE321/322 Electronics I & Lab Spring 2015
1
Final Project – Report Review Form
Student name:
Item Comments Grade
Project report
Report format as specified?
/10
Technical discussion with
simulation and measurement
data?
(Ability to analyze and design
complex electrical and electronic
devices)
/10
Did theory cover sufficient
details to compare and justify
experimental data?
(Knowledge and ability to apply
mathematics)
/10
Appendix: Pspice source files
and other info (e.g., data
sheet)?
/10
Overall grade /40
1
ECE 321 Final Project
This project is for individual student and is NOT a team project.
HOWEVER, collaboration among team members (i.e., ECE322 team) is strongly
encouraged and should be properly acknowledged in the final project report.
Final Project Report Due: May 4, 2015 to be uploaded onto Evaltools
Project Demo:
Tues., 5/5/15, 1:30 - 3:30 For TTH Classes that meet at 3:00 pm (ECE 322_01)
Wed., 5/6/15, 1:30 - 3:30 For MWF Classes that meet at 3:00 pm (ECE 322_02)
Objective
1. To design an “analog computer” to fulfill the following requirement
Vout = 25*(A*V1in + B*V2in)
where V1in = V2in = 10 mVpp @ 1 kHz, is the input sinusoidal (sine) signal to the analog
computer, which can be generated from a function generator; Vout is the output of the
computer; and A is a constant of your birth month mod 10 (divide by 10 and take the
remainder) and B is a constant of your birth day mod 10 (divide by 10 and take the
remainder).
e.g., If your birthday is November 7, A = 11 mod 10 = 1 and B = 7 mod 10 = 7.
If your birthday is February 26, A = 2 mod 10 = 2 and B = 26 mod 10 = 6.
2. To verify the circuit design with the help of contemporary software
3. To build and test the final design on breadboard
Instructions and Related Information
Figure 1 shows an illustrative block diagram of the analog computer.
Figure 1. Block diagram of an “analog computer”
2
DC dual-polarity power supply:
1. It should be able to provide a stable ±12V dc power.
2. 7812 and 7912 voltage regulators are available (datasheets are available at
AllUser U:\ECE Component Library on lab workstations). If you are using your
own laptop, you need to type \\ECEVault\AllUser\ECE Component Library.
3. Refer to the figure below (read Chapter 17 of your textbook):
...
For more classes visit
www.snaptutorial.com
1. Does a typical computer have any analog outputs? If so, what are they?
2. List three advantages of digital signal representation as compared to their analog representation.
3. Convert 126 x 10+2 to scientific and engineering notations.
4. Make the following conversions:
a. Convert 0.34 seconds to milliseconds.
Machine Learning and Apache Edgent with STM32F401 to Firebase Mostafa Ramezani
The STM32F401 Nucleo board detects the heartbeats through the pulse sensor. Do real-time analytics on the continuous streams of data coming from sensor by Apache Edgent. Such as Aggregation, Categorize data in order to Reduce the amount of data transmitted to analytics servers and Reduce the amount of data to be stored . Data Pre-processed with Apache Edgent and then submitted to the Machine Learning algorithm. ML algorithm does Classification of Heart Disease Using K- Nearest Neighbor and detect Heart Disease such as Atrial fibrillation(Atrial fibrillation (AF or A-fib) is an abnormal heart rhythm characterized by rapid and irregular beating ) Finally all Data sent to Firebase Realtime Database by Firebase Admin in Java Application.
CONSEQUENCES OF INTEGRATION IN DIGITAL SYSTEM DESIGNSklezeh
Digital systems design teams are facing exponentially growing complexities and need processes and tools that reduce the time needed to gain insight into difficult system integration problems.
ECE321322 Electronics I & Lab Spring 2015 1 Final P.docxjack60216
ECE321/322 Electronics I & Lab Spring 2015
1
Final Project – Demo. Review Form
Student name:
Item Comments Grade
Simulation verification
Are the transformer and overall
power supply working
/10
Are the pre/main
amplifiers work?
/10
Final breadboard setup and test
Power supply works?
/10
Is Preamp design approach
correct and the board working?
/10
Is main amplifier design correct
and working?
/10
Lab skills
Proficient with lab equipment
and testing?
/10
Overall grade /60
ECE321/322 Electronics I & Lab Spring 2015
1
Final Project – Report Review Form
Student name:
Item Comments Grade
Project report
Report format as specified?
/10
Technical discussion with
simulation and measurement
data?
(Ability to analyze and design
complex electrical and electronic
devices)
/10
Did theory cover sufficient
details to compare and justify
experimental data?
(Knowledge and ability to apply
mathematics)
/10
Appendix: Pspice source files
and other info (e.g., data
sheet)?
/10
Overall grade /40
1
ECE 321 Final Project
This project is for individual student and is NOT a team project.
HOWEVER, collaboration among team members (i.e., ECE322 team) is strongly
encouraged and should be properly acknowledged in the final project report.
Final Project Report Due: May 4, 2015 to be uploaded onto Evaltools
Project Demo:
Tues., 5/5/15, 1:30 - 3:30 For TTH Classes that meet at 3:00 pm (ECE 322_01)
Wed., 5/6/15, 1:30 - 3:30 For MWF Classes that meet at 3:00 pm (ECE 322_02)
Objective
1. To design an “analog computer” to fulfill the following requirement
Vout = 25*(A*V1in + B*V2in)
where V1in = V2in = 10 mVpp @ 1 kHz, is the input sinusoidal (sine) signal to the analog
computer, which can be generated from a function generator; Vout is the output of the
computer; and A is a constant of your birth month mod 10 (divide by 10 and take the
remainder) and B is a constant of your birth day mod 10 (divide by 10 and take the
remainder).
e.g., If your birthday is November 7, A = 11 mod 10 = 1 and B = 7 mod 10 = 7.
If your birthday is February 26, A = 2 mod 10 = 2 and B = 26 mod 10 = 6.
2. To verify the circuit design with the help of contemporary software
3. To build and test the final design on breadboard
Instructions and Related Information
Figure 1 shows an illustrative block diagram of the analog computer.
Figure 1. Block diagram of an “analog computer”
2
DC dual-polarity power supply:
1. It should be able to provide a stable ±12V dc power.
2. 7812 and 7912 voltage regulators are available (datasheets are available at
AllUser U:\ECE Component Library on lab workstations). If you are using your
own laptop, you need to type \\ECEVault\AllUser\ECE Component Library.
3. Refer to the figure below (read Chapter 17 of your textbook):
...
For more classes visit
www.snaptutorial.com
1. Does a typical computer have any analog outputs? If so, what are they?
2. List three advantages of digital signal representation as compared to their analog representation.
3. Convert 126 x 10+2 to scientific and engineering notations.
4. Make the following conversions:
a. Convert 0.34 seconds to milliseconds.
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)