Professional Documents
Culture Documents
Intern Report
Intern Report
Intern Report
SMART WATCH
INTERSHIP REPORT: EMBEDDED FIRMWARE DEVELOPMENT
Personal tracker for kids below 14 years old. It has specifications like calling, geofencing, SOS
emergency button, display, battery management etc. This internship report primarily include
firmware development part which I did at Fracktal Works Pvt. Ltd.
DECLARATION
I Mulay Ganesh Anil (1301EE19), Department of Electrical Engineering hereby declare that
this internship report is an original work and has not been copied from any outside source.
I attach my internship certificate and feedback form along with this report for evaluation.
Signature. Date: 29/August/2016
2|Page
TABLE OF CONTENTS
DECLARATION.................................................................................................................................... 2
TABLE OF CONTENTS ....................................................................................................................... 3
ABSTRACT ........................................................................................................................................... 4
SECTION ONE: ..................................................................................................................................... 5
1.0 ABOUT COMPANY .................................................................................................................. 5
1.1 MISSION..................................................................................................................................... 6
1.2 CLIENTS..................................................................................................................................... 6
SECTION TWO ..................................................................................................................................... 6
2.0 ABOUT PROJECT: CHILD TRACKER SMART WATCH ............................................. 6
2.1 FEATURES. .............................................................................................................................. 8
2.2 DEVICE SPECIFICATOINS ...................................................................................................... 8
2.3 PROCESS FLOW DIAGRAM.................................................................................................... 9
2.5 PROGRAM FLOW DESCRIPTION ................................................................................... 10
2.6 BRIEF TIMELINE AND APPROACH .................................................................................... 15
SECTION THREE ............................................................................................................................... 17
3.0 PROBLEMS FACED AND SOLUTIONS ......................................................................... 17
3.1 LESSONS LEARNED AND CHALLENGES. .................................................................. 18
3.2 CONCLUSION ......................................................................................................................... 19
3|Page
ABSTRACT
I carried out my internship at Fracktal Works Private Ltd, Bangalore. Fracktal Works is a
company born and incubated with the thought of enabling people to experience and empower
creation with 3D printing. They manufacture 3D printers, a pioneering device that can be used
by any industry for a varied number of purposes. It also works as an embedded solutions
provider and offer device programming, electronic design, firmware and software solutions to
other industrial clients. It offers internship opportunities to the students In need of education
about design, electronics, software, firmware and other related departments like accounting,
marketing and procurement.
Internship is an opportunity to relate what has been covered in class and what is applicable in
the field in an operational environment. The purpose of the internship is to fulfill the core
equipment for the award of a Bachelor Degree in Electrical Engineering to get a practical aspect
of the theoretical work studied at the university and to understand the operations in the
industrial sector and to enable students gain experience in different tasks.
During my internship period a number of approaches and exposure methods were used which
included: hands on, through reading relevant materials, and also questions and answer
approaches.
I was assigned to embedded systems departments which include the accounts circuit design,
layout design, firmware development, PCB design section and the UI/UX department and this
helped me interact with different people, clients and this helped me acquire information and
gain the benefits of client relations and product development. I wrote entire firmware for child
tracker device that included ATSAMDg20 MCU, origin GPS, Quectel M66 GPRS, Qtouch, Flash
Memory, SSD1306 OLED display, BQ25120 Battery management IC. In conclusion, this was an
opportunity to develop and enhance skills and competencies in my career field which I actually
achieved
4|Page
SECTION ONE:
1.0 ABOUT COMPANY
The Fracktal works was founded in 2013 by Vijay Raghav Varada and Rohit Asil, two techies
from Manipal University. It is a 3D printer manufacturing and product development firm that
develops affordable desktop FFF & SLA 3D printing systems for the Indian market as well as
provides product design and CAD services to maximize benefit of digital manufacturing
processes in the final design. They provide end to end: hardware, embedded firmware and
software prototyping to help our customers realize their ideas rapidly without boundaries, and
hence out tagline "Creation Unbound".
1. Logo
They understand the gap between conceptualization of a project or product, and the actual
realization of it. Whether we are an engineer, a fashion designer, architect or a humble home
maker, everyone has faced challenges while making or constructing anything from scratch. 3D
printers bring forward a completely new dimension to the scenario. All you have to do is sit in
front of your computer, design whatever you want, and have your object ready in no time!
Today the team has grown from 2 to 30 employees in the span of two years which includes
designers, mechanical engineers, electrical engineers, operations manager, human resource,
accounting and management.
5|Page
1.2 CLIENTS
IIT Bombay
Manipal University
LOreal Paris
Cisco
CMR university
Loctell
Toshiba
SECTION TWO:
2.0 ABOUT PROJECT: CHILD TRACKER SMART WATCH
Statement: To design and develop a GPS/GSM based personal tracker smart watch for kids. It
must include features like calling, emergency alerts, dedicated website and application for
child tracking, geofencing and display.
Personal GPS Tracking is the ability for any authorized person to locate another person with the
use of GPS device that receives information from the GPS satellite network in space.
The personal GPS system allows the authorized person to track the location of the intended
person carrying the GPS tracking device.
Strapping a wearable with tracking support to your childs wrist makes a lot of sense, especially
when it allows you to monitor their current location and habits in real-time.
In the past, it was perfectly acceptable to allow your children free roam of the neighborhood
without supervision. Parents would usually set a dinner curfew and children were expected to
return at the appropriate time.
6|Page
The world isnt so forgiving anymore; at least it sure doesnt seem to be. Every day we hear
stories about children being abducted, going missing or being involved in some kind of accident.
As a parent, you can never be too safe with your child.
It is of a small size, high accuracy remote location tracking device, is fully integrated GPS GPRS
Motion Sensor unit with in-built battery, GPS & GPRS antennas, SOS button and many features
that make it Compact and integrated GPS tracking unit. Want to know where your child is right
now? You can its easy! You can watch the movement of your child anytime, anywhere, from
your Smartphone or from GPS integrated tracking portal. If your child needs help they are only
a button away. With the use of our tracking portal, you can set zones around your home,
school, or anywhere you like and receive alerts when they enter or exit a zone. You can also
check the history of the child to see where its been.
2.1 FEATURES:
1. Small handy and colorful smartwatch for kids below 10-14 years
2. Low weight, Large battery life
3. OLED display with better resolution
4. Tamper proof model with silicon band
5. Parent can call on device and have a conversation with child
6. One-way text messaging between you and your child
7. Real time location alert depending on the time interval set by user
8. Dedicated Web portal and App to monitor child, change settings etc.
9. SOS button option in case child feels unsafe
10. The option to establish safe zones where your child can roam freely (geofencing)
11. 3G connectivity with an integrated SIM card with a proprietary service plan
12. Replaceable armbands that can grow with your child
13. Round robin calling in a pre-programmed list, and if the first number doesnt answer it will
call the next until it goes through the entire list.
14. Contacts and its preference can be saved by sending an SMS or by uploading on website
portal
BQ25120
BMS
Speaker
SSD1306
OLED
display
ORG1411
GPS
W25X20CLZP
I
MIC
SPI Flash
memory
ATSAMD20
G18
Quectel
M66 GSM
Processor
controller
3. PERIPHERAL COMPONENTS
2.3 PROCESS FLOW DIAGRAM
9|Page
Accelerome
ter
BOOT up:
First boot up the device by long pressing SOS button.
II.
APN Detection:
Tracker detects the APN details automatically depending on the sim used.
E.g.: aitelgprs.com
III.
Device registration:
It then sends SMS to loctell server with an IMEI number to register device.
SMS content: IMEI:121212121221111,NETWORK:Airtel
IV.
V.
VI.
Device ID:
Tracker uses IMEI number as device ID of the device.
Log GPS Location:
Tracker fetches the Lat/Lng location and sends it to Loctell Server.
<BASE_URL>/Log?type=0&deviceId=<IMEI>&lat=1 2.3433&lng=77.3434.
10 | P a g e
Description
type
0: for log
1: for Alert
deviceId
IMEI number
lat
lng
time
battery
charging
0: Not charging
1:Charging
VII.
inuse
speed
alt
Altitude
gprs
hw
Hardware version
sw
Software version
checksum
Checksum
GSM location:
If GPS fails to give location, we should give GSM location.
11 | P a g e
Alerts:
Different types of alerts are sent to the server which is described below.
A. Low Battery Alert: When the tracker battery is below 30% an alert has to be sent to
the server, This has to be done only once.
B. Device Manual Switch-Off Alert: If the user is switching off the device, then an alert
has to be sent to the server.
C. Incoming Call Alert: When device detects an incoming call, A notification has to be
sent to the server with phone number and call duration.
D. SOS Button Press Alert: When SOS button is pressed (long press), an alert has to be
sent to the server.
E. Battery: Full While charging, When the battery is full, An alert has to be sent to the
server.
F. Outgoing Call: When there is an outgoing call, this information has to be sent to the
server.
G. Device removed from Hand: When the device is removed from hand, An alert has to
be sent to the server.
H. SIM Card Removed/Inserted: When the user removes and inserts the SIM card, an
Alert has to be sent to the server.
12 | P a g e
Alerts will be sent to logtell server using the same API as used for logging, but type will be 1
e.g.:www.lookwr.com/Log?type=1&deviceId=8631 5802353281lat=1
2.3433&lng=77.3434&alert=1
Response: OK
Parameter Name
Description
Type
deviceId
0: for log
1: for Alert
IMEI number
Lat
Lng
Time
Alert
data1
when alert = 1 , 2, 3, 5
data1 value will be blank
data2
Checksum
Alert Number
1
2
3
4
5
6
7
8
9
10
11
Alert Name
Low Battery
Device Manual Switch off
Incoming call alert
SOS pressed
Battery full
Outgoing call
Device Removed from Hand
SIM card removed
Device worn on hand
Device switched on
SIM card inserted
13 | P a g e
IX.
DISPLAY
Icon can be changed in the following cases
Based on the message ID
Low Battery
Battery Full
Missed call
SOS - Outgoing call
Incoming Call
SIM Inserted
SIM Removed
Device Worn
Device taken out of hand
Contacts (Mom, Dad, Grand Dad, Grand Mom, Uncle, Aunt, Driver, Servant)
14 | P a g e
15 | P a g e
g. Another important feature was SPI Flash memory. If device power switches off, device
should not erase contacts, messages and other important data. In order to achieve this
we used Flash memory. This flash was communicating with MCU using SPI.
h. Battery management IC BQ25120 which is used in current generation mobile phones is
used in this device. This uses I2C communication mode with MCU. On sending command
and data one after the other with specified I2C address executes the command.
16 | P a g e
6. ASSEMBLED WATCH
SECTION THREE
3.0 PROBLEMS FACED AND SOLUTION
At first I interfaced every part of the device separately with the microcontroller. But I faced
number of problems while assembling everything together. Most of the problems were
related to communication and clock used between microcontroller and other peripheral ICs.
For speeding up the operation I used various data structures, interrupts, threading and
algorithms. I have mentioned all the problems below.
a. Sending device alerts was one of the most important features. Whenever user
gets/makes a call, presses SOS button an alert has to be sent. But calling has high
priority then Sending alerts. Also two processes cannot work together. Sending alerts
require activating GPRS connection, sending GET request and getting response. This
entire process is time consuming and device may stuck while executing all this. To solve
this problem, I used Queue of Alerts and Log requests. Id put all the log location and
alerts in the queue and gave them least priority. Whenever device is free, Queue was
emptied with its corresponding time stamp.
17 | P a g e
b. Another important task is to display time. ATSAMD20g18 has one single RTC which was
being used by Qtouch. Hence Id to write calendar library which kept on incrementing
timer counter whenever RTC gave interrupt for Qtouch. This timer counter was
alternatively used with some if-else conditioning to get Date, Month, Year, Minutes,
Hour, Second values.
c. The device had to use one single capacitive touch button for dialing and receiving calls,
SOS button press and device switch on/off. But the interrupt was same for all the
operations. I had to study user behavior to setup touch measurement time and
sensitivity for all the operations.
d. Battery consumption is the most important aspect of any device. Id to design and write
my firmware architecture such that unnecessary peripherals are put on sleep mode.
e. Most of the GSM functions like Calls, SMS and Position tracking are real time. Eg; Call
might come even when device is already working on something else. But serving this
incoming call interrupt is of higher priority. Such priority management was done for all
the incoming inputs.
f. Child can press touch button many times, that smartwatch is some kind of playing toy
for him. But this childish behavior should not affect device functioning.
g. We were using geofencing algorithm such that whenever child goes outside desired
roaming range, device should trigger alert to his parents. Such safety measures were
taken care of.
h. GPRS or GPS has very bad issues with network and signal strength. I used good quality
antenna and positioned it such that maximum signal strength was achieved always.
i. ATSAMD20 has only 4 clock lines. These had to be used very carefully.
j.
18 | P a g e
3.2 CONCLUSION
Internship was finished in time and I delivered 80% of the finished product in time. Clients
were happy when it was demonstrated with a watch on kids hand. We tested Incoming and
outgoing call, Log location requests, Alerts, Display, Battery management, SOS Button press
and Geofencing. The device worked flawlessly during demo. This internship exercise was
mainly to enable me acquire practical skills and link theory to practice in the real world so as
to meet the labour market needs. I have been able to acquire practical skills like embedded
design, embedded C, firmware development, PCB design etc.
19 | P a g e