<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://socialledge.com/sjsu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rgdrumer</id>
		<title>Embedded Systems Learning Academy - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://socialledge.com/sjsu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rgdrumer"/>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php/Special:Contributions/Rgdrumer"/>
		<updated>2026-04-10T22:58:48Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44230</id>
		<title>User:SJSU MSEE Team CLEAN-TECH</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44230"/>
				<updated>2018-03-07T19:14:37Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Parts List &amp;amp; Cost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Grading Criteria ===&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&lt;br /&gt;
*  How well is Software &amp;amp; Hardware Design described?&lt;br /&gt;
*  How well can this report be used to reproduce this project?&lt;br /&gt;
*  Code Quality&lt;br /&gt;
*  Overall Report Quality:&lt;br /&gt;
**  Software Block Diagrams&lt;br /&gt;
**  Hardware Block Diagrams&lt;br /&gt;
**:  Schematic Quality&lt;br /&gt;
**  Quality of technical challenges and solutions adopted.&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Title ==&lt;br /&gt;
IOT Applications in Hybrid Power Generation and Solar Pump Operation&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Generation of free electric power is very important and timely need oftoday's environment. After generating this power, we store it in the batteries an use it later for different applications. If we talk about agriculture area and amount of money involved, then batteries are not a good option. Batteries are expensive and loss with leakage of power is also more. By using water, we can save money and can generate free power. In the day time with solar pumps we will give water to farm and water tank. In the night time using the saved water from the water tank will generate the free energy using turbines. If we generate more energy, we can save in spare batteries. This project can give new dimension, strength and hope to the agriculture and country side areas and can save lots of money and we can go towards sustainable environment within years. Generation of data will take place with the help of many sensors and these data will be saved in servers for real time action on land. We can control pump, flow of water, generation of power etc. With the help of developed application, we can control every operation from our very own devices. This project has potential to change the way of living within the span of few years.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
Innovation with a novel thought, practical idea and modern IoT technology. The project that can generate more revenue without harming the environment and create a win-win situation for both the sides. Free power with less computation and real-time operation in hand. Imagine our world with this global warming in near future and you will realize the need of time and by this thought, we got this idea of hybrid power generation with use of modern technology that can create a sustainable environment for everyone. Solar and wind have been used in past but the result is not that outstanding. Wind source is not constant on any given day and a solar source is not equal throughout the year. Water is the solution and USA's fresh water source is 90% dependent on groundwater so more scope for development and success of our idea. In agriculture land and countryside we have resources but lack of work with technology that can create a better solution. In our project work we will provide electricity to the farm and water pump in the daytime with the help of solar energy and in the night we will use water as a medium to generate electricity. With the help of solar pump will give water to farm and once we are done with farm water requirement we will throw water to one water tank and this tank will save the sufficient water for half day. In night time with the help of turbine will generate electricity and give it to the entire farm and small house around it. IoT will be driving force behind this project and with the help of different sensors will create lots of data set for different parameters of water, pump and power generation. This data will be saved on the server and through the Android application, we can control each operation of our project in real-time. Data will give strength for future machine learning expansion in our project. Yes, you are thinking about batteries I guess, but batteries are not good for environment and decomposition of batteries is hazardous to the environment. Batteries need to change after few years and that adds more cost to it. The clean and safe solution is what we are providing. The idea for future generations with the sound foundation at the completion of this project will have more advanced and cleaner power generation solution for the majority of this world. In future, we can add fire prevention as an extra feature for safety against wildfires in and around the farm. By developing the pump that can also work as a turbine in reverse direction will save more resources in future years.&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Hardware Design, Software Architechture, Embedded Systems and Android Application Development&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul Gupta&lt;br /&gt;
** Sagar Shah&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;IOT Control, AWS Server Management and Data Analytics&amp;lt;/font&amp;gt;&lt;br /&gt;
** Aman Shaikh&lt;br /&gt;
** Mayuri Phansalkar&lt;br /&gt;
&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Solar Motor Drive Controller  &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Hardware Design Integration &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/16/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Search IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Schedule Market research and survey to compute customer requirements and demands.&lt;br /&gt;
| &lt;br /&gt;
* &lt;br /&gt;
| ...&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Component selection like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalize Embedded Controllers to interface.&lt;br /&gt;
* Finalize the algorithm to perform the software part.&lt;br /&gt;
* Compare different web services to select one of them.&lt;br /&gt;
* Prepare Abstract&lt;br /&gt;
| &lt;br /&gt;
* Decided Roles for each team member&lt;br /&gt;
* Searched and finalized IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Scheduled and done Market research and survey to compute customer requirements and demands.&lt;br /&gt;
* Decided to use AWS.&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* Write Introduction and Project details.&lt;br /&gt;
* Generate Wiki Page template.&lt;br /&gt;
* Make Hardware and Software Block Diagram.&lt;br /&gt;
| &lt;br /&gt;
* Components finalized like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalized and ordered Embedded Controllers(SJOne Board, ATMEGA1284 Controllers) to interface.&lt;br /&gt;
* Written Abstract for Project Report&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* Make Software Flow Charts for all 3 Embedded Control Boards.&lt;br /&gt;
* Finalize Software and Hardware Architechture and Connections.&lt;br /&gt;
* Write Project Report (Initial Draft). &lt;br /&gt;
| &lt;br /&gt;
* Written Introduction and Project details for Project Report.&lt;br /&gt;
* Generated Wiki Page template for Project Details.&lt;br /&gt;
* Prepared Hardware Block Diagram, software Block Diagram and Architechture.&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/11/2017&lt;br /&gt;
|&lt;br /&gt;
* Complete and submit Project Proposal Report.&lt;br /&gt;
* Prepare presentation for Prof. Tri Caohuu.&lt;br /&gt;
* Order Sensors - Voltage Sensor(resistors and Op-Amp), Current Sensor(ACS712), Luminosity Sensor (TSL 2561), SIM900 Board, ATMEGA 1284, BeagleBoneBlack.&lt;br /&gt;
* Setting up AWS IOT Data Source and generating sample data.&lt;br /&gt;
* Create three Firehose delivery streams, one to batch raw data from AWS IoT, and two to batch output device data and aggregated data from Analytics.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2017&lt;br /&gt;
|&lt;br /&gt;
* Interface Current Sensor with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Voltage Sensor via potential Divider with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Luminosity Sensor with BeagleBoneBlack(BBB) - I2C Interface.&lt;br /&gt;
* Set up AWS IoT to receive and forward incoming data, it will have all the parameters required for the analysis.&lt;br /&gt;
* Create an Analytics application to process data using SQL.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/9/2017&lt;br /&gt;
|&lt;br /&gt;
* SIM900 Interface using AT Commands for Data-Logging, GPRS Services, SMS Operation and Email Read and Send- ATMEGA1284 UART port.&lt;br /&gt;
* All Control Boards talking to each other via I2C.&lt;br /&gt;
* Connect the Analytics application to output Firehose delivery streams.&lt;br /&gt;
* Set up Amazon QuickSight to analyze the data.&lt;br /&gt;
* Start creating an android user interface for hybrid system.&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SR NO&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quntity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Link&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 12 V PUMP&lt;br /&gt;
|&lt;br /&gt;
* $70&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B016VX8XBW/ref=ox_sc_act_title_1?smid=A1QBFNU8WH93ZY&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| PUMP DRIVE&lt;br /&gt;
|&lt;br /&gt;
* $20&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018ICLC3K/ref=ox_sc_act_title_2?smid=A3FV4MIBE1RGSA&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 150W 12V Solar Panel&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;Black&amp;quot;&amp;gt; $164.95&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 1&lt;br /&gt;
| https://www.amazon.com/Watt-Volt-Monocrystalline-Solar-Panel/dp/B06W9DX4VX/ref=sr_1_6?s=lawn-garden&amp;amp;ie=UTF8&amp;amp;qid=1520449016&amp;amp;sr=1-6&amp;amp;keywords=150+watt+solar+panelct_title_3?smid=A2D22KZJD14Y8Y&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| Current Sensor - ACS712&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $4.96&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 2&lt;br /&gt;
| https://www.amazon.com/SMAKN%C2%AE-ACS712-Current-Detector-Amperage/dp/B00N2EUPUG/ref=sr_1_5?ie=UTF8&amp;amp;qid=1509160057&amp;amp;sr=8-5&amp;amp;keywords=current+sensor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| Voltage Sensor&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $5&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.mouser.com/Search/Refine.aspx?Keyword=LM741&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| Flow Meter&lt;br /&gt;
|&lt;br /&gt;
* $9&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.amazon.com/DIGITEN-Sensor-Switch-Flowmeter-Counter/dp/B00VKATCRQ/ref=sr_1_17?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160530&amp;amp;sr=1-17&amp;amp;keywords=flow+meter&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| Light-Intensity Sensor&lt;br /&gt;
|&lt;br /&gt;
* $8&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Sparkfun-Luminosity-Sensor-Breakout-TSL2561/dp/B00YNT5SKG/ref=sr_1_1?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160840&amp;amp;sr=1-1&amp;amp;keywords=TSL2561&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| MiniPro Universal Pragrammer&lt;br /&gt;
|&lt;br /&gt;
* $55&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Signstek-TL866CS-Universal-MiniPro-Programmer/dp/B074V1NSRM/ref=sr_1_1?ie=UTF8&amp;amp;qid=1509163882&amp;amp;sr=8-1&amp;amp;keywords=universal+programmer&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| Batteries for Controller&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $12&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/YOUNGFLY-12000mAh-Mobile-Battery-Charger/dp/B018LMC7EA/ref=sr_1_28?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262725&amp;amp;sr=1-28&amp;amp;keywords=power+bank&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| Beaglebone Black&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $100&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BBBWL-SC-562-BeagleBone-Wireless-Bluetooth-AM335x/dp/B076LL6P77/ref=sr_1_9?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262811&amp;amp;sr=1-9&amp;amp;keywords=beaglebone+black&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| Controller - ATMEGA1284&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $3&lt;br /&gt;
|&lt;br /&gt;
* 3&lt;br /&gt;
| https://www.amazon.com/ATMEL-ATMEGA1284P-PU-ATMEGA-20MHZ-DIP-40/dp/B00AS6D95O/ref=sr_1_1?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1520450016&amp;amp;sr=1-1&amp;amp;keywords=atmega1284p&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| Solenoid Valve half inch 12V&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $26.99&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BACOENG-12VDC-Solenoid-110VAC-Available/dp/B06XKXXMCC/ref=sr_1_3?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1520448571&amp;amp;sr=1-3&amp;amp;keywords=1%22+Brass+Electric+Solenoid+Valve+12Vdc&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Turbine&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $14.39&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Yosoo-Turbine-Generator-Micro-hydro-Charging/dp/B00ZCBNNOC/ref=pd_sim_328_2?_encoding=UTF8&amp;amp;pd_rd_i=B00ZCBNNOC&amp;amp;pd_rd_r=M734X2YH3BV36AEBDRYS&amp;amp;pd_rd_w=4fcwV&amp;amp;pd_rd_wg=aUsGf&amp;amp;psc=1&amp;amp;refRID=M734X2YH3BV36AEBDRYS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
| Web Service&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $50 (For One Months)&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| AWS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 15&lt;br /&gt;
| Sim Card&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $20 (For One Months)&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| T-Mobile&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 16&lt;br /&gt;
| Miscellaneous Expenses&lt;br /&gt;
|&lt;br /&gt;
* $150&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
''''''=== Hardware Design ===''''''&lt;br /&gt;
&lt;br /&gt;
'''As already explained in the introduction [1] [3], the project is a motivation to sustain the environment, utilizing the natural resources and taking a step towards Green Development. The Project utilizes theories behind Solar Technology and Hydro-electric Power Generation. In Traditional practices, solar power is being utilized to water the farms. Bu the what if the pump can throw more water than it is required by farms, which is common. In that case, the project will come handy.&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
'''The Solar panels are a source of energy along with the Turbine in the Project. Solar energy will drive the Pump with the help of Solar Pump Inverter. Solar Pump Inverter input the Voltage and Current from the Solar Panels and using Maximum Power Point Tracking (MPPT) Algorithm, fetching the Electric power from Solar Panels (refer fig 2 and fig 3) efficiently, drives the DC Pump to throw the Water out in the Farm Fields. A flow meter will be installed to get the water output rate in liters per minutes (lpm).&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
Describe the challenges of your project.  What advise would you give yourself or someone else if your project can be started from scratch again?&lt;br /&gt;
Make a smooth transition to testing section and described what it took to test your project.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;Bug/issue name&amp;gt; ===&lt;br /&gt;
Discuss the issue and resolution.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44229</id>
		<title>User:SJSU MSEE Team CLEAN-TECH</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44229"/>
				<updated>2018-03-07T19:12:23Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Parts List &amp;amp; Cost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Grading Criteria ===&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&lt;br /&gt;
*  How well is Software &amp;amp; Hardware Design described?&lt;br /&gt;
*  How well can this report be used to reproduce this project?&lt;br /&gt;
*  Code Quality&lt;br /&gt;
*  Overall Report Quality:&lt;br /&gt;
**  Software Block Diagrams&lt;br /&gt;
**  Hardware Block Diagrams&lt;br /&gt;
**:  Schematic Quality&lt;br /&gt;
**  Quality of technical challenges and solutions adopted.&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Title ==&lt;br /&gt;
IOT Applications in Hybrid Power Generation and Solar Pump Operation&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Generation of free electric power is very important and timely need oftoday's environment. After generating this power, we store it in the batteries an use it later for different applications. If we talk about agriculture area and amount of money involved, then batteries are not a good option. Batteries are expensive and loss with leakage of power is also more. By using water, we can save money and can generate free power. In the day time with solar pumps we will give water to farm and water tank. In the night time using the saved water from the water tank will generate the free energy using turbines. If we generate more energy, we can save in spare batteries. This project can give new dimension, strength and hope to the agriculture and country side areas and can save lots of money and we can go towards sustainable environment within years. Generation of data will take place with the help of many sensors and these data will be saved in servers for real time action on land. We can control pump, flow of water, generation of power etc. With the help of developed application, we can control every operation from our very own devices. This project has potential to change the way of living within the span of few years.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
Innovation with a novel thought, practical idea and modern IoT technology. The project that can generate more revenue without harming the environment and create a win-win situation for both the sides. Free power with less computation and real-time operation in hand. Imagine our world with this global warming in near future and you will realize the need of time and by this thought, we got this idea of hybrid power generation with use of modern technology that can create a sustainable environment for everyone. Solar and wind have been used in past but the result is not that outstanding. Wind source is not constant on any given day and a solar source is not equal throughout the year. Water is the solution and USA's fresh water source is 90% dependent on groundwater so more scope for development and success of our idea. In agriculture land and countryside we have resources but lack of work with technology that can create a better solution. In our project work we will provide electricity to the farm and water pump in the daytime with the help of solar energy and in the night we will use water as a medium to generate electricity. With the help of solar pump will give water to farm and once we are done with farm water requirement we will throw water to one water tank and this tank will save the sufficient water for half day. In night time with the help of turbine will generate electricity and give it to the entire farm and small house around it. IoT will be driving force behind this project and with the help of different sensors will create lots of data set for different parameters of water, pump and power generation. This data will be saved on the server and through the Android application, we can control each operation of our project in real-time. Data will give strength for future machine learning expansion in our project. Yes, you are thinking about batteries I guess, but batteries are not good for environment and decomposition of batteries is hazardous to the environment. Batteries need to change after few years and that adds more cost to it. The clean and safe solution is what we are providing. The idea for future generations with the sound foundation at the completion of this project will have more advanced and cleaner power generation solution for the majority of this world. In future, we can add fire prevention as an extra feature for safety against wildfires in and around the farm. By developing the pump that can also work as a turbine in reverse direction will save more resources in future years.&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Hardware Design, Software Architechture, Embedded Systems and Android Application Development&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul Gupta&lt;br /&gt;
** Sagar Shah&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;IOT Control, AWS Server Management and Data Analytics&amp;lt;/font&amp;gt;&lt;br /&gt;
** Aman Shaikh&lt;br /&gt;
** Mayuri Phansalkar&lt;br /&gt;
&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Solar Motor Drive Controller  &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Hardware Design Integration &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/16/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Search IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Schedule Market research and survey to compute customer requirements and demands.&lt;br /&gt;
| &lt;br /&gt;
* &lt;br /&gt;
| ...&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Component selection like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalize Embedded Controllers to interface.&lt;br /&gt;
* Finalize the algorithm to perform the software part.&lt;br /&gt;
* Compare different web services to select one of them.&lt;br /&gt;
* Prepare Abstract&lt;br /&gt;
| &lt;br /&gt;
* Decided Roles for each team member&lt;br /&gt;
* Searched and finalized IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Scheduled and done Market research and survey to compute customer requirements and demands.&lt;br /&gt;
* Decided to use AWS.&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* Write Introduction and Project details.&lt;br /&gt;
* Generate Wiki Page template.&lt;br /&gt;
* Make Hardware and Software Block Diagram.&lt;br /&gt;
| &lt;br /&gt;
* Components finalized like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalized and ordered Embedded Controllers(SJOne Board, ATMEGA1284 Controllers) to interface.&lt;br /&gt;
* Written Abstract for Project Report&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* Make Software Flow Charts for all 3 Embedded Control Boards.&lt;br /&gt;
* Finalize Software and Hardware Architechture and Connections.&lt;br /&gt;
* Write Project Report (Initial Draft). &lt;br /&gt;
| &lt;br /&gt;
* Written Introduction and Project details for Project Report.&lt;br /&gt;
* Generated Wiki Page template for Project Details.&lt;br /&gt;
* Prepared Hardware Block Diagram, software Block Diagram and Architechture.&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/11/2017&lt;br /&gt;
|&lt;br /&gt;
* Complete and submit Project Proposal Report.&lt;br /&gt;
* Prepare presentation for Prof. Tri Caohuu.&lt;br /&gt;
* Order Sensors - Voltage Sensor(resistors and Op-Amp), Current Sensor(ACS712), Luminosity Sensor (TSL 2561), SIM900 Board, ATMEGA 1284, BeagleBoneBlack.&lt;br /&gt;
* Setting up AWS IOT Data Source and generating sample data.&lt;br /&gt;
* Create three Firehose delivery streams, one to batch raw data from AWS IoT, and two to batch output device data and aggregated data from Analytics.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2017&lt;br /&gt;
|&lt;br /&gt;
* Interface Current Sensor with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Voltage Sensor via potential Divider with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Luminosity Sensor with BeagleBoneBlack(BBB) - I2C Interface.&lt;br /&gt;
* Set up AWS IoT to receive and forward incoming data, it will have all the parameters required for the analysis.&lt;br /&gt;
* Create an Analytics application to process data using SQL.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/9/2017&lt;br /&gt;
|&lt;br /&gt;
* SIM900 Interface using AT Commands for Data-Logging, GPRS Services, SMS Operation and Email Read and Send- ATMEGA1284 UART port.&lt;br /&gt;
* All Control Boards talking to each other via I2C.&lt;br /&gt;
* Connect the Analytics application to output Firehose delivery streams.&lt;br /&gt;
* Set up Amazon QuickSight to analyze the data.&lt;br /&gt;
* Start creating an android user interface for hybrid system.&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SR NO&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quntity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Link&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 12 V PUMP&lt;br /&gt;
|&lt;br /&gt;
* $70&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B016VX8XBW/ref=ox_sc_act_title_1?smid=A1QBFNU8WH93ZY&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| PUMP DRIVE&lt;br /&gt;
|&lt;br /&gt;
* $20&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018ICLC3K/ref=ox_sc_act_title_2?smid=A3FV4MIBE1RGSA&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 150W 12V Solar Panel&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;Black&amp;quot;&amp;gt; $164.95&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 1&lt;br /&gt;
| https://www.amazon.com/Watt-Volt-Monocrystalline-Solar-Panel/dp/B06W9DX4VX/ref=sr_1_6?s=lawn-garden&amp;amp;ie=UTF8&amp;amp;qid=1520449016&amp;amp;sr=1-6&amp;amp;keywords=150+watt+solar+panelct_title_3?smid=A2D22KZJD14Y8Y&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| Current Sensor - ACS712&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $4.96&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 2&lt;br /&gt;
| https://www.amazon.com/SMAKN%C2%AE-ACS712-Current-Detector-Amperage/dp/B00N2EUPUG/ref=sr_1_5?ie=UTF8&amp;amp;qid=1509160057&amp;amp;sr=8-5&amp;amp;keywords=current+sensor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| Voltage Sensor&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $5&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.mouser.com/Search/Refine.aspx?Keyword=LM741&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| Flow Meter&lt;br /&gt;
|&lt;br /&gt;
* $9&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.amazon.com/DIGITEN-Sensor-Switch-Flowmeter-Counter/dp/B00VKATCRQ/ref=sr_1_17?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160530&amp;amp;sr=1-17&amp;amp;keywords=flow+meter&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| Light-Intensity Sensor&lt;br /&gt;
|&lt;br /&gt;
* $8&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Sparkfun-Luminosity-Sensor-Breakout-TSL2561/dp/B00YNT5SKG/ref=sr_1_1?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160840&amp;amp;sr=1-1&amp;amp;keywords=TSL2561&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| MiniPro Universal Pragrammer&lt;br /&gt;
|&lt;br /&gt;
* $55&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Signstek-TL866CS-Universal-MiniPro-Programmer/dp/B074V1NSRM/ref=sr_1_1?ie=UTF8&amp;amp;qid=1509163882&amp;amp;sr=8-1&amp;amp;keywords=universal+programmer&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| Batteries for Controller&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $12&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/YOUNGFLY-12000mAh-Mobile-Battery-Charger/dp/B018LMC7EA/ref=sr_1_28?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262725&amp;amp;sr=1-28&amp;amp;keywords=power+bank&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| Beaglebone Black&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $100&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BBBWL-SC-562-BeagleBone-Wireless-Bluetooth-AM335x/dp/B076LL6P77/ref=sr_1_9?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262811&amp;amp;sr=1-9&amp;amp;keywords=beaglebone+black&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| Controller - ATMEGA1284&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $3&lt;br /&gt;
|&lt;br /&gt;
* 3&lt;br /&gt;
| https://www.jameco.com/z/ATMEGA8515L-8PC-Atmel-Microchip--MCU-8-Bit-ATmega-RISC-8KB-Flash-3-3-Volt-5-Volt-40-Pin-PDIP_395621.html?CID=GOOG&amp;amp;gclid=CjwKCAjwssvPBRBBEiwASFoVd8Ra78R9W0dpH0qGWi-tzNAnfgiIrnPJfW8x1O8qTtItEws8aUtTThoCI5kQAvD_BwE&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| Solenoid Valve half inch 12V&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $26.99&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BACOENG-12VDC-Solenoid-110VAC-Available/dp/B06XKXXMCC/ref=sr_1_3?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1520448571&amp;amp;sr=1-3&amp;amp;keywords=1%22+Brass+Electric+Solenoid+Valve+12Vdc&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Turbine&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $14.39&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Yosoo-Turbine-Generator-Micro-hydro-Charging/dp/B00ZCBNNOC/ref=pd_sim_328_2?_encoding=UTF8&amp;amp;pd_rd_i=B00ZCBNNOC&amp;amp;pd_rd_r=M734X2YH3BV36AEBDRYS&amp;amp;pd_rd_w=4fcwV&amp;amp;pd_rd_wg=aUsGf&amp;amp;psc=1&amp;amp;refRID=M734X2YH3BV36AEBDRYS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
| Web Service&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $50 (For One Months)&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| AWS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 15&lt;br /&gt;
| Sim Card&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $20 (For One Months)&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| T-Mobile&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 16&lt;br /&gt;
| Miscellaneous Expenses&lt;br /&gt;
|&lt;br /&gt;
* $150&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
''''''=== Hardware Design ===''''''&lt;br /&gt;
&lt;br /&gt;
'''As already explained in the introduction [1] [3], the project is a motivation to sustain the environment, utilizing the natural resources and taking a step towards Green Development. The Project utilizes theories behind Solar Technology and Hydro-electric Power Generation. In Traditional practices, solar power is being utilized to water the farms. Bu the what if the pump can throw more water than it is required by farms, which is common. In that case, the project will come handy.&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
'''The Solar panels are a source of energy along with the Turbine in the Project. Solar energy will drive the Pump with the help of Solar Pump Inverter. Solar Pump Inverter input the Voltage and Current from the Solar Panels and using Maximum Power Point Tracking (MPPT) Algorithm, fetching the Electric power from Solar Panels (refer fig 2 and fig 3) efficiently, drives the DC Pump to throw the Water out in the Farm Fields. A flow meter will be installed to get the water output rate in liters per minutes (lpm).&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
Describe the challenges of your project.  What advise would you give yourself or someone else if your project can be started from scratch again?&lt;br /&gt;
Make a smooth transition to testing section and described what it took to test your project.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;Bug/issue name&amp;gt; ===&lt;br /&gt;
Discuss the issue and resolution.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44228</id>
		<title>User:SJSU MSEE Team CLEAN-TECH</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44228"/>
				<updated>2018-03-07T19:11:23Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Parts List &amp;amp; Cost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Grading Criteria ===&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&lt;br /&gt;
*  How well is Software &amp;amp; Hardware Design described?&lt;br /&gt;
*  How well can this report be used to reproduce this project?&lt;br /&gt;
*  Code Quality&lt;br /&gt;
*  Overall Report Quality:&lt;br /&gt;
**  Software Block Diagrams&lt;br /&gt;
**  Hardware Block Diagrams&lt;br /&gt;
**:  Schematic Quality&lt;br /&gt;
**  Quality of technical challenges and solutions adopted.&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Title ==&lt;br /&gt;
IOT Applications in Hybrid Power Generation and Solar Pump Operation&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Generation of free electric power is very important and timely need oftoday's environment. After generating this power, we store it in the batteries an use it later for different applications. If we talk about agriculture area and amount of money involved, then batteries are not a good option. Batteries are expensive and loss with leakage of power is also more. By using water, we can save money and can generate free power. In the day time with solar pumps we will give water to farm and water tank. In the night time using the saved water from the water tank will generate the free energy using turbines. If we generate more energy, we can save in spare batteries. This project can give new dimension, strength and hope to the agriculture and country side areas and can save lots of money and we can go towards sustainable environment within years. Generation of data will take place with the help of many sensors and these data will be saved in servers for real time action on land. We can control pump, flow of water, generation of power etc. With the help of developed application, we can control every operation from our very own devices. This project has potential to change the way of living within the span of few years.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
Innovation with a novel thought, practical idea and modern IoT technology. The project that can generate more revenue without harming the environment and create a win-win situation for both the sides. Free power with less computation and real-time operation in hand. Imagine our world with this global warming in near future and you will realize the need of time and by this thought, we got this idea of hybrid power generation with use of modern technology that can create a sustainable environment for everyone. Solar and wind have been used in past but the result is not that outstanding. Wind source is not constant on any given day and a solar source is not equal throughout the year. Water is the solution and USA's fresh water source is 90% dependent on groundwater so more scope for development and success of our idea. In agriculture land and countryside we have resources but lack of work with technology that can create a better solution. In our project work we will provide electricity to the farm and water pump in the daytime with the help of solar energy and in the night we will use water as a medium to generate electricity. With the help of solar pump will give water to farm and once we are done with farm water requirement we will throw water to one water tank and this tank will save the sufficient water for half day. In night time with the help of turbine will generate electricity and give it to the entire farm and small house around it. IoT will be driving force behind this project and with the help of different sensors will create lots of data set for different parameters of water, pump and power generation. This data will be saved on the server and through the Android application, we can control each operation of our project in real-time. Data will give strength for future machine learning expansion in our project. Yes, you are thinking about batteries I guess, but batteries are not good for environment and decomposition of batteries is hazardous to the environment. Batteries need to change after few years and that adds more cost to it. The clean and safe solution is what we are providing. The idea for future generations with the sound foundation at the completion of this project will have more advanced and cleaner power generation solution for the majority of this world. In future, we can add fire prevention as an extra feature for safety against wildfires in and around the farm. By developing the pump that can also work as a turbine in reverse direction will save more resources in future years.&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Hardware Design, Software Architechture, Embedded Systems and Android Application Development&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul Gupta&lt;br /&gt;
** Sagar Shah&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;IOT Control, AWS Server Management and Data Analytics&amp;lt;/font&amp;gt;&lt;br /&gt;
** Aman Shaikh&lt;br /&gt;
** Mayuri Phansalkar&lt;br /&gt;
&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Solar Motor Drive Controller  &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Hardware Design Integration &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/16/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Search IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Schedule Market research and survey to compute customer requirements and demands.&lt;br /&gt;
| &lt;br /&gt;
* &lt;br /&gt;
| ...&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Component selection like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalize Embedded Controllers to interface.&lt;br /&gt;
* Finalize the algorithm to perform the software part.&lt;br /&gt;
* Compare different web services to select one of them.&lt;br /&gt;
* Prepare Abstract&lt;br /&gt;
| &lt;br /&gt;
* Decided Roles for each team member&lt;br /&gt;
* Searched and finalized IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Scheduled and done Market research and survey to compute customer requirements and demands.&lt;br /&gt;
* Decided to use AWS.&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* Write Introduction and Project details.&lt;br /&gt;
* Generate Wiki Page template.&lt;br /&gt;
* Make Hardware and Software Block Diagram.&lt;br /&gt;
| &lt;br /&gt;
* Components finalized like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalized and ordered Embedded Controllers(SJOne Board, ATMEGA1284 Controllers) to interface.&lt;br /&gt;
* Written Abstract for Project Report&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* Make Software Flow Charts for all 3 Embedded Control Boards.&lt;br /&gt;
* Finalize Software and Hardware Architechture and Connections.&lt;br /&gt;
* Write Project Report (Initial Draft). &lt;br /&gt;
| &lt;br /&gt;
* Written Introduction and Project details for Project Report.&lt;br /&gt;
* Generated Wiki Page template for Project Details.&lt;br /&gt;
* Prepared Hardware Block Diagram, software Block Diagram and Architechture.&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/11/2017&lt;br /&gt;
|&lt;br /&gt;
* Complete and submit Project Proposal Report.&lt;br /&gt;
* Prepare presentation for Prof. Tri Caohuu.&lt;br /&gt;
* Order Sensors - Voltage Sensor(resistors and Op-Amp), Current Sensor(ACS712), Luminosity Sensor (TSL 2561), SIM900 Board, ATMEGA 1284, BeagleBoneBlack.&lt;br /&gt;
* Setting up AWS IOT Data Source and generating sample data.&lt;br /&gt;
* Create three Firehose delivery streams, one to batch raw data from AWS IoT, and two to batch output device data and aggregated data from Analytics.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2017&lt;br /&gt;
|&lt;br /&gt;
* Interface Current Sensor with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Voltage Sensor via potential Divider with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Luminosity Sensor with BeagleBoneBlack(BBB) - I2C Interface.&lt;br /&gt;
* Set up AWS IoT to receive and forward incoming data, it will have all the parameters required for the analysis.&lt;br /&gt;
* Create an Analytics application to process data using SQL.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/9/2017&lt;br /&gt;
|&lt;br /&gt;
* SIM900 Interface using AT Commands for Data-Logging, GPRS Services, SMS Operation and Email Read and Send- ATMEGA1284 UART port.&lt;br /&gt;
* All Control Boards talking to each other via I2C.&lt;br /&gt;
* Connect the Analytics application to output Firehose delivery streams.&lt;br /&gt;
* Set up Amazon QuickSight to analyze the data.&lt;br /&gt;
* Start creating an android user interface for hybrid system.&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SR NO&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quntity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Link&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 12 V PUMP&lt;br /&gt;
|&lt;br /&gt;
* $70&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B016VX8XBW/ref=ox_sc_act_title_1?smid=A1QBFNU8WH93ZY&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| PUMP DRIVE&lt;br /&gt;
|&lt;br /&gt;
* $20&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018ICLC3K/ref=ox_sc_act_title_2?smid=A3FV4MIBE1RGSA&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 150W 12V Solar Panel&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;Black&amp;quot;&amp;gt; $164.95&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 1&lt;br /&gt;
| https://www.amazon.com/Watt-Volt-Monocrystalline-Solar-Panel/dp/B06W9DX4VX/ref=sr_1_6?s=lawn-garden&amp;amp;ie=UTF8&amp;amp;qid=1520449016&amp;amp;sr=1-6&amp;amp;keywords=150+watt+solar+panelct_title_3?smid=A2D22KZJD14Y8Y&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| Current Sensor - ACS712&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $4.96&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 2&lt;br /&gt;
| https://www.amazon.com/SMAKN%C2%AE-ACS712-Current-Detector-Amperage/dp/B00N2EUPUG/ref=sr_1_5?ie=UTF8&amp;amp;qid=1509160057&amp;amp;sr=8-5&amp;amp;keywords=current+sensor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| Voltage Sensor&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $5&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.mouser.com/Search/Refine.aspx?Keyword=LM741&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| Flow Meter&lt;br /&gt;
|&lt;br /&gt;
* $9&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.amazon.com/DIGITEN-Sensor-Switch-Flowmeter-Counter/dp/B00VKATCRQ/ref=sr_1_17?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160530&amp;amp;sr=1-17&amp;amp;keywords=flow+meter&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| Light-Intensity Sensor&lt;br /&gt;
|&lt;br /&gt;
* $8&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Sparkfun-Luminosity-Sensor-Breakout-TSL2561/dp/B00YNT5SKG/ref=sr_1_1?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160840&amp;amp;sr=1-1&amp;amp;keywords=TSL2561&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| MiniPro Universal Pragrammer&lt;br /&gt;
|&lt;br /&gt;
* $55&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Signstek-TL866CS-Universal-MiniPro-Programmer/dp/B074V1NSRM/ref=sr_1_1?ie=UTF8&amp;amp;qid=1509163882&amp;amp;sr=8-1&amp;amp;keywords=universal+programmer&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| Batteries for Controller&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $12&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/YOUNGFLY-12000mAh-Mobile-Battery-Charger/dp/B018LMC7EA/ref=sr_1_28?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262725&amp;amp;sr=1-28&amp;amp;keywords=power+bank&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| Beaglebone Black&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $100&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BBBWL-SC-562-BeagleBone-Wireless-Bluetooth-AM335x/dp/B076LL6P77/ref=sr_1_9?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262811&amp;amp;sr=1-9&amp;amp;keywords=beaglebone+black&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| Controller - ATMEGA1284&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $3&lt;br /&gt;
|&lt;br /&gt;
* 3&lt;br /&gt;
| https://www.jameco.com/z/ATMEGA8515L-8PC-Atmel-Microchip--MCU-8-Bit-ATmega-RISC-8KB-Flash-3-3-Volt-5-Volt-40-Pin-PDIP_395621.html?CID=GOOG&amp;amp;gclid=CjwKCAjwssvPBRBBEiwASFoVd8Ra78R9W0dpH0qGWi-tzNAnfgiIrnPJfW8x1O8qTtItEws8aUtTThoCI5kQAvD_BwE&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| Solenoid Valve half inch 12V&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $26.99&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BACOENG-12VDC-Solenoid-110VAC-Available/dp/B06XKXXMCC/ref=sr_1_3?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1520448571&amp;amp;sr=1-3&amp;amp;keywords=1%22+Brass+Electric+Solenoid+Valve+12Vdc&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Turbine&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $180&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Yosoo-Turbine-Generator-Micro-hydro-Charging/dp/B00ZCBNNOC/ref=pd_sim_328_2?_encoding=UTF8&amp;amp;pd_rd_i=B00ZCBNNOC&amp;amp;pd_rd_r=M734X2YH3BV36AEBDRYS&amp;amp;pd_rd_w=4fcwV&amp;amp;pd_rd_wg=aUsGf&amp;amp;psc=1&amp;amp;refRID=M734X2YH3BV36AEBDRYS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
| Web Service&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $50 (For One Months)&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| AWS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 15&lt;br /&gt;
| Sim Card&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $20 (For One Months)&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| T-Mobile&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 16&lt;br /&gt;
| Miscellaneous Expenses&lt;br /&gt;
|&lt;br /&gt;
* $150&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
''''''=== Hardware Design ===''''''&lt;br /&gt;
&lt;br /&gt;
'''As already explained in the introduction [1] [3], the project is a motivation to sustain the environment, utilizing the natural resources and taking a step towards Green Development. The Project utilizes theories behind Solar Technology and Hydro-electric Power Generation. In Traditional practices, solar power is being utilized to water the farms. Bu the what if the pump can throw more water than it is required by farms, which is common. In that case, the project will come handy.&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
'''The Solar panels are a source of energy along with the Turbine in the Project. Solar energy will drive the Pump with the help of Solar Pump Inverter. Solar Pump Inverter input the Voltage and Current from the Solar Panels and using Maximum Power Point Tracking (MPPT) Algorithm, fetching the Electric power from Solar Panels (refer fig 2 and fig 3) efficiently, drives the DC Pump to throw the Water out in the Farm Fields. A flow meter will be installed to get the water output rate in liters per minutes (lpm).&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
Describe the challenges of your project.  What advise would you give yourself or someone else if your project can be started from scratch again?&lt;br /&gt;
Make a smooth transition to testing section and described what it took to test your project.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;Bug/issue name&amp;gt; ===&lt;br /&gt;
Discuss the issue and resolution.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44227</id>
		<title>User:SJSU MSEE Team CLEAN-TECH</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44227"/>
				<updated>2018-03-07T19:04:21Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Parts List &amp;amp; Cost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Grading Criteria ===&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&lt;br /&gt;
*  How well is Software &amp;amp; Hardware Design described?&lt;br /&gt;
*  How well can this report be used to reproduce this project?&lt;br /&gt;
*  Code Quality&lt;br /&gt;
*  Overall Report Quality:&lt;br /&gt;
**  Software Block Diagrams&lt;br /&gt;
**  Hardware Block Diagrams&lt;br /&gt;
**:  Schematic Quality&lt;br /&gt;
**  Quality of technical challenges and solutions adopted.&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Title ==&lt;br /&gt;
IOT Applications in Hybrid Power Generation and Solar Pump Operation&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Generation of free electric power is very important and timely need oftoday's environment. After generating this power, we store it in the batteries an use it later for different applications. If we talk about agriculture area and amount of money involved, then batteries are not a good option. Batteries are expensive and loss with leakage of power is also more. By using water, we can save money and can generate free power. In the day time with solar pumps we will give water to farm and water tank. In the night time using the saved water from the water tank will generate the free energy using turbines. If we generate more energy, we can save in spare batteries. This project can give new dimension, strength and hope to the agriculture and country side areas and can save lots of money and we can go towards sustainable environment within years. Generation of data will take place with the help of many sensors and these data will be saved in servers for real time action on land. We can control pump, flow of water, generation of power etc. With the help of developed application, we can control every operation from our very own devices. This project has potential to change the way of living within the span of few years.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
Innovation with a novel thought, practical idea and modern IoT technology. The project that can generate more revenue without harming the environment and create a win-win situation for both the sides. Free power with less computation and real-time operation in hand. Imagine our world with this global warming in near future and you will realize the need of time and by this thought, we got this idea of hybrid power generation with use of modern technology that can create a sustainable environment for everyone. Solar and wind have been used in past but the result is not that outstanding. Wind source is not constant on any given day and a solar source is not equal throughout the year. Water is the solution and USA's fresh water source is 90% dependent on groundwater so more scope for development and success of our idea. In agriculture land and countryside we have resources but lack of work with technology that can create a better solution. In our project work we will provide electricity to the farm and water pump in the daytime with the help of solar energy and in the night we will use water as a medium to generate electricity. With the help of solar pump will give water to farm and once we are done with farm water requirement we will throw water to one water tank and this tank will save the sufficient water for half day. In night time with the help of turbine will generate electricity and give it to the entire farm and small house around it. IoT will be driving force behind this project and with the help of different sensors will create lots of data set for different parameters of water, pump and power generation. This data will be saved on the server and through the Android application, we can control each operation of our project in real-time. Data will give strength for future machine learning expansion in our project. Yes, you are thinking about batteries I guess, but batteries are not good for environment and decomposition of batteries is hazardous to the environment. Batteries need to change after few years and that adds more cost to it. The clean and safe solution is what we are providing. The idea for future generations with the sound foundation at the completion of this project will have more advanced and cleaner power generation solution for the majority of this world. In future, we can add fire prevention as an extra feature for safety against wildfires in and around the farm. By developing the pump that can also work as a turbine in reverse direction will save more resources in future years.&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Hardware Design, Software Architechture, Embedded Systems and Android Application Development&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul Gupta&lt;br /&gt;
** Sagar Shah&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;IOT Control, AWS Server Management and Data Analytics&amp;lt;/font&amp;gt;&lt;br /&gt;
** Aman Shaikh&lt;br /&gt;
** Mayuri Phansalkar&lt;br /&gt;
&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Solar Motor Drive Controller  &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Hardware Design Integration &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/16/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Search IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Schedule Market research and survey to compute customer requirements and demands.&lt;br /&gt;
| &lt;br /&gt;
* &lt;br /&gt;
| ...&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Component selection like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalize Embedded Controllers to interface.&lt;br /&gt;
* Finalize the algorithm to perform the software part.&lt;br /&gt;
* Compare different web services to select one of them.&lt;br /&gt;
* Prepare Abstract&lt;br /&gt;
| &lt;br /&gt;
* Decided Roles for each team member&lt;br /&gt;
* Searched and finalized IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Scheduled and done Market research and survey to compute customer requirements and demands.&lt;br /&gt;
* Decided to use AWS.&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* Write Introduction and Project details.&lt;br /&gt;
* Generate Wiki Page template.&lt;br /&gt;
* Make Hardware and Software Block Diagram.&lt;br /&gt;
| &lt;br /&gt;
* Components finalized like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalized and ordered Embedded Controllers(SJOne Board, ATMEGA1284 Controllers) to interface.&lt;br /&gt;
* Written Abstract for Project Report&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* Make Software Flow Charts for all 3 Embedded Control Boards.&lt;br /&gt;
* Finalize Software and Hardware Architechture and Connections.&lt;br /&gt;
* Write Project Report (Initial Draft). &lt;br /&gt;
| &lt;br /&gt;
* Written Introduction and Project details for Project Report.&lt;br /&gt;
* Generated Wiki Page template for Project Details.&lt;br /&gt;
* Prepared Hardware Block Diagram, software Block Diagram and Architechture.&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/11/2017&lt;br /&gt;
|&lt;br /&gt;
* Complete and submit Project Proposal Report.&lt;br /&gt;
* Prepare presentation for Prof. Tri Caohuu.&lt;br /&gt;
* Order Sensors - Voltage Sensor(resistors and Op-Amp), Current Sensor(ACS712), Luminosity Sensor (TSL 2561), SIM900 Board, ATMEGA 1284, BeagleBoneBlack.&lt;br /&gt;
* Setting up AWS IOT Data Source and generating sample data.&lt;br /&gt;
* Create three Firehose delivery streams, one to batch raw data from AWS IoT, and two to batch output device data and aggregated data from Analytics.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2017&lt;br /&gt;
|&lt;br /&gt;
* Interface Current Sensor with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Voltage Sensor via potential Divider with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Luminosity Sensor with BeagleBoneBlack(BBB) - I2C Interface.&lt;br /&gt;
* Set up AWS IoT to receive and forward incoming data, it will have all the parameters required for the analysis.&lt;br /&gt;
* Create an Analytics application to process data using SQL.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/9/2017&lt;br /&gt;
|&lt;br /&gt;
* SIM900 Interface using AT Commands for Data-Logging, GPRS Services, SMS Operation and Email Read and Send- ATMEGA1284 UART port.&lt;br /&gt;
* All Control Boards talking to each other via I2C.&lt;br /&gt;
* Connect the Analytics application to output Firehose delivery streams.&lt;br /&gt;
* Set up Amazon QuickSight to analyze the data.&lt;br /&gt;
* Start creating an android user interface for hybrid system.&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SR NO&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quntity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Link&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 12 V PUMP&lt;br /&gt;
|&lt;br /&gt;
* $70&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B016VX8XBW/ref=ox_sc_act_title_1?smid=A1QBFNU8WH93ZY&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| PUMP DRIVE&lt;br /&gt;
|&lt;br /&gt;
* $20&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018ICLC3K/ref=ox_sc_act_title_2?smid=A3FV4MIBE1RGSA&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 150W 12V Solar Panel&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;Black&amp;quot;&amp;gt; $164.95&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 1&lt;br /&gt;
| https://www.amazon.com/Watt-Volt-Monocrystalline-Solar-Panel/dp/B06W9DX4VX/ref=sr_1_6?s=lawn-garden&amp;amp;ie=UTF8&amp;amp;qid=1520449016&amp;amp;sr=1-6&amp;amp;keywords=150+watt+solar+panelct_title_3?smid=A2D22KZJD14Y8Y&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| Current Sensor - ACS712&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $4.96&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 2&lt;br /&gt;
| https://www.amazon.com/SMAKN%C2%AE-ACS712-Current-Detector-Amperage/dp/B00N2EUPUG/ref=sr_1_5?ie=UTF8&amp;amp;qid=1509160057&amp;amp;sr=8-5&amp;amp;keywords=current+sensor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| Voltage Sensor&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $5&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.mouser.com/Search/Refine.aspx?Keyword=LM741&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| Flow Meter&lt;br /&gt;
|&lt;br /&gt;
* $9&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.amazon.com/DIGITEN-Sensor-Switch-Flowmeter-Counter/dp/B00VKATCRQ/ref=sr_1_17?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160530&amp;amp;sr=1-17&amp;amp;keywords=flow+meter&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| Light-Intensity Sensor&lt;br /&gt;
|&lt;br /&gt;
* $8&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Sparkfun-Luminosity-Sensor-Breakout-TSL2561/dp/B00YNT5SKG/ref=sr_1_1?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160840&amp;amp;sr=1-1&amp;amp;keywords=TSL2561&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| MiniPro Universal Pragrammer&lt;br /&gt;
|&lt;br /&gt;
* $55&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Signstek-TL866CS-Universal-MiniPro-Programmer/dp/B074V1NSRM/ref=sr_1_1?ie=UTF8&amp;amp;qid=1509163882&amp;amp;sr=8-1&amp;amp;keywords=universal+programmer&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| Batteries for Controller&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $12&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/YOUNGFLY-12000mAh-Mobile-Battery-Charger/dp/B018LMC7EA/ref=sr_1_28?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262725&amp;amp;sr=1-28&amp;amp;keywords=power+bank&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| Beaglebone Black&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $100&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BBBWL-SC-562-BeagleBone-Wireless-Bluetooth-AM335x/dp/B076LL6P77/ref=sr_1_9?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262811&amp;amp;sr=1-9&amp;amp;keywords=beaglebone+black&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| Controller - ATMEGA1284&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $3&lt;br /&gt;
|&lt;br /&gt;
* 3&lt;br /&gt;
| https://www.jameco.com/z/ATMEGA8515L-8PC-Atmel-Microchip--MCU-8-Bit-ATmega-RISC-8KB-Flash-3-3-Volt-5-Volt-40-Pin-PDIP_395621.html?CID=GOOG&amp;amp;gclid=CjwKCAjwssvPBRBBEiwASFoVd8Ra78R9W0dpH0qGWi-tzNAnfgiIrnPJfW8x1O8qTtItEws8aUtTThoCI5kQAvD_BwE&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| Solenoid Valve half inch 12V&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $26.99&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BACOENG-12VDC-Solenoid-110VAC-Available/dp/B06XKXXMCC/ref=sr_1_3?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1520448571&amp;amp;sr=1-3&amp;amp;keywords=1%22+Brass+Electric+Solenoid+Valve+12Vdc&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Turbine&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $180&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| http://a.co/77Ike20&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
| Web Service&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $50 (For One Months)&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| AWS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 15&lt;br /&gt;
| Sim Card&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $20 (For One Months)&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| T-Mobile&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 16&lt;br /&gt;
| Miscellaneous Expenses&lt;br /&gt;
|&lt;br /&gt;
* $150&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
''''''=== Hardware Design ===''''''&lt;br /&gt;
&lt;br /&gt;
'''As already explained in the introduction [1] [3], the project is a motivation to sustain the environment, utilizing the natural resources and taking a step towards Green Development. The Project utilizes theories behind Solar Technology and Hydro-electric Power Generation. In Traditional practices, solar power is being utilized to water the farms. Bu the what if the pump can throw more water than it is required by farms, which is common. In that case, the project will come handy.&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
'''The Solar panels are a source of energy along with the Turbine in the Project. Solar energy will drive the Pump with the help of Solar Pump Inverter. Solar Pump Inverter input the Voltage and Current from the Solar Panels and using Maximum Power Point Tracking (MPPT) Algorithm, fetching the Electric power from Solar Panels (refer fig 2 and fig 3) efficiently, drives the DC Pump to throw the Water out in the Farm Fields. A flow meter will be installed to get the water output rate in liters per minutes (lpm).&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
Describe the challenges of your project.  What advise would you give yourself or someone else if your project can be started from scratch again?&lt;br /&gt;
Make a smooth transition to testing section and described what it took to test your project.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;Bug/issue name&amp;gt; ===&lt;br /&gt;
Discuss the issue and resolution.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44223</id>
		<title>User:SJSU MSEE Team CLEAN-TECH</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44223"/>
				<updated>2018-02-08T21:27:13Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Hardware Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Grading Criteria ===&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&lt;br /&gt;
*  How well is Software &amp;amp; Hardware Design described?&lt;br /&gt;
*  How well can this report be used to reproduce this project?&lt;br /&gt;
*  Code Quality&lt;br /&gt;
*  Overall Report Quality:&lt;br /&gt;
**  Software Block Diagrams&lt;br /&gt;
**  Hardware Block Diagrams&lt;br /&gt;
**:  Schematic Quality&lt;br /&gt;
**  Quality of technical challenges and solutions adopted.&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Title ==&lt;br /&gt;
IOT Applications in Hybrid Power Generation and Solar Pump Operation&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Generation of free electric power is very important and timely need oftoday's environment. After generating this power, we store it in the batteries an use it later for different applications. If we talk about agriculture area and amount of money involved, then batteries are not a good option. Batteries are expensive and loss with leakage of power is also more. By using water, we can save money and can generate free power. In the day time with solar pumps we will give water to farm and water tank. In the night time using the saved water from the water tank will generate the free energy using turbines. If we generate more energy, we can save in spare batteries. This project can give new dimension, strength and hope to the agriculture and country side areas and can save lots of money and we can go towards sustainable environment within years. Generation of data will take place with the help of many sensors and these data will be saved in servers for real time action on land. We can control pump, flow of water, generation of power etc. With the help of developed application, we can control every operation from our very own devices. This project has potential to change the way of living within the span of few years.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
Innovation with a novel thought, practical idea and modern IoT technology. The project that can generate more revenue without harming the environment and create a win-win situation for both the sides. Free power with less computation and real-time operation in hand. Imagine our world with this global warming in near future and you will realize the need of time and by this thought, we got this idea of hybrid power generation with use of modern technology that can create a sustainable environment for everyone. Solar and wind have been used in past but the result is not that outstanding. Wind source is not constant on any given day and a solar source is not equal throughout the year. Water is the solution and USA's fresh water source is 90% dependent on groundwater so more scope for development and success of our idea. In agriculture land and countryside we have resources but lack of work with technology that can create a better solution. In our project work we will provide electricity to the farm and water pump in the daytime with the help of solar energy and in the night we will use water as a medium to generate electricity. With the help of solar pump will give water to farm and once we are done with farm water requirement we will throw water to one water tank and this tank will save the sufficient water for half day. In night time with the help of turbine will generate electricity and give it to the entire farm and small house around it. IoT will be driving force behind this project and with the help of different sensors will create lots of data set for different parameters of water, pump and power generation. This data will be saved on the server and through the Android application, we can control each operation of our project in real-time. Data will give strength for future machine learning expansion in our project. Yes, you are thinking about batteries I guess, but batteries are not good for environment and decomposition of batteries is hazardous to the environment. Batteries need to change after few years and that adds more cost to it. The clean and safe solution is what we are providing. The idea for future generations with the sound foundation at the completion of this project will have more advanced and cleaner power generation solution for the majority of this world. In future, we can add fire prevention as an extra feature for safety against wildfires in and around the farm. By developing the pump that can also work as a turbine in reverse direction will save more resources in future years.&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Hardware Design, Software Architechture, Embedded Systems and Android Application Development&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul Gupta&lt;br /&gt;
** Sagar Shah&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;IOT Control, AWS Server Management and Data Analytics&amp;lt;/font&amp;gt;&lt;br /&gt;
** Aman Shaikh&lt;br /&gt;
** Mayuri Phansalkar&lt;br /&gt;
&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Solar Motor Drive Controller  &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Hardware Design Integration &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/16/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Search IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Schedule Market research and survey to compute customer requirements and demands.&lt;br /&gt;
| &lt;br /&gt;
* &lt;br /&gt;
| ...&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Component selection like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalize Embedded Controllers to interface.&lt;br /&gt;
* Finalize the algorithm to perform the software part.&lt;br /&gt;
* Compare different web services to select one of them.&lt;br /&gt;
* Prepare Abstract&lt;br /&gt;
| &lt;br /&gt;
* Decided Roles for each team member&lt;br /&gt;
* Searched and finalized IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Scheduled and done Market research and survey to compute customer requirements and demands.&lt;br /&gt;
* Decided to use AWS.&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* Write Introduction and Project details.&lt;br /&gt;
* Generate Wiki Page template.&lt;br /&gt;
* Make Hardware and Software Block Diagram.&lt;br /&gt;
| &lt;br /&gt;
* Components finalized like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalized and ordered Embedded Controllers(SJOne Board, ATMEGA1284 Controllers) to interface.&lt;br /&gt;
* Written Abstract for Project Report&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* Make Software Flow Charts for all 3 Embedded Control Boards.&lt;br /&gt;
* Finalize Software and Hardware Architechture and Connections.&lt;br /&gt;
* Write Project Report (Initial Draft). &lt;br /&gt;
| &lt;br /&gt;
* Written Introduction and Project details for Project Report.&lt;br /&gt;
* Generated Wiki Page template for Project Details.&lt;br /&gt;
* Prepared Hardware Block Diagram, software Block Diagram and Architechture.&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/11/2017&lt;br /&gt;
|&lt;br /&gt;
* Complete and submit Project Proposal Report.&lt;br /&gt;
* Prepare presentation for Prof. Tri Caohuu.&lt;br /&gt;
* Order Sensors - Voltage Sensor(resistors and Op-Amp), Current Sensor(ACS712), Luminosity Sensor (TSL 2561), SIM900 Board, ATMEGA 1284, BeagleBoneBlack.&lt;br /&gt;
* Setting up AWS IOT Data Source and generating sample data.&lt;br /&gt;
* Create three Firehose delivery streams, one to batch raw data from AWS IoT, and two to batch output device data and aggregated data from Analytics.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2017&lt;br /&gt;
|&lt;br /&gt;
* Interface Current Sensor with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Voltage Sensor via potential Divider with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Luminosity Sensor with BeagleBoneBlack(BBB) - I2C Interface.&lt;br /&gt;
* Set up AWS IoT to receive and forward incoming data, it will have all the parameters required for the analysis.&lt;br /&gt;
* Create an Analytics application to process data using SQL.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/9/2017&lt;br /&gt;
|&lt;br /&gt;
* SIM900 Interface using AT Commands for Data-Logging, GPRS Services, SMS Operation and Email Read and Send- ATMEGA1284 UART port.&lt;br /&gt;
* All Control Boards talking to each other via I2C.&lt;br /&gt;
* Connect the Analytics application to output Firehose delivery streams.&lt;br /&gt;
* Set up Amazon QuickSight to analyze the data.&lt;br /&gt;
* Start creating an android user interface for hybrid system.&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SR NO&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quntity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Link&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 12 V PUMP&lt;br /&gt;
|&lt;br /&gt;
* $70&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B016VX8XBW/ref=ox_sc_act_title_1?smid=A1QBFNU8WH93ZY&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| PUMP DRIVE&lt;br /&gt;
|&lt;br /&gt;
* $20&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018ICLC3K/ref=ox_sc_act_title_2?smid=A3FV4MIBE1RGSA&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 100W 12V Solar Panel&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;Black&amp;quot;&amp;gt; $110&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018BOK9WU/ref=ox_sc_act_title_3?smid=A2D22KZJD14Y8Y&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| Current Sensor - ACS712&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $4.96&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 2&lt;br /&gt;
| https://www.amazon.com/SMAKN%C2%AE-ACS712-Current-Detector-Amperage/dp/B00N2EUPUG/ref=sr_1_5?ie=UTF8&amp;amp;qid=1509160057&amp;amp;sr=8-5&amp;amp;keywords=current+sensor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| Voltage Sensor&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $5&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.mouser.com/Search/Refine.aspx?Keyword=LM741&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| Flow Meter&lt;br /&gt;
|&lt;br /&gt;
* $9&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.amazon.com/DIGITEN-Sensor-Switch-Flowmeter-Counter/dp/B00VKATCRQ/ref=sr_1_17?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160530&amp;amp;sr=1-17&amp;amp;keywords=flow+meter&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| Light-Intensity Sensor&lt;br /&gt;
|&lt;br /&gt;
* $8&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Sparkfun-Luminosity-Sensor-Breakout-TSL2561/dp/B00YNT5SKG/ref=sr_1_1?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160840&amp;amp;sr=1-1&amp;amp;keywords=TSL2561&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| MiniPro Universal Pragrammer&lt;br /&gt;
|&lt;br /&gt;
* $55&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Signstek-TL866CS-Universal-MiniPro-Programmer/dp/B074V1NSRM/ref=sr_1_1?ie=UTF8&amp;amp;qid=1509163882&amp;amp;sr=8-1&amp;amp;keywords=universal+programmer&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| Batteries for Controller&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $12&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/YOUNGFLY-12000mAh-Mobile-Battery-Charger/dp/B018LMC7EA/ref=sr_1_28?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262725&amp;amp;sr=1-28&amp;amp;keywords=power+bank&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| Beaglebone Black&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $100&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BBBWL-SC-562-BeagleBone-Wireless-Bluetooth-AM335x/dp/B076LL6P77/ref=sr_1_9?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262811&amp;amp;sr=1-9&amp;amp;keywords=beaglebone+black&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| Controller - ATMEGA1284&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $3&lt;br /&gt;
|&lt;br /&gt;
* 3&lt;br /&gt;
| https://www.jameco.com/z/ATMEGA8515L-8PC-Atmel-Microchip--MCU-8-Bit-ATmega-RISC-8KB-Flash-3-3-Volt-5-Volt-40-Pin-PDIP_395621.html?CID=GOOG&amp;amp;gclid=CjwKCAjwssvPBRBBEiwASFoVd8Ra78R9W0dpH0qGWi-tzNAnfgiIrnPJfW8x1O8qTtItEws8aUtTThoCI5kQAvD_BwE&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| Turbine&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $180&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| http://a.co/77Ike20&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Web Service&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $50 (For One Months)&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| AWS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
| Sim Card&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $20 (For One Months)&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| T-Mobile&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 15&lt;br /&gt;
| Miscellaneous Expenses&lt;br /&gt;
|&lt;br /&gt;
* $150&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
''''''=== Hardware Design ===''''''&lt;br /&gt;
&lt;br /&gt;
'''As already explained in the introduction [1] [3], the project is a motivation to sustain the environment, utilizing the natural resources and taking a step towards Green Development. The Project utilizes theories behind Solar Technology and Hydro-electric Power Generation. In Traditional practices, solar power is being utilized to water the farms. Bu the what if the pump can throw more water than it is required by farms, which is common. In that case, the project will come handy.&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
'''The Solar panels are a source of energy along with the Turbine in the Project. Solar energy will drive the Pump with the help of Solar Pump Inverter. Solar Pump Inverter input the Voltage and Current from the Solar Panels and using Maximum Power Point Tracking (MPPT) Algorithm, fetching the Electric power from Solar Panels (refer fig 2 and fig 3) efficiently, drives the DC Pump to throw the Water out in the Farm Fields. A flow meter will be installed to get the water output rate in liters per minutes (lpm).&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
Describe the challenges of your project.  What advise would you give yourself or someone else if your project can be started from scratch again?&lt;br /&gt;
Make a smooth transition to testing section and described what it took to test your project.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;Bug/issue name&amp;gt; ===&lt;br /&gt;
Discuss the issue and resolution.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44216</id>
		<title>User:SJSU MSEE Team CLEAN-TECH</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44216"/>
				<updated>2018-01-28T10:48:15Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Team Members &amp;amp; Responsibilities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Grading Criteria ===&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&lt;br /&gt;
*  How well is Software &amp;amp; Hardware Design described?&lt;br /&gt;
*  How well can this report be used to reproduce this project?&lt;br /&gt;
*  Code Quality&lt;br /&gt;
*  Overall Report Quality:&lt;br /&gt;
**  Software Block Diagrams&lt;br /&gt;
**  Hardware Block Diagrams&lt;br /&gt;
**:  Schematic Quality&lt;br /&gt;
**  Quality of technical challenges and solutions adopted.&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Title ==&lt;br /&gt;
IOT Applications in Hybrid Power Generation and Solar Pump Operation&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Generation of free electric power is very important and timely need oftoday's environment. After generating this power, we store it in the batteries an use it later for different applications. If we talk about agriculture area and amount of money involved, then batteries are not a good option. Batteries are expensive and loss with leakage of power is also more. By using water, we can save money and can generate free power. In the day time with solar pumps we will give water to farm and water tank. In the night time using the saved water from the water tank will generate the free energy using turbines. If we generate more energy, we can save in spare batteries. This project can give new dimension, strength and hope to the agriculture and country side areas and can save lots of money and we can go towards sustainable environment within years. Generation of data will take place with the help of many sensors and these data will be saved in servers for real time action on land. We can control pump, flow of water, generation of power etc. With the help of developed application, we can control every operation from our very own devices. This project has potential to change the way of living within the span of few years.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
Innovation with a novel thought, practical idea and modern IoT technology. The project that can generate more revenue without harming the environment and create a win-win situation for both the sides. Free power with less computation and real-time operation in hand. Imagine our world with this global warming in near future and you will realize the need of time and by this thought, we got this idea of hybrid power generation with use of modern technology that can create a sustainable environment for everyone. Solar and wind have been used in past but the result is not that outstanding. Wind source is not constant on any given day and a solar source is not equal throughout the year. Water is the solution and USA's fresh water source is 90% dependent on groundwater so more scope for development and success of our idea. In agriculture land and countryside we have resources but lack of work with technology that can create a better solution. In our project work we will provide electricity to the farm and water pump in the daytime with the help of solar energy and in the night we will use water as a medium to generate electricity. With the help of solar pump will give water to farm and once we are done with farm water requirement we will throw water to one water tank and this tank will save the sufficient water for half day. In night time with the help of turbine will generate electricity and give it to the entire farm and small house around it. IoT will be driving force behind this project and with the help of different sensors will create lots of data set for different parameters of water, pump and power generation. This data will be saved on the server and through the Android application, we can control each operation of our project in real-time. Data will give strength for future machine learning expansion in our project. Yes, you are thinking about batteries I guess, but batteries are not good for environment and decomposition of batteries is hazardous to the environment. Batteries need to change after few years and that adds more cost to it. The clean and safe solution is what we are providing. The idea for future generations with the sound foundation at the completion of this project will have more advanced and cleaner power generation solution for the majority of this world. In future, we can add fire prevention as an extra feature for safety against wildfires in and around the farm. By developing the pump that can also work as a turbine in reverse direction will save more resources in future years.&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Hardware Design, Software Architechture, Embedded Systems and Android Application Development&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul Gupta&lt;br /&gt;
** Sagar Shah&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;IOT Control, AWS Server Management and Data Analytics&amp;lt;/font&amp;gt;&lt;br /&gt;
** Aman Shaikh&lt;br /&gt;
** Mayuri Phansalkar&lt;br /&gt;
&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Solar Motor Drive Controller  &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Hardware Design Integration &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/16/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Search IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Schedule Market research and survey to compute customer requirements and demands.&lt;br /&gt;
| &lt;br /&gt;
* &lt;br /&gt;
| ...&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Component selection like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalize Embedded Controllers to interface.&lt;br /&gt;
* Finalize the algorithm to perform the software part.&lt;br /&gt;
* Compare different web services to select one of them.&lt;br /&gt;
* Prepare Abstract&lt;br /&gt;
| &lt;br /&gt;
* Decided Roles for each team member&lt;br /&gt;
* Searched and finalized IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Scheduled and done Market research and survey to compute customer requirements and demands.&lt;br /&gt;
* Decided to use AWS.&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* Write Introduction and Project details.&lt;br /&gt;
* Generate Wiki Page template.&lt;br /&gt;
* Make Hardware and Software Block Diagram.&lt;br /&gt;
| &lt;br /&gt;
* Components finalized like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalized and ordered Embedded Controllers(SJOne Board, ATMEGA1284 Controllers) to interface.&lt;br /&gt;
* Written Abstract for Project Report&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* Make Software Flow Charts for all 3 Embedded Control Boards.&lt;br /&gt;
* Finalize Software and Hardware Architechture and Connections.&lt;br /&gt;
* Write Project Report (Initial Draft). &lt;br /&gt;
| &lt;br /&gt;
* Written Introduction and Project details for Project Report.&lt;br /&gt;
* Generated Wiki Page template for Project Details.&lt;br /&gt;
* Prepared Hardware Block Diagram, software Block Diagram and Architechture.&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/11/2017&lt;br /&gt;
|&lt;br /&gt;
* Complete and submit Project Proposal Report.&lt;br /&gt;
* Prepare presentation for Prof. Tri Caohuu.&lt;br /&gt;
* Order Sensors - Voltage Sensor(resistors and Op-Amp), Current Sensor(ACS712), Luminosity Sensor (TSL 2561), SIM900 Board, ATMEGA 1284, BeagleBoneBlack.&lt;br /&gt;
* Setting up AWS IOT Data Source and generating sample data.&lt;br /&gt;
* Create three Firehose delivery streams, one to batch raw data from AWS IoT, and two to batch output device data and aggregated data from Analytics.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2017&lt;br /&gt;
|&lt;br /&gt;
* Interface Current Sensor with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Voltage Sensor via potential Divider with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Luminosity Sensor with BeagleBoneBlack(BBB) - I2C Interface.&lt;br /&gt;
* Set up AWS IoT to receive and forward incoming data, it will have all the parameters required for the analysis.&lt;br /&gt;
* Create an Analytics application to process data using SQL.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/9/2017&lt;br /&gt;
|&lt;br /&gt;
* SIM900 Interface using AT Commands for Data-Logging, GPRS Services, SMS Operation and Email Read and Send- ATMEGA1284 UART port.&lt;br /&gt;
* All Control Boards talking to each other via I2C.&lt;br /&gt;
* Connect the Analytics application to output Firehose delivery streams.&lt;br /&gt;
* Set up Amazon QuickSight to analyze the data.&lt;br /&gt;
* Start creating an android user interface for hybrid system.&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SR NO&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quntity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Link&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 12 V PUMP&lt;br /&gt;
|&lt;br /&gt;
* $70&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B016VX8XBW/ref=ox_sc_act_title_1?smid=A1QBFNU8WH93ZY&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| PUMP DRIVE&lt;br /&gt;
|&lt;br /&gt;
* $20&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018ICLC3K/ref=ox_sc_act_title_2?smid=A3FV4MIBE1RGSA&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 100W 12V Solar Panel&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;Black&amp;quot;&amp;gt; $110&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018BOK9WU/ref=ox_sc_act_title_3?smid=A2D22KZJD14Y8Y&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| Current Sensor - ACS712&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $4.96&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 2&lt;br /&gt;
| https://www.amazon.com/SMAKN%C2%AE-ACS712-Current-Detector-Amperage/dp/B00N2EUPUG/ref=sr_1_5?ie=UTF8&amp;amp;qid=1509160057&amp;amp;sr=8-5&amp;amp;keywords=current+sensor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| Voltage Sensor&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $5&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.mouser.com/Search/Refine.aspx?Keyword=LM741&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| Flow Meter&lt;br /&gt;
|&lt;br /&gt;
* $9&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.amazon.com/DIGITEN-Sensor-Switch-Flowmeter-Counter/dp/B00VKATCRQ/ref=sr_1_17?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160530&amp;amp;sr=1-17&amp;amp;keywords=flow+meter&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| Light-Intensity Sensor&lt;br /&gt;
|&lt;br /&gt;
* $8&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Sparkfun-Luminosity-Sensor-Breakout-TSL2561/dp/B00YNT5SKG/ref=sr_1_1?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160840&amp;amp;sr=1-1&amp;amp;keywords=TSL2561&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| MiniPro Universal Pragrammer&lt;br /&gt;
|&lt;br /&gt;
* $55&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Signstek-TL866CS-Universal-MiniPro-Programmer/dp/B074V1NSRM/ref=sr_1_1?ie=UTF8&amp;amp;qid=1509163882&amp;amp;sr=8-1&amp;amp;keywords=universal+programmer&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| Batteries for Controller&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $12&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/YOUNGFLY-12000mAh-Mobile-Battery-Charger/dp/B018LMC7EA/ref=sr_1_28?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262725&amp;amp;sr=1-28&amp;amp;keywords=power+bank&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| Beaglebone Black&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $100&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BBBWL-SC-562-BeagleBone-Wireless-Bluetooth-AM335x/dp/B076LL6P77/ref=sr_1_9?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262811&amp;amp;sr=1-9&amp;amp;keywords=beaglebone+black&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| Controller - ATMEGA1284&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $3&lt;br /&gt;
|&lt;br /&gt;
* 3&lt;br /&gt;
| https://www.jameco.com/z/ATMEGA8515L-8PC-Atmel-Microchip--MCU-8-Bit-ATmega-RISC-8KB-Flash-3-3-Volt-5-Volt-40-Pin-PDIP_395621.html?CID=GOOG&amp;amp;gclid=CjwKCAjwssvPBRBBEiwASFoVd8Ra78R9W0dpH0qGWi-tzNAnfgiIrnPJfW8x1O8qTtItEws8aUtTThoCI5kQAvD_BwE&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| Turbine&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $180&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| http://a.co/77Ike20&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Web Service&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $50 (For One Months)&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| AWS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
| Sim Card&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $20 (For One Months)&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| T-Mobile&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 15&lt;br /&gt;
| Miscellaneous Expenses&lt;br /&gt;
|&lt;br /&gt;
* $150&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
Discuss your hardware design here.  Show detailed schematics, and the interface here.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
Describe the challenges of your project.  What advise would you give yourself or someone else if your project can be started from scratch again?&lt;br /&gt;
Make a smooth transition to testing section and described what it took to test your project.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;Bug/issue name&amp;gt; ===&lt;br /&gt;
Discuss the issue and resolution.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44215</id>
		<title>User:SJSU MSEE Team CLEAN-TECH</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=User:SJSU_MSEE_Team_CLEAN-TECH&amp;diff=44215"/>
				<updated>2018-01-28T10:47:33Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Team Members &amp;amp; Responsibilities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Grading Criteria ===&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&lt;br /&gt;
*  How well is Software &amp;amp; Hardware Design described?&lt;br /&gt;
*  How well can this report be used to reproduce this project?&lt;br /&gt;
*  Code Quality&lt;br /&gt;
*  Overall Report Quality:&lt;br /&gt;
**  Software Block Diagrams&lt;br /&gt;
**  Hardware Block Diagrams&lt;br /&gt;
**:  Schematic Quality&lt;br /&gt;
**  Quality of technical challenges and solutions adopted.&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Title ==&lt;br /&gt;
IOT Applications in Hybrid Power Generation and Solar Pump Operation&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Generation of free electric power is very important and timely need oftoday's environment. After generating this power, we store it in the batteries an use it later for different applications. If we talk about agriculture area and amount of money involved, then batteries are not a good option. Batteries are expensive and loss with leakage of power is also more. By using water, we can save money and can generate free power. In the day time with solar pumps we will give water to farm and water tank. In the night time using the saved water from the water tank will generate the free energy using turbines. If we generate more energy, we can save in spare batteries. This project can give new dimension, strength and hope to the agriculture and country side areas and can save lots of money and we can go towards sustainable environment within years. Generation of data will take place with the help of many sensors and these data will be saved in servers for real time action on land. We can control pump, flow of water, generation of power etc. With the help of developed application, we can control every operation from our very own devices. This project has potential to change the way of living within the span of few years.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
Innovation with a novel thought, practical idea and modern IoT technology. The project that can generate more revenue without harming the environment and create a win-win situation for both the sides. Free power with less computation and real-time operation in hand. Imagine our world with this global warming in near future and you will realize the need of time and by this thought, we got this idea of hybrid power generation with use of modern technology that can create a sustainable environment for everyone. Solar and wind have been used in past but the result is not that outstanding. Wind source is not constant on any given day and a solar source is not equal throughout the year. Water is the solution and USA's fresh water source is 90% dependent on groundwater so more scope for development and success of our idea. In agriculture land and countryside we have resources but lack of work with technology that can create a better solution. In our project work we will provide electricity to the farm and water pump in the daytime with the help of solar energy and in the night we will use water as a medium to generate electricity. With the help of solar pump will give water to farm and once we are done with farm water requirement we will throw water to one water tank and this tank will save the sufficient water for half day. In night time with the help of turbine will generate electricity and give it to the entire farm and small house around it. IoT will be driving force behind this project and with the help of different sensors will create lots of data set for different parameters of water, pump and power generation. This data will be saved on the server and through the Android application, we can control each operation of our project in real-time. Data will give strength for future machine learning expansion in our project. Yes, you are thinking about batteries I guess, but batteries are not good for environment and decomposition of batteries is hazardous to the environment. Batteries need to change after few years and that adds more cost to it. The clean and safe solution is what we are providing. The idea for future generations with the sound foundation at the completion of this project will have more advanced and cleaner power generation solution for the majority of this world. In future, we can add fire prevention as an extra feature for safety against wildfires in and around the farm. By developing the pump that can also work as a turbine in reverse direction will save more resources in future years.&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Hardware Design, Software Architechture, Embedded Systems and Android Application Development&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul Gupta&lt;br /&gt;
** Sagar Shah&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;IOT Control, AWS Server Management and Data Analytics&amp;lt;/font&amp;gt;&lt;br /&gt;
** Aman Shaikh&lt;br /&gt;
** Mayuri Phansalkar&lt;br /&gt;
&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Solar Motor Drive Controller  &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Hardware Design Integration &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/16/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Search IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Schedule Market research and survey to compute customer requirements and demands.&lt;br /&gt;
| &lt;br /&gt;
* &lt;br /&gt;
| ...&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Component selection like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalize Embedded Controllers to interface.&lt;br /&gt;
* Finalize the algorithm to perform the software part.&lt;br /&gt;
* Compare different web services to select one of them.&lt;br /&gt;
* Prepare Abstract&lt;br /&gt;
| &lt;br /&gt;
* Decided Roles for each team member&lt;br /&gt;
* Searched and finalized IEEE Papers to compute feasibility and implementation of project.&lt;br /&gt;
* Scheduled and done Market research and survey to compute customer requirements and demands.&lt;br /&gt;
* Decided to use AWS.&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* Write Introduction and Project details.&lt;br /&gt;
* Generate Wiki Page template.&lt;br /&gt;
* Make Hardware and Software Block Diagram.&lt;br /&gt;
| &lt;br /&gt;
* Components finalized like Solar Pump, Motor, Drives etc.&lt;br /&gt;
* Finalized and ordered Embedded Controllers(SJOne Board, ATMEGA1284 Controllers) to interface.&lt;br /&gt;
* Written Abstract for Project Report&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* Make Software Flow Charts for all 3 Embedded Control Boards.&lt;br /&gt;
* Finalize Software and Hardware Architechture and Connections.&lt;br /&gt;
* Write Project Report (Initial Draft). &lt;br /&gt;
| &lt;br /&gt;
* Written Introduction and Project details for Project Report.&lt;br /&gt;
* Generated Wiki Page template for Project Details.&lt;br /&gt;
* Prepared Hardware Block Diagram, software Block Diagram and Architechture.&lt;br /&gt;
| Completed&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/11/2017&lt;br /&gt;
|&lt;br /&gt;
* Complete and submit Project Proposal Report.&lt;br /&gt;
* Prepare presentation for Prof. Tri Caohuu.&lt;br /&gt;
* Order Sensors - Voltage Sensor(resistors and Op-Amp), Current Sensor(ACS712), Luminosity Sensor (TSL 2561), SIM900 Board, ATMEGA 1284, BeagleBoneBlack.&lt;br /&gt;
* Setting up AWS IOT Data Source and generating sample data.&lt;br /&gt;
* Create three Firehose delivery streams, one to batch raw data from AWS IoT, and two to batch output device data and aggregated data from Analytics.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Working with Android tools.&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2017&lt;br /&gt;
|&lt;br /&gt;
* Interface Current Sensor with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Voltage Sensor via potential Divider with ATMEGA1284 - ADC Interface.&lt;br /&gt;
* Interface Luminosity Sensor with BeagleBoneBlack(BBB) - I2C Interface.&lt;br /&gt;
* Set up AWS IoT to receive and forward incoming data, it will have all the parameters required for the analysis.&lt;br /&gt;
* Create an Analytics application to process data using SQL.&lt;br /&gt;
* Learning about Android Studio and its working. Understanding Android different layouts and views.  &lt;br /&gt;
* Work with Android tools.&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/9/2017&lt;br /&gt;
|&lt;br /&gt;
* SIM900 Interface using AT Commands for Data-Logging, GPRS Services, SMS Operation and Email Read and Send- ATMEGA1284 UART port.&lt;br /&gt;
* All Control Boards talking to each other via I2C.&lt;br /&gt;
* Connect the Analytics application to output Firehose delivery streams.&lt;br /&gt;
* Set up Amazon QuickSight to analyze the data.&lt;br /&gt;
* Start creating a android user interface for hybrid system.&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SR NO&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quntity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Link&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 12 V PUMP&lt;br /&gt;
|&lt;br /&gt;
* $70&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B016VX8XBW/ref=ox_sc_act_title_1?smid=A1QBFNU8WH93ZY&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| PUMP DRIVE&lt;br /&gt;
|&lt;br /&gt;
* $20&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018ICLC3K/ref=ox_sc_act_title_2?smid=A3FV4MIBE1RGSA&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 100W 12V Solar Panel&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;Black&amp;quot;&amp;gt; $110&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 1&lt;br /&gt;
| https://www.amazon.com/gp/product/B018BOK9WU/ref=ox_sc_act_title_3?smid=A2D22KZJD14Y8Y&amp;amp;psc=1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| Current Sensor - ACS712&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $4.96&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; 2&lt;br /&gt;
| https://www.amazon.com/SMAKN%C2%AE-ACS712-Current-Detector-Amperage/dp/B00N2EUPUG/ref=sr_1_5?ie=UTF8&amp;amp;qid=1509160057&amp;amp;sr=8-5&amp;amp;keywords=current+sensor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| Voltage Sensor&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $5&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.mouser.com/Search/Refine.aspx?Keyword=LM741&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| Flow Meter&lt;br /&gt;
|&lt;br /&gt;
* $9&lt;br /&gt;
| &lt;br /&gt;
* 2&lt;br /&gt;
| https://www.amazon.com/DIGITEN-Sensor-Switch-Flowmeter-Counter/dp/B00VKATCRQ/ref=sr_1_17?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160530&amp;amp;sr=1-17&amp;amp;keywords=flow+meter&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| Light-Intensity Sensor&lt;br /&gt;
|&lt;br /&gt;
* $8&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Sparkfun-Luminosity-Sensor-Breakout-TSL2561/dp/B00YNT5SKG/ref=sr_1_1?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509160840&amp;amp;sr=1-1&amp;amp;keywords=TSL2561&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| MiniPro Universal Pragrammer&lt;br /&gt;
|&lt;br /&gt;
* $55&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/Signstek-TL866CS-Universal-MiniPro-Programmer/dp/B074V1NSRM/ref=sr_1_1?ie=UTF8&amp;amp;qid=1509163882&amp;amp;sr=8-1&amp;amp;keywords=universal+programmer&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| Batteries for Controller&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $12&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/YOUNGFLY-12000mAh-Mobile-Battery-Charger/dp/B018LMC7EA/ref=sr_1_28?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262725&amp;amp;sr=1-28&amp;amp;keywords=power+bank&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| Beaglebone Black&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $100&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| https://www.amazon.com/BBBWL-SC-562-BeagleBone-Wireless-Bluetooth-AM335x/dp/B076LL6P77/ref=sr_1_9?s=industrial&amp;amp;ie=UTF8&amp;amp;qid=1509262811&amp;amp;sr=1-9&amp;amp;keywords=beaglebone+black&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| Controller - ATMEGA1284&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $3&lt;br /&gt;
|&lt;br /&gt;
* 3&lt;br /&gt;
| https://www.jameco.com/z/ATMEGA8515L-8PC-Atmel-Microchip--MCU-8-Bit-ATmega-RISC-8KB-Flash-3-3-Volt-5-Volt-40-Pin-PDIP_395621.html?CID=GOOG&amp;amp;gclid=CjwKCAjwssvPBRBBEiwASFoVd8Ra78R9W0dpH0qGWi-tzNAnfgiIrnPJfW8x1O8qTtItEws8aUtTThoCI5kQAvD_BwE&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| Turbine&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $180&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| http://a.co/77Ike20&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Web Service&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $50 (For One Months)&lt;br /&gt;
|&lt;br /&gt;
* 1&lt;br /&gt;
| AWS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
| Sim Card&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; $20 (For One Months)&lt;br /&gt;
| &lt;br /&gt;
* 1&lt;br /&gt;
| T-Mobile&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 15&lt;br /&gt;
| Miscellaneous Expenses&lt;br /&gt;
|&lt;br /&gt;
* $150&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
Discuss your hardware design here.  Show detailed schematics, and the interface here.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
Describe the challenges of your project.  What advise would you give yourself or someone else if your project can be started from scratch again?&lt;br /&gt;
Make a smooth transition to testing section and described what it took to test your project.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;Bug/issue name&amp;gt; ===&lt;br /&gt;
Discuss the issue and resolution.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42235</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42235"/>
				<updated>2017-12-18T20:28:45Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Testing &amp;amp; Technical Challenges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_SystemArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterControlFlow.png|700px|thumb|center|| Process Flowchart]]&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_ObstacleAvoidanceAlgo.png|700px|thumb|center|| Obstacle Avoidance Design]]&lt;br /&gt;
&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is an optional Traxxas &amp;quot;short&amp;quot; RPM Sensor. To collect critical RPM data (Revolutions Per Minute), a &amp;quot;trigger magnet&amp;quot; is installed in the spur gear of electric models, or the flywheel of nitro vehicles. To offset the weight of the magnet, additional material is molded or cast into the opposite side of the spur gear or flywheel. To read the magnet, a hall effect sensor is installed in the gear cover (electric models) or installed on a support arm (nitro models).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Implementation ===&lt;br /&gt;
The motor controller is operated based on the CAN messages received from the Master. The CAN messages for Drive and Steer commands are sent from the Master Controller. Motor controller converts the value received from Master (+100 to -100 for Drive Speed percent and +100 to -100 for Steer angle in the range of 1 to 180 degrees turn) into specific PWM value as required by DC motor and Servo.   &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse frequency from RPM Sensor reduces, that means car is slowing down. Hence, in that scenario, car is accelerated (increase PWM) further to maintain the required speed. Similarly in case of Downhill pulse frequency increases, which means car is speeding up. Hence, brakes (reduced PWM) are applied to compensate the increased speed.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
1) ESC Calibration &amp;lt;br&amp;gt;&lt;br /&gt;
We messed up the calibration on the ESC.&amp;lt;br&amp;gt;&lt;br /&gt;
XL 5 had a long press option to calibrate the ESC, where the ESC shall:&amp;lt;br&amp;gt;&lt;br /&gt;
a) After long press, glow green and start taking PWM signals for neutral (1.5).&amp;lt;br&amp;gt;&lt;br /&gt;
b) Glow green once again where we shall feed in PWM signals for Forward (2ms).&amp;lt;br&amp;gt;&lt;br /&gt;
b) Glow green twice again where we shall feed in PWM signals for Reverse (1ms).&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
-We wrote code to calibrate using EXT-INT (EINT3) over P0.1 - switch to calibrate the ESC this way!&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2) ESC Reverse&amp;lt;br&amp;gt;&lt;br /&gt;
The ESC was not activating reverse if we directly - as in the datasheet (no formal datasheet - only XL 5 forums - talked about 1ms pulse width at 50Hz for reverse).&amp;lt;br&amp;gt;&lt;br /&gt;
We figured out that Reverse is actually 3 steps:&amp;lt;br&amp;gt;&lt;br /&gt;
a) goNeutral()&amp;lt;br&amp;gt;&lt;br /&gt;
b) goReverse()&amp;lt;br&amp;gt;&lt;br /&gt;
c) goNeutral()&amp;lt;br&amp;gt;&lt;br /&gt;
d) goReverse()&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3) RPM Sensor Installation:&amp;lt;br&amp;gt;&lt;br /&gt;
After following the steps to install RPM sensor (as steps above), the RPM sensor was not detecting the Rotation (magnet) of the wheel. &amp;lt;br&amp;gt;&lt;br /&gt;
The reason for that was Machine steeled pinion gear and slipper clutch. The Machine steeled pinion gear and slipper clutch that came with the RC car was big. That increased the distance between Magnet and RPM sensor. That's why we were not able to detect RPM of wheel.&amp;lt;br&amp;gt;&lt;br /&gt;
We even checked the activity using Digital Oscilloscope. &amp;lt;br&amp;gt;&lt;br /&gt;
Then we changed the smaller Machine steeled pinion gear and slipper clutch and reinstalled the RPM sensor and it worked. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|300px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|300px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Naza.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_GpsData.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_CompassData.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
&lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point. The bearing angle is calculated by using the following formula:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Initially, when we started testing, the car was going to the edges even if the path was towards the middle of the road as per google maps. So after developing an app to map the checkpoints we found that the path is actually inside the buildings. So, we had to find a different solution to solve this problem. Afterwards, we created a database of all the routes in campus and then processed the route through the android app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== PCB Design ===&lt;br /&gt;
[[ File: CmpE243_F17_T1_HWDesign_Schematic.png|1300px|thumb|center|| PCB Complete Schematic for All 5 Control Interfaces]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ File: CmpE243_F17_T1_HWDesign_Board.png|2000px|thumb|center|| PCB Complete Board design for All 5 Control Interfaces]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42233</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42233"/>
				<updated>2017-12-18T20:26:53Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Testing &amp;amp; Technical Challenges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_SystemArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterControlFlow.png|700px|thumb|center|| Process Flowchart]]&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_ObstacleAvoidanceAlgo.png|700px|thumb|center|| Obstacle Avoidance Design]]&lt;br /&gt;
&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is an optional Traxxas &amp;quot;short&amp;quot; RPM Sensor. To collect critical RPM data (Revolutions Per Minute), a &amp;quot;trigger magnet&amp;quot; is installed in the spur gear of electric models, or the flywheel of nitro vehicles. To offset the weight of the magnet, additional material is molded or cast into the opposite side of the spur gear or flywheel. To read the magnet, a hall effect sensor is installed in the gear cover (electric models) or installed on a support arm (nitro models).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Implementation ===&lt;br /&gt;
The motor controller is operated based on the CAN messages received from the Master. The CAN messages for Drive and Steer commands are sent from the Master Controller. Motor controller converts the value received from Master (+100 to -100 for Drive Speed percent and +100 to -100 for Steer angle in the range of 1 to 180 degrees turn) into specific PWM value as required by DC motor and Servo.   &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse frequency from RPM Sensor reduces, that means car is slowing down. Hence, in that scenario, car is accelerated (increase PWM) further to maintain the required speed. Similarly in case of Downhill pulse frequency increases, which means car is speeding up. Hence, brakes (reduced PWM) are applied to compensate the increased speed.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
1) Calibration &amp;lt;br&amp;gt;&lt;br /&gt;
We messed up the calibration on the ESC.&amp;lt;br&amp;gt;&lt;br /&gt;
XL 5 had a long press option to calibrate the ESC, where the ESC shall:&amp;lt;br&amp;gt;&lt;br /&gt;
a) After long press, glow green and start taking PWM signals for neutral (1.5).&amp;lt;br&amp;gt;&lt;br /&gt;
b) Glow green once again where we shall feed in PWM signals for Forward (2ms).&amp;lt;br&amp;gt;&lt;br /&gt;
b) Glow green twice again where we shall feed in PWM signals for Reverse (1ms).&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
-We wrote code to calibrate using EXT-INT (EINT3) over P0.1 - switch to calibrate the ESC this way!&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2) ESC Reverse&amp;lt;br&amp;gt;&lt;br /&gt;
The ESC was not activating reverse if we directly - as in the datasheet (no formal datasheet - only XL 5 forums - talked about 1ms pulse width at 50Hz for reverse).&amp;lt;br&amp;gt;&lt;br /&gt;
We figured out that Reverse is actually 3 steps:&amp;lt;br&amp;gt;&lt;br /&gt;
a) goNeutral()&amp;lt;br&amp;gt;&lt;br /&gt;
b) goReverse()&amp;lt;br&amp;gt;&lt;br /&gt;
c) goNeutral()&amp;lt;br&amp;gt;&lt;br /&gt;
d) goReverse()&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3) RPM Sensor Installation:&amp;lt;br&amp;gt;&lt;br /&gt;
After following the steps to install RPM sensor (as steps above), the RPM sensor was not detecting the Rotation (magnet) of the wheel. &amp;lt;br&amp;gt;&lt;br /&gt;
The reason for that was Machine steeled pinion gear and slipper clutch. The Machine steeled pinion gear and slipper clutch that came with the RC car was big. That increased the distance between Magnet and RPM sensor. That's why we were not able to detect RPM of wheel.&amp;lt;br&amp;gt;&lt;br /&gt;
We even checked the activity using Digital Oscilloscope. &amp;lt;br&amp;gt;&lt;br /&gt;
Then we changed the smaller Machine steeled pinion gear and slipper clutch and reinstalled the RPM sensor and it worked. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|300px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|300px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Naza.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_GpsData.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_CompassData.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
&lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point. The bearing angle is calculated by using the following formula:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Initially, when we started testing, the car was going to the edges even if the path was towards the middle of the road as per google maps. So after developing an app to map the checkpoints we found that the path is actually inside the buildings. So, we had to find a different solution to solve this problem. Afterwards, we created a database of all the routes in campus and then processed the route through the android app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== PCB Design ===&lt;br /&gt;
[[ File: CmpE243_F17_T1_HWDesign_Schematic.png|1300px|thumb|center|| PCB Complete Schematic for All 5 Control Interfaces]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ File: CmpE243_F17_T1_HWDesign_Board.png|2000px|thumb|center|| PCB Complete Board design for All 5 Control Interfaces]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42229</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42229"/>
				<updated>2017-12-18T20:21:59Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Testing &amp;amp; Technical Challenges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_SystemArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterControlFlow.png|700px|thumb|center|| Process Flowchart]]&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_ObstacleAvoidanceAlgo.png|700px|thumb|center|| Obstacle Avoidance Design]]&lt;br /&gt;
&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is an optional Traxxas &amp;quot;short&amp;quot; RPM Sensor. To collect critical RPM data (Revolutions Per Minute), a &amp;quot;trigger magnet&amp;quot; is installed in the spur gear of electric models, or the flywheel of nitro vehicles. To offset the weight of the magnet, additional material is molded or cast into the opposite side of the spur gear or flywheel. To read the magnet, a hall effect sensor is installed in the gear cover (electric models) or installed on a support arm (nitro models).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Implementation ===&lt;br /&gt;
The motor controller is operated based on the CAN messages received from the Master. The CAN messages for Drive and Steer commands are sent from the Master Controller. Motor controller converts the value received from Master (+100 to -100 for Drive Speed percent and +100 to -100 for Steer angle in the range of 1 to 180 degrees turn) into specific PWM value as required by DC motor and Servo.   &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse frequency from RPM Sensor reduces, that means car is slowing down. Hence, in that scenario, car is accelerated (increase PWM) further to maintain the required speed. Similarly in case of Downhill pulse frequency increases, which means car is speeding up. Hence, brakes (reduced PWM) are applied to compensate the increased speed.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
1) Calibration &amp;lt;br&amp;gt;&lt;br /&gt;
We messed up the calibration on the ESC.&amp;lt;br&amp;gt;&lt;br /&gt;
XL 5 had a long press option to calibrate the ESC, where the ESC shall:&amp;lt;br&amp;gt;&lt;br /&gt;
a) After long press, glow green and start taking PWM signals for neutral (1.5).&amp;lt;br&amp;gt;&lt;br /&gt;
b) Glow green once again where we shall feed in PWM signals for Forward (2ms).&amp;lt;br&amp;gt;&lt;br /&gt;
b) Glow green twice again where we shall feed in PWM signals for Reverse (1ms).&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
-We wrote code to calibrate using EXT-INT (EINT3) over P0.1 - switch to calibrate the ESC this way!&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2) ESC Reverse&amp;lt;br&amp;gt;&lt;br /&gt;
The ESC was not activating reverse if we directly - as in the datasheet (no formal datasheet - only XL 5 forums - talked about 1ms pulse width at 50Hz for reverse).&amp;lt;br&amp;gt;&lt;br /&gt;
We figured out that Reverse is actually 3 steps:&amp;lt;br&amp;gt;&lt;br /&gt;
a) goNeutral()&amp;lt;br&amp;gt;&lt;br /&gt;
b) goReverse()&amp;lt;br&amp;gt;&lt;br /&gt;
c) goNeutral()&amp;lt;br&amp;gt;&lt;br /&gt;
d) goReverse()&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3) RPM Sensor Installation:&amp;lt;br&amp;gt;&lt;br /&gt;
After following the steps to install RPM sensor (as steps above), the RPM sensor was not detecting the Rotation (magnet) of the wheel. &amp;lt;br&amp;gt;&lt;br /&gt;
The reason for that was Spur Gear. The spur gear that came with the RC car was big. That increased the distance between Magnet and RPM sensor. That's why we were not able to detect RPM of wheel.&amp;lt;br&amp;gt;&lt;br /&gt;
We even checked the activity using Digital Oscilloscope. &amp;lt;br&amp;gt;&lt;br /&gt;
Then we changed the smaller spur gear and reinstalled the RPM sensor and it worked. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|300px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|300px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Naza.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_GpsData.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_CompassData.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
&lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point. The bearing angle is calculated by using the following formula:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Initially, when we started testing, the car was going to the edges even if the path was towards the middle of the road as per google maps. So after developing an app to map the checkpoints we found that the path is actually inside the buildings. So, we had to find a different solution to solve this problem. Afterwards, we created a database of all the routes in campus and then processed the route through the android app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== PCB Design ===&lt;br /&gt;
[[ File: CmpE243_F17_T1_HWDesign_Schematic.png|1300px|thumb|center|| PCB Complete Schematic for All 5 Control Interfaces]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ File: CmpE243_F17_T1_HWDesign_Board.png|2000px|thumb|center|| PCB Complete Board design for All 5 Control Interfaces]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42060</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42060"/>
				<updated>2017-12-18T09:42:37Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* PCB Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is an optional Traxxas &amp;quot;short&amp;quot; RPM Sensor. To collect critical RPM data (Revolutions Per Minute), a &amp;quot;trigger magnet&amp;quot; is installed in the spur gear of electric models, or the flywheel of nitro vehicles. To offset the weight of the magnet, additional material is molded or cast into the opposite side of the spur gear or flywheel. To read the magnet, a hall effect sensor is installed in the gear cover (electric models) or installed on a support arm (nitro models).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Implementation ===&lt;br /&gt;
The motor controller is operated based on the CAN messages received from the Master. The CAN messages for Drive and Steer commands are sent from the Master Controller. Motor controller converts the value received from Master (+100 to -100 for Drive Speed percent and +100 to -100 for Steer angle in the range of 1 to 180 degrees turn) into specific PWM value as required by DC motor and Servo.   &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse frequency from RPM Sensor reduces, that means car is slowing down. Hence, in that scenario, car is accelerated (increase PWM) further to maintain the required speed. Similarly in case of Downhill pulse frequency increases, which means car is speeding up. Hence, brakes (reduced PWM) are applied to compensate the increased speed.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== PCB Design ===&lt;br /&gt;
[[ File: CmpE243_F17_T1_HWDesign_Schematic.png|1300px|thumb|center|| PCB Complete Schematic for All 5 Control Interfaces]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[ File: CmpE243_F17_T1_HWDesign_Board.png|2000px|thumb|center|| PCB Complete Board design for All 5 Control Interfaces]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42058</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42058"/>
				<updated>2017-12-18T09:38:32Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Git Project Management */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is an optional Traxxas &amp;quot;short&amp;quot; RPM Sensor. To collect critical RPM data (Revolutions Per Minute), a &amp;quot;trigger magnet&amp;quot; is installed in the spur gear of electric models, or the flywheel of nitro vehicles. To offset the weight of the magnet, additional material is molded or cast into the opposite side of the spur gear or flywheel. To read the magnet, a hall effect sensor is installed in the gear cover (electric models) or installed on a support arm (nitro models).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Implementation ===&lt;br /&gt;
The motor controller is operated based on the CAN messages received from the Master. The CAN messages for Drive and Steer commands are sent from the Master Controller. Motor controller converts the value received from Master (+100 to -100 for Drive Speed percent and +100 to -100 for Steer angle in the range of 1 to 180 degrees turn) into specific PWM value as required by DC motor and Servo.   &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse frequency from RPM Sensor reduces, that means car is slowing down. Hence, in that scenario, car is accelerated (increase PWM) further to maintain the required speed. Similarly in case of Downhill pulse frequency increases, which means car is speeding up. Hence, brakes (reduced PWM) are applied to compensate the increased speed.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== PCB Design ===&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42057</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42057"/>
				<updated>2017-12-18T09:34:34Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is an optional Traxxas &amp;quot;short&amp;quot; RPM Sensor. To collect critical RPM data (Revolutions Per Minute), a &amp;quot;trigger magnet&amp;quot; is installed in the spur gear of electric models, or the flywheel of nitro vehicles. To offset the weight of the magnet, additional material is molded or cast into the opposite side of the spur gear or flywheel. To read the magnet, a hall effect sensor is installed in the gear cover (electric models) or installed on a support arm (nitro models).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Implementation ===&lt;br /&gt;
The motor controller is operated based on the CAN messages received from the Master. The CAN messages for Drive and Steer commands are sent from the Master Controller. Motor controller converts the value received from Master (+100 to -100 for Drive Speed percent and +100 to -100 for Steer angle in the range of 1 to 180 degrees turn) into specific PWM value as required by DC motor and Servo.   &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse frequency from RPM Sensor reduces, that means car is slowing down. Hence, in that scenario, car is accelerated (increase PWM) further to maintain the required speed. Similarly in case of Downhill pulse frequency increases, which means car is speeding up. Hence, brakes (reduced PWM) are applied to compensate the increased speed.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42056</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42056"/>
				<updated>2017-12-18T09:34:06Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Testing &amp;amp; Technical Challenges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is an optional Traxxas &amp;quot;short&amp;quot; RPM Sensor. To collect critical RPM data (Revolutions Per Minute), a &amp;quot;trigger magnet&amp;quot; is installed in the spur gear of electric models, or the flywheel of nitro vehicles. To offset the weight of the magnet, additional material is molded or cast into the opposite side of the spur gear or flywheel. To read the magnet, a hall effect sensor is installed in the gear cover (electric models) or installed on a support arm (nitro models).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller is operated based on the CAN messages received from the Master. The CAN messages for Drive and Steer commands are sent from the Master Controller. Motor controller converts the value received from Master (+100 to -100 for Drive Speed percent and +100 to -100 for Steer angle in the range of 1 to 180 degrees turn) into specific PWM value as required by DC motor and Servo.   &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse frequency from RPM Sensor reduces, that means car is slowing down. Hence, in that scenario, car is accelerated (increase PWM) further to maintain the required speed. Similarly in case of Downhill pulse frequency increases, which means car is speeding up. Hence, brakes (reduced PWM) are applied to compensate the increased speed.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42055</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42055"/>
				<updated>2017-12-18T09:33:16Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is an optional Traxxas &amp;quot;short&amp;quot; RPM Sensor. To collect critical RPM data (Revolutions Per Minute), a &amp;quot;trigger magnet&amp;quot; is installed in the spur gear of electric models, or the flywheel of nitro vehicles. To offset the weight of the magnet, additional material is molded or cast into the opposite side of the spur gear or flywheel. To read the magnet, a hall effect sensor is installed in the gear cover (electric models) or installed on a support arm (nitro models).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller is operated based on the CAN messages received from the Master. The CAN messages for Drive and Steer commands are sent from the Master Controller. Motor controller converts the value received from Master (+100 to -100 for Drive Speed percent and +100 to -100 for Steer angle in the range of 1 to 180 degrees turn) into specific PWM value as required by DC motor and Servo.   &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse frequency from RPM Sensor reduces, that means car is slowing down. Hence, in that scenario, car is accelerated (increase PWM) further to maintain the required speed. Similarly in case of Downhill pulse frequency increases, which means car is speeding up. Hence, brakes (reduced PWM) are applied to compensate the increased speed.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42054</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42054"/>
				<updated>2017-12-18T09:24:47Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* 2. RPM Sensor = */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is an optional Traxxas &amp;quot;short&amp;quot; RPM Sensor. To collect critical RPM data (Revolutions Per Minute), a &amp;quot;trigger magnet&amp;quot; is installed in the spur gear of electric models, or the flywheel of nitro vehicles. To offset the weight of the magnet, additional material is molded or cast into the opposite side of the spur gear or flywheel. To read the magnet, a hall effect sensor is installed in the gear cover (electric models) or installed on a support arm (nitro models).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals as a PWM and feeds it to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42053</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42053"/>
				<updated>2017-12-18T09:24:19Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals as a PWM and feeds it to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. &lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42052</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42052"/>
				<updated>2017-12-18T09:21:26Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Software Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CmpE243_F17_Motor_Software_Flow.JPG|frame|centre|1000px|Flowchart.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Motor_Software_Flow.JPG&amp;diff=42051</id>
		<title>File:CmpE243 F17 Motor Software Flow.JPG</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Motor_Software_Flow.JPG&amp;diff=42051"/>
				<updated>2017-12-18T09:20:53Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42049</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42049"/>
				<updated>2017-12-18T09:07:37Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Hardware Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|500px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42048</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42048"/>
				<updated>2017-12-18T09:07:06Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Hardware Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|200px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Motor Module Hardware Interface ===&lt;br /&gt;
The Hardware connections of Motor Module is shown in above Schematic. The motor receive signals through CAN bus from the Master and feedback is sent via RPM sensor to the Master as current speed of the Car. The speed sent from a RPM sensor over a CAN bus is also utilized by I/O Module and BLE module to print the values on LED display and Android App.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42040</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42040"/>
				<updated>2017-12-18T08:52:16Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* 2. RPM Sensor = */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|200px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_Sensor.jpg ‎|thumb|center|400px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The RPM sensor above requires a specific kind of Installation. '''STEPS ARE:'''&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_RPM_install1.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_RPM_install2.JPG ‎|thumb|center|1000px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the installation is done, the RPM can be read using the above magnetic RPM sensor. It gives a high pulse at every rotation of the wheel. Hence, to calculate the RPM, the output of the above sensor is fed to a gpio pin of SJOne board. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_RPM_install2.JPG&amp;diff=42039</id>
		<title>File:CmpE243 F17 RPM install2.JPG</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_RPM_install2.JPG&amp;diff=42039"/>
				<updated>2017-12-18T08:49:11Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_RPM_install1.JPG&amp;diff=42037</id>
		<title>File:CmpE243 F17 RPM install1.JPG</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_RPM_install1.JPG&amp;diff=42037"/>
				<updated>2017-12-18T08:45:29Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42031</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42031"/>
				<updated>2017-12-18T08:41:53Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* 1. DC Motor, Servo and ESC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|200px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42030</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42030"/>
				<updated>2017-12-18T08:41:03Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* 2. Speed Sensor = */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|200px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&lt;br /&gt;
   &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. RPM Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_RPM_Sensor.jpg&amp;diff=42029</id>
		<title>File:CmpE243 F17 RPM Sensor.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_RPM_Sensor.jpg&amp;diff=42029"/>
				<updated>2017-12-18T08:40:55Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42028</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42028"/>
				<updated>2017-12-18T08:39:08Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* 1. DC Motor, Servo and ESC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|200px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
Once, the Calibration is done, ESC is ready to be operated with PWM Signals. The DC motor PWM is converted in the range of -100% to 100% where -100% means &amp;quot;reverse with full speed&amp;quot;, 100% means &amp;quot;forward with full speed&amp;quot; and 0 means &amp;quot;Stop or Neutral&amp;quot;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Also, servo can also be operated in Safe manner using PWM. Here are some notes on '''how not to blow a servo motor''':&lt;br /&gt;
&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
As we need a locked 0 –&amp;gt; 180 degrees motion in certain applications like robot arm, Humanoids etc. We use these Servo motors. These are Normal motors only with a potentiometer connected to its shaft which gives us the feedback of analog value and adjusts its angle according to its given input signal.&lt;br /&gt;
&lt;br /&gt;
So… How to Operate it?&lt;br /&gt;
A servo usually requires 5V-&amp;gt;6V As VCC. (As i am Talking about hobby servos that all the other hobbyists use.. Industrial servos requires more.) and Ground and a signal to adjust its position.&lt;br /&gt;
The signal is a PWM waveform. For a servo we need to provide a PWM of frequency about 50Hz-200Hz (Refer the datasheet). so the time duration of a clock cycle goes to 20ms. From this 20ms if the On time is 1ms and off time is 19ms we generally get the 0 degrees position. And when we increase the duty cycle from 1ms to 2ms the angle changes from 0–&amp;gt; 180 degrees.&lt;br /&gt;
So where can it go wrong-&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor_operation.png|thumb|center|500px|Servo Motor Operation]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Power-&amp;gt;&amp;gt; The power we provide. Generally we tend to give a higher volt batteries for our applications by pulling the voltage down through regulators to 5Vs. But we surely can-not give supply to the servo through our uC as the servo eats up a hell lot of current and the one which i use i.e. Atmega16 can mostly source only up to 200mA so it will totally burn it.&lt;br /&gt;
&lt;br /&gt;
Another way to burn the servo is at certain times the supply is given directly through the battery so the uC will not blow up. But if you Give a supply say 12Volts then boom. Your servo will go own for ever.&lt;br /&gt;
&lt;br /&gt;
PWM–&amp;gt; PWM should strictly be in the range between 1ms–&amp;gt; 2ms (refer datasheets) If by any mistakes the PWM goes out then boom the servo will start jittering and will heat up and heat up and will burn itself down. But this problem is easily identifiable as there is a jitter sound which if you have got enough experience with servos, you will totally notice the noise. So if the noise is there when you turn on the servo, turn it off right away and change the code ASAP.&lt;br /&gt;
&lt;br /&gt;
Load— Hobby servos don’t have high load bearing capacities and as it is designed that way it always tries to adjust its angle according to signal. But here is the catch. As there is too much off load the servo cannot go further and the signal is forcing it to. So again.. heat… heat and boom. How to avoid this. Give load to the servo only in the figure of safety.&lt;br /&gt;
   &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Servo_Motor_operation.png&amp;diff=42027</id>
		<title>File:CmpE243 F17 Servo Motor operation.png</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Servo_Motor_operation.png&amp;diff=42027"/>
				<updated>2017-12-18T08:37:15Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42016</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42016"/>
				<updated>2017-12-18T08:28:56Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* 1. DC Motor, Servo and ESC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|200px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(A).png|thumb|center|200px|ESC Calibration Step 2 and 3]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(B).png|thumb|center|200px|ESC Calibration Step 4 and 5]]&lt;br /&gt;
[[File:CmpE243_F17_ESC_Cali(D).png|thumb|center|200px|ESC Calibration Step 6]]&lt;br /&gt;
&lt;br /&gt;
1. Connect a fully charged battery pack to the ESC. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn on the transmitter (with the throttle at neutral). &amp;lt;br&amp;gt;&lt;br /&gt;
3. Press and hold the EZ-Set button (A). The LED will first turn green and then red. Release the EZ-Set button. &amp;lt;br&amp;gt;&lt;br /&gt;
4. When the LED blinks RED ONCE, pull the throttle trigger to the full throttle position and hold it there (B). &amp;lt;br&amp;gt;&lt;br /&gt;
5. When the LED blinks RED TWICE, push the throttle trigger to the full reverse and hold it there (C). &amp;lt;br&amp;gt;&lt;br /&gt;
6. When the LED blinks GREEN ONCE, programming is complete. The LED will then shine green or red (depending on low-voltage detection setting) indicating the ESC is on and at neutral (D).&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_ESC_Cali(D).png&amp;diff=42015</id>
		<title>File:CmpE243 F17 ESC Cali(D).png</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_ESC_Cali(D).png&amp;diff=42015"/>
				<updated>2017-12-18T08:26:49Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_ESC_Cali(B).png&amp;diff=42012</id>
		<title>File:CmpE243 F17 ESC Cali(B).png</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_ESC_Cali(B).png&amp;diff=42012"/>
				<updated>2017-12-18T08:22:49Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42011</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42011"/>
				<updated>2017-12-18T08:19:40Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Motor Controller */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|200px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|100px|ESC Calibration Step 1]]&lt;br /&gt;
Connect a fully charged battery pack to the ESC.&lt;br /&gt;
   &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 2. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42009</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42009"/>
				<updated>2017-12-18T08:18:00Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Motor Controller */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|200px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration:&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|100px|ESC Calibration Step 1]]&lt;br /&gt;
Connect a fully charged battery pack to the ESC.&lt;br /&gt;
   &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
 &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_ESC_Cali(A).png&amp;diff=42008</id>
		<title>File:CmpE243 F17 ESC Cali(A).png</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_ESC_Cali(A).png&amp;diff=42008"/>
				<updated>2017-12-18T08:14:45Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42005</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=42005"/>
				<updated>2017-12-18T08:10:46Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Hardware Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.JPG |frame|left|200px| Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.1&lt;br /&gt;
| HEADlIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P1.19&lt;br /&gt;
| BRAKELIGHTS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P1.20&lt;br /&gt;
| LEFT INDICATORS&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P1.22&lt;br /&gt;
| RIGHT INDICATORS&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P0.26&lt;br /&gt;
| RPM SENSOR&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P2.0&lt;br /&gt;
| SERVO PWM&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| P2.1&lt;br /&gt;
| MOTOR PWM&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Motor_Traxxas.jpg |thumb|left|200px|DC Motor]]&lt;br /&gt;
===== 1. DC Motor, Servo and ESC  =====&lt;br /&gt;
This is a Traxxas Titan 380 18-turn brushed motor. The DC motor comes with the Electronic Speed Control(ESC) module. The ESC module can control both servo and DC motor using Pulse Width Modulation (PWM) control. ESC also requires an initial calibration   &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Servo_Motor.jpg|thumb|left|200px|Servo Motor]]&lt;br /&gt;
 &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|200px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Servo_Motor.jpg&amp;diff=42003</id>
		<title>File:CmpE243 F17 Servo Motor.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Servo_Motor.jpg&amp;diff=42003"/>
				<updated>2017-12-18T08:09:37Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Motor_Traxxas.jpg&amp;diff=41939</id>
		<title>File:CmpE243 F17 Motor Traxxas.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Motor_Traxxas.jpg&amp;diff=41939"/>
				<updated>2017-12-18T06:27:59Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41934</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41934"/>
				<updated>2017-12-18T05:50:37Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Hardware Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CmpE243_F17_Motor_Schematic.jpg|frame|left|200px|Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.0&lt;br /&gt;
| CAN RX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.1&lt;br /&gt;
| CAN TX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P2.0&lt;br /&gt;
| Servo motor&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.1&lt;br /&gt;
| DC motor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.5&lt;br /&gt;
| Speed Encoder&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DCMotor.png|thumb|left|200px|DC Motor]]&lt;br /&gt;
=====1. DC Motor =====&lt;br /&gt;
Our car came with Titan 12T 550 brushed motor and waterproof ESC. The ESC drives the DC motor based on the Pulse Width modulation (PWM) applied to it. The power supply required for this motor is 8.4 V. Maximum speed of upto 30mph can be achieved. The rotational speed is proportional to the EMF generated in its coil and the torque is proportional to the current.The main connection pins driving the motor are VCC,GND and the Control pin (PWM). The pin P2.1 of SJ-one board is connected to supply the required PWM to the motor.&lt;br /&gt;
The basic working principle of DC motor is illustrated in the following figure :&lt;br /&gt;
Since the preprogrammed controller has to be replaced by using our design ,the DC motor is then tested with Digital Oscilloscope for getting the frequency of operation and equivalent PWM values for full throttle condition in the forward as well as backward condition.&lt;br /&gt;
It was observed from the waveform that the frequency of operation is 100Hz. The range of operational duty cycle is 10% to 20% with 15% being the neutral value or the stop condition.&lt;br /&gt;
In order to accelerate the car a PWM value in the range of 15.6%-20.0% is applied. The 15.6 is the minimum pickup PWM that should be supplied in order to get the car moving at full load. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_ServoMotor.png|thumb|left|140px|Servo Motor]]&lt;br /&gt;
=====2. Servo Motor =====&lt;br /&gt;
The servomotor used in the car is #2056 a waterproof all weather-action and double the steering power as compared to standard servos. The servo motor is responsible for controlling the steering action of right or left by applying a suitable PWM pulse. The servo motor can be driven with 3.3 V power supply. The pin P2.0 of SJ-one board is connected to supply the required PWM to the motor. After testing the servo motor, we found that the frequency of operation is 100Hz and the operational duty cycle range is 10.0%-20.0% with 15% being the neutral value. For a full right deflection, we provide input PWM pulse ranging from 15.0-20.0% and for full deflection to the left we apply 10.0-15.0% of PWM. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DSO.png|thumb|centre|700px|Digital Oscilloscope readings for the motors]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_HallEffectSensor.png|thumb|left|300px|Hall-Effect Principle.]]&lt;br /&gt;
=====3. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|600px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Motor_Schematic.JPG&amp;diff=41933</id>
		<title>File:CmpE243 F17 Motor Schematic.JPG</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_Motor_Schematic.JPG&amp;diff=41933"/>
				<updated>2017-12-18T05:49:44Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: Motor Controller Schematic&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Motor Controller Schematic&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41924</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41924"/>
				<updated>2017-12-18T05:34:07Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Team Members &amp;amp; Responsibilities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CMPE243_F16_SnF_MotorHardwareInterface.png|frame|left|200px|Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.0&lt;br /&gt;
| CAN RX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.1&lt;br /&gt;
| CAN TX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P2.0&lt;br /&gt;
| Servo motor&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.1&lt;br /&gt;
| DC motor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.5&lt;br /&gt;
| Speed Encoder&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DCMotor.png|thumb|left|200px|DC Motor]]&lt;br /&gt;
=====1. DC Motor =====&lt;br /&gt;
Our car came with Titan 12T 550 brushed motor and waterproof ESC. The ESC drives the DC motor based on the Pulse Width modulation (PWM) applied to it. The power supply required for this motor is 8.4 V. Maximum speed of upto 30mph can be achieved. The rotational speed is proportional to the EMF generated in its coil and the torque is proportional to the current.The main connection pins driving the motor are VCC,GND and the Control pin (PWM). The pin P2.1 of SJ-one board is connected to supply the required PWM to the motor.&lt;br /&gt;
The basic working principle of DC motor is illustrated in the following figure :&lt;br /&gt;
Since the preprogrammed controller has to be replaced by using our design ,the DC motor is then tested with Digital Oscilloscope for getting the frequency of operation and equivalent PWM values for full throttle condition in the forward as well as backward condition.&lt;br /&gt;
It was observed from the waveform that the frequency of operation is 100Hz. The range of operational duty cycle is 10% to 20% with 15% being the neutral value or the stop condition.&lt;br /&gt;
In order to accelerate the car a PWM value in the range of 15.6%-20.0% is applied. The 15.6 is the minimum pickup PWM that should be supplied in order to get the car moving at full load. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_ServoMotor.png|thumb|left|140px|Servo Motor]]&lt;br /&gt;
=====2. Servo Motor =====&lt;br /&gt;
The servomotor used in the car is #2056 a waterproof all weather-action and double the steering power as compared to standard servos. The servo motor is responsible for controlling the steering action of right or left by applying a suitable PWM pulse. The servo motor can be driven with 3.3 V power supply. The pin P2.0 of SJ-one board is connected to supply the required PWM to the motor. After testing the servo motor, we found that the frequency of operation is 100Hz and the operational duty cycle range is 10.0%-20.0% with 15% being the neutral value. For a full right deflection, we provide input PWM pulse ranging from 15.0-20.0% and for full deflection to the left we apply 10.0-15.0% of PWM. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DSO.png|thumb|centre|700px|Digital Oscilloscope readings for the motors]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_HallEffectSensor.png|thumb|left|300px|Hall-Effect Principle.]]&lt;br /&gt;
=====3. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|600px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41923</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41923"/>
				<updated>2017-12-18T05:33:34Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Team Members &amp;amp; Responsibilities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** Rajul&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/ Rajul]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CMPE243_F16_SnF_MotorHardwareInterface.png|frame|left|200px|Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.0&lt;br /&gt;
| CAN RX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.1&lt;br /&gt;
| CAN TX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P2.0&lt;br /&gt;
| Servo motor&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.1&lt;br /&gt;
| DC motor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.5&lt;br /&gt;
| Speed Encoder&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DCMotor.png|thumb|left|200px|DC Motor]]&lt;br /&gt;
=====1. DC Motor =====&lt;br /&gt;
Our car came with Titan 12T 550 brushed motor and waterproof ESC. The ESC drives the DC motor based on the Pulse Width modulation (PWM) applied to it. The power supply required for this motor is 8.4 V. Maximum speed of upto 30mph can be achieved. The rotational speed is proportional to the EMF generated in its coil and the torque is proportional to the current.The main connection pins driving the motor are VCC,GND and the Control pin (PWM). The pin P2.1 of SJ-one board is connected to supply the required PWM to the motor.&lt;br /&gt;
The basic working principle of DC motor is illustrated in the following figure :&lt;br /&gt;
Since the preprogrammed controller has to be replaced by using our design ,the DC motor is then tested with Digital Oscilloscope for getting the frequency of operation and equivalent PWM values for full throttle condition in the forward as well as backward condition.&lt;br /&gt;
It was observed from the waveform that the frequency of operation is 100Hz. The range of operational duty cycle is 10% to 20% with 15% being the neutral value or the stop condition.&lt;br /&gt;
In order to accelerate the car a PWM value in the range of 15.6%-20.0% is applied. The 15.6 is the minimum pickup PWM that should be supplied in order to get the car moving at full load. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_ServoMotor.png|thumb|left|140px|Servo Motor]]&lt;br /&gt;
=====2. Servo Motor =====&lt;br /&gt;
The servomotor used in the car is #2056 a waterproof all weather-action and double the steering power as compared to standard servos. The servo motor is responsible for controlling the steering action of right or left by applying a suitable PWM pulse. The servo motor can be driven with 3.3 V power supply. The pin P2.0 of SJ-one board is connected to supply the required PWM to the motor. After testing the servo motor, we found that the frequency of operation is 100Hz and the operational duty cycle range is 10.0%-20.0% with 15% being the neutral value. For a full right deflection, we provide input PWM pulse ranging from 15.0-20.0% and for full deflection to the left we apply 10.0-15.0% of PWM. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DSO.png|thumb|centre|700px|Digital Oscilloscope readings for the motors]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_HallEffectSensor.png|thumb|left|300px|Hall-Effect Principle.]]&lt;br /&gt;
=====3. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|600px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41920</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41920"/>
				<updated>2017-12-18T05:32:42Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Team Members &amp;amp; Responsibilities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** Rajul&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* PCB Design&lt;br /&gt;
** Rajul&lt;br /&gt;
** [https://www.linkedin.com/in/rajul-gupta-5b366ba9/]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CMPE243_F16_SnF_MotorHardwareInterface.png|frame|left|200px|Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.0&lt;br /&gt;
| CAN RX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.1&lt;br /&gt;
| CAN TX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P2.0&lt;br /&gt;
| Servo motor&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.1&lt;br /&gt;
| DC motor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.5&lt;br /&gt;
| Speed Encoder&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DCMotor.png|thumb|left|200px|DC Motor]]&lt;br /&gt;
=====1. DC Motor =====&lt;br /&gt;
Our car came with Titan 12T 550 brushed motor and waterproof ESC. The ESC drives the DC motor based on the Pulse Width modulation (PWM) applied to it. The power supply required for this motor is 8.4 V. Maximum speed of upto 30mph can be achieved. The rotational speed is proportional to the EMF generated in its coil and the torque is proportional to the current.The main connection pins driving the motor are VCC,GND and the Control pin (PWM). The pin P2.1 of SJ-one board is connected to supply the required PWM to the motor.&lt;br /&gt;
The basic working principle of DC motor is illustrated in the following figure :&lt;br /&gt;
Since the preprogrammed controller has to be replaced by using our design ,the DC motor is then tested with Digital Oscilloscope for getting the frequency of operation and equivalent PWM values for full throttle condition in the forward as well as backward condition.&lt;br /&gt;
It was observed from the waveform that the frequency of operation is 100Hz. The range of operational duty cycle is 10% to 20% with 15% being the neutral value or the stop condition.&lt;br /&gt;
In order to accelerate the car a PWM value in the range of 15.6%-20.0% is applied. The 15.6 is the minimum pickup PWM that should be supplied in order to get the car moving at full load. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_ServoMotor.png|thumb|left|140px|Servo Motor]]&lt;br /&gt;
=====2. Servo Motor =====&lt;br /&gt;
The servomotor used in the car is #2056 a waterproof all weather-action and double the steering power as compared to standard servos. The servo motor is responsible for controlling the steering action of right or left by applying a suitable PWM pulse. The servo motor can be driven with 3.3 V power supply. The pin P2.0 of SJ-one board is connected to supply the required PWM to the motor. After testing the servo motor, we found that the frequency of operation is 100Hz and the operational duty cycle range is 10.0%-20.0% with 15% being the neutral value. For a full right deflection, we provide input PWM pulse ranging from 15.0-20.0% and for full deflection to the left we apply 10.0-15.0% of PWM. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DSO.png|thumb|centre|700px|Digital Oscilloscope readings for the motors]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_HallEffectSensor.png|thumb|left|300px|Hall-Effect Principle.]]&lt;br /&gt;
=====3. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). [[File:CmpE243_F17_Optimus_LidarSystemComposition.PNG|350px|thumb|right||LIDAR System Composition]]&lt;br /&gt;
Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
A laser beam is sent out by the transmitter and the reflected laser beam is received back. Depending on the time taken to receive the beam back, the distance of the obstacle is calculated. If there is no obstacle, the beam will not be reflected back.&lt;br /&gt;
&lt;br /&gt;
====Hardware Implementation====&lt;br /&gt;
=====Specifications of the LIDAR=====&lt;br /&gt;
&lt;br /&gt;
The specifications of the LIDAR as mentioned in the datasheet are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
Power Supply: 5V &amp;lt;br&amp;gt;&lt;br /&gt;
Serial Communication interface: UART &amp;lt;br&amp;gt;&lt;br /&gt;
Baud Rate for the UART: 115200 &amp;lt;br&amp;gt;&lt;br /&gt;
Working mode of the UART: 8N1 &amp;lt;br&amp;gt;&lt;br /&gt;
PWM Maximum Voltage: 5V (Typical 3.3V)&lt;br /&gt;
PWM frequency: 25KHz &amp;lt;br&amp;gt;&lt;br /&gt;
Duty Cycle of the PWM wave: 60% - 100% &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Connections to the SJOne Board=====&lt;br /&gt;
The LIDAR works with a UART interface and hence has been connected to the UART3 pins of of the SJOne board i.e. P4.28 and P4.29. As the LIDAR needs a 5V supply, it is provided from the PCB (which is powered through a power bank) instead of the SJOne board which can supply only 3.3V. The connections can be seen in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARconnections.jpg|1000PX|thumb|center|LIDAR Connections to SJOne Board]]&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=====Approach for obtaining the data from the LIDAR=====&lt;br /&gt;
The LIDAR senses all the obstacles around it (360 degrees upto a range of 6000cm) one degree at a time. This means that for one rotation of the LIDAR WE GET 360 values i.e. 360 angles with their corresponding obstacle information. It takes 180ms for the LIDAR to complete one 360 degree scan. Since we do not need obstacle information for each and every angle, we group a few angles together into &amp;quot;sectors&amp;quot; and consider the nearest object present in a sector as an obstacle. To identify how far an obstacle is located, the distance values are grouped into &amp;quot;tracks&amp;quot; i.e 0cm to 25cm is track 1 and 25cm to 50cm is track 2 and so on. The motor will take action depending on the track in which an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LidarSectors.jpg|700px|thumb|center|LIDAR readings divided into sectors and tracks]]&lt;br /&gt;
&lt;br /&gt;
=====Algorithm for interfacing LIDAR to SJOne board and obtaining the obstacle info=====&lt;br /&gt;
Step 1: Send a GET_HEALTH (0XA5 0X52) Request. If the receive times out it is a communication error.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_GetHealthRequestResponse.PNG|500px|thumb|center|The GET_HEALTH request and response packets]]&lt;br /&gt;
Step 2: Check if a ‘protection stop’ is happening. If it is happening then send a RESET (0XA5 0X40). Again check for ‘protection stop’ and if it it still set, send a RESET again. If ‘protection stop’ is set even after sending RESET multiple times it means there is a hardware defect. If there is no hardware defect, proceed to the next step.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_ResetRequest.PNG|500px|thumb|center|The RESET request packet]]&lt;br /&gt;
Step 3: Send a START_SCAN (0XA5 0X20) request. Wait for the response header. If there is no timeout, read the measurement sample. Otherwise check HEALTH_STATUS and MOTOR_STATUS again. Send START_SCAN again.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_StartScanRequestResponse.PNG|500px|thumb|center|The START_SCAN request and response packets]]&lt;br /&gt;
Step 4: Continuously read the measurement samples.The data sent from the LIDAR will contain the start bit, angle, distance and quality. The start bit is set to 1 after every single 360 degree scan. The angle and distance represent to the motor angle and the obstacle in that corresponding angle. The quality represents the strength of the reflected beam. If the quality is zero it means that there is no obstacle in that direction. This data is processed to be group the information into sectors and tracks.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:CmpE243_F17_Optimus_DistanceMeasurements.PNG|500px|thumb|center|The measurement response packet]]&lt;br /&gt;
Step 5: If we wish to stop the readings, send a STOP (0XA5 0X25) request. This is the end of operation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Flowchart for Communicating with the LIDAR and receiving obstacle information=====&lt;br /&gt;
The entire flowchart for communicating with the LIDAR and receiving data from it is shown in the figure below:&lt;br /&gt;
[[File:CmpE243_F17_Optimus_LIDARflowchart.png|700px|thumb|center|Flowchart for communicating with the LIDAR and receiving obstacle information from it]]&lt;br /&gt;
&lt;br /&gt;
=====Testing the data obtained from the LIDAR=====&lt;br /&gt;
To perform the initial testing of the LIDAR and to check if we are getting the correct obstacle info, we have made a setup enclosing the LIDAR on all four sides. So, by plotting the distance info given by the LIDAR in Microsoft Excel we can visualize a map of the obstacles as detected by the LIDAR. The map plotted in Excel after closing almost all four sides of the LIDAR can be shown in the figure shown below.&lt;br /&gt;
&lt;br /&gt;
[Figure of a plot of the LIDAR readings (done in Excel) will be added]&lt;br /&gt;
&lt;br /&gt;
=====CAN DBC messages sent from the Sensor Controller=====&lt;br /&gt;
The data received from the LIDAR is grouped into sectors and tracks and is sent over the CAN bus. The CAN DBC messages in the DBC file will be as follows&amp;lt;br&amp;gt;&lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: HC-05.jpg|600px|thumb|center|| Bluetooth Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Gps.JPG|600px|thumb|center|| GPS ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Global Positioning System (GPS), originally Navstar GPS, is a space-based radio navigation system owned by the United States government and operated by the United States Air Force. It is a global navigation satellite system that provides geo location and time information to a GPS receiver anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Compass.JPG|600px|thumb|center|| Compass]]&lt;br /&gt;
A compass is an instrument used for navigation and orientation that shows direction relative to the geographic cardinal directions (or points). Usually, a diagram called a compass rose shows the directions north, south, east, and west on the compass face as abbreviated initials. When the compass is used, the rose can be aligned with the corresponding geographic directions; for example, the &amp;quot;N&amp;quot; mark on the rose really points northward. Compasses often display markings for angles in degrees in addition to (or sometimes instead of) the rose. North corresponds to 0°, and the angles increase clockwise, so east is 90° degrees, south is 180°, and west is 270°. These numbers allow the compass to show azimuths or bearings, which are commonly stated in this notation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''GPS''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compass''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 0x20 message contains compass data. The structure of the message is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
55 AA 20 06 CX CX CY CY CZ CZ CS CS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values in the message are stored in little endian format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3   : message id (0x20 for compass message)&lt;br /&gt;
BYTE 4   : length of the payload (0x06 or 6 decimal for 0x20 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-6 (CX): compass X axis data (signed) &lt;br /&gt;
BYTE 7-8 (CY): compass Y axis data (signed)&lt;br /&gt;
BYTE 9-10 (CZ): compass Z axis data (signed)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
All the bytes of the payload except 9th are XORed with a mask. Mask is calculated based on the value of the 9th byte.&lt;br /&gt;
&lt;br /&gt;
If we index bits from LSB to MSB as 0-7 we have:&lt;br /&gt;
&lt;br /&gt;
mask[0] = 9thByte[0] xor 9thByte[4]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[1] = 9thByte[1] xor 9thByte[5]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[2] = 9thByte[2] xor 9thByte[6]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[3] = 9thByte[3] xor 9thByte[7] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[4] = 9thByte[1];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[5] = 9thByte[2];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[6] = 9thByte[3];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mask[7] = 9thByte[4] xor 9thByte[0];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Calibration''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why calibrate the compass? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ferromagnetic substances placed on multi-rotor or around its working environment affect the reading of earth’s magnetic field for the digital compass. It also reduces the accuracy of the multi-rotor control, or even reads an incorrect heading. Calibration will eliminate such influences, and ensure MC system performs well in a non-ideal magnetic environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When to do it?&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
•	The first time you install Naza compass.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
•	When the multi-rotor mechanical setup has changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If the GPS/Compass module is re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•	If electronic devices are added/removed/re-positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Pin.JPG|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bearing of a point is the number of degrees in the angle measured in a clockwise direction from the north line to the line joining the centre of the compass with the point. A bearing is used to represent the direction of one point relative to another point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Dbc.JPG|600px|thumb|center|| DBC Messages]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Route.JPG|600px|thumb|center|| GPS Route]]&lt;br /&gt;
&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41798</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=41798"/>
				<updated>2017-12-18T00:26:19Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Motor Controller */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Optimus''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller.&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
== Team Members &amp;amp; Responsibilities ==&lt;br /&gt;
&lt;br /&gt;
*  Motor Controller&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** Rajul&lt;br /&gt;
&lt;br /&gt;
*  Android and Communication Bridge&lt;br /&gt;
** Parimal&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  Geographical Controller:&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sarveshharhare Sarvesh Harhare]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*  Master Controller:&lt;br /&gt;
** Revathy&lt;br /&gt;
&lt;br /&gt;
*  Sensor and I/O Controller:&lt;br /&gt;
** Sushma&lt;br /&gt;
** Supradeep&lt;br /&gt;
** Harshitha&lt;br /&gt;
&lt;br /&gt;
* Integration Testing&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
** [https://www.linkedin.com/in/sneha-shahi-8b1636152 Sneha]&amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/kripanandjha Kripanand Jha]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Project Schedule ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2017&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Unit Testing obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Completed PCB Design&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Destination Reached flag is tracked to stop the car on reaching destination &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Checkpoint Id CAN signal is processed by Master to start the car once destination is selected &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Defined the BLE Controller messages to android in JSON message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;On Demand Advertisement- Current Marker Location &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Draggable Destination Marker for final destination and intermittent checkpoint transmission to GEO from Android via BLE&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement system start/stop triggers from different use cases &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Turning angle offset of -10,10 is added to take right / left turn &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -&amp;gt; used Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;[Geo:] Saving the checkpoints in SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented start-stop triggers from android and auto start on start of route navigation &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Turning angle from geo is handled with offset &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; battery-status is optional feature. Planning for later &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [BLE:] Received Telemetry messages are transmitted to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Android app views created for visualizing Telemetry data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Test and validate success/fail cases for on-board I/O display information &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto Connection and Pairing implemented &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Completed maneuvering implementation with Android app  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Sensor obstacle LIDAR information has been updated on the app&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble.&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Integration testing with Android App with Debug view/Dash board with sensor and GPS data&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2017&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| On Track&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
The Project bill of materials is as listed in the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Units &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Cost&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| General System Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview Traxaas RC Car]&lt;br /&gt;
| 1&lt;br /&gt;
| From Prof. Kaikai Liu &lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| 15&lt;br /&gt;
| $55&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| [http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| [https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 3D printing&lt;br /&gt;
| 2&lt;br /&gt;
| From Marvin&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| General Hardware components( Connectors,standoffs,Soldering Kits)&lt;br /&gt;
| 1&lt;br /&gt;
| $40&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| [https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| LED Digital Display&lt;br /&gt;
| 1&lt;br /&gt;
| From Preet&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| [https://www.amazon.com/AdirOffice-Acrylic-Plexiglass-Sheet-Weatherproof/dp/B072BY9L5B/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524920&amp;amp;sr=8-1&amp;amp;keywords=acrylic+board+clear Acrylic Board]&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor/IO Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| [https://www.amazon.com/RPLIDAR-A2-The-Thinest-LIDAR/dp/B01L1T32PI RP Lidar]&lt;br /&gt;
| 1&lt;br /&gt;
| $449&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Components&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| [https://www.amazon.com/DJI-Naza-M-LITE-GPS-Module/dp/B017K2RMCO/ref=sr_1_1?ie=UTF8&amp;amp;qid=1513524634&amp;amp;sr=8-1&amp;amp;keywords=Naza+GPS GPS Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $50&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| | [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Drive Controller Component&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| |[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SNo.&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message ID&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Message from Source Node&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Receivers&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Master Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| System Start command to start motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 17&lt;br /&gt;
| Target Speed-Steer Signal to Motor&lt;br /&gt;
| Motor&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 194&lt;br /&gt;
| Telemetry Message to Display it on Android&lt;br /&gt;
| BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Sensor Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| 3&lt;br /&gt;
| Lidar Detections of obstacles in 360 degree grouped as sectors&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| 36&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Geo Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| 195&lt;br /&gt;
| Compass, Destination Reached flag, Checkpoint id signals&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 4&lt;br /&gt;
| Turning Angle&lt;br /&gt;
| Master,BLE&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| 4&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;| Bluetooth Bridge Controller Message&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| 1&lt;br /&gt;
| Send start command received from Android app to master&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| 38&lt;br /&gt;
| Heartbeat&lt;br /&gt;
| Master&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| 213&lt;br /&gt;
| Checkpoint Count from AndroidApp &lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| 212&lt;br /&gt;
| Checkpoints (Lat, Long) from Android App&lt;br /&gt;
| Geo&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Hardware &amp;amp; Software Architecture'''  ==&lt;br /&gt;
&lt;br /&gt;
=== '''Master Controller Design &amp;amp; Implementation''' ===&lt;br /&gt;
&lt;br /&gt;
==== '''Software Architecture Design''' ====&lt;br /&gt;
&lt;br /&gt;
The Master Controller Integrates the functionality of all other controllers and it acts as the Central Control Unit of the R/C car. Two of the major functionalities handled by Mater Controller is Obstacle avoidance and Route Manuevering. &lt;br /&gt;
&lt;br /&gt;
The overview of Master Controller Software Architecture  is to shown in the below figure. &lt;br /&gt;
[[ File: CMPE243_F17_Optimus_MasterSWArchitecture.png|700px|thumb|center|| SW Architecture]]&lt;br /&gt;
&lt;br /&gt;
As an analogy to Human driving, it receives the imputs from sensors to determine the surrounding of the R/C car and take decisions based on the environments and commands from the user. The input data it receives includes the following. The output of the Master controller is to direct the Motor with target Speed and Steering direction.&lt;br /&gt;
&lt;br /&gt;
1. Lidar Object Detections - To determine if there is any obstacle in the path of navigation&lt;br /&gt;
&lt;br /&gt;
2. GPS and Compass Reading - To understand the Heading and Bearing angle to decide the direction of movement&lt;br /&gt;
&lt;br /&gt;
3. User command from Android - To stop or Navigate to the Destination&lt;br /&gt;
&lt;br /&gt;
==== '''Software Implementation''' ====&lt;br /&gt;
To Add:&lt;br /&gt;
&lt;br /&gt;
Obstacle Detection design&lt;br /&gt;
&lt;br /&gt;
Obstacle Avoidance Algorithm&lt;br /&gt;
&lt;br /&gt;
Overall Control Flow&lt;br /&gt;
&lt;br /&gt;
Debug Leds map&lt;br /&gt;
&lt;br /&gt;
GPIO interface to led, CAN txrx&lt;br /&gt;
&lt;br /&gt;
Description of control flow(periodic tasks)&lt;br /&gt;
&lt;br /&gt;
Handling of Can messages&lt;br /&gt;
&lt;br /&gt;
Unit testing&lt;br /&gt;
&lt;br /&gt;
Issues&lt;br /&gt;
&lt;br /&gt;
== Motor Controller ==&lt;br /&gt;
&lt;br /&gt;
=== Design &amp;amp; Implementation ===&lt;br /&gt;
The Motor Controller is responsible for the Movement and Steering action of the Car. It includes two types of motors, DC motor for movement and DC Servo motor for Steering. The Motor has an inbuilt driver called ESC (Electronic Speed Control) Circuit used the manipulate the speed and steering of the Car. It has a PWM input for both Servo Motor and DC Motor. We are using RPM sensor to take the feedback from the motor to monitor the speed.&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
[[File:CMPE243_F16_SnF_MotorHardwareInterface.png|frame|left|200px|Motor Hardware Schematics]] &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| SJOne Pin Diagram&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Sr.No&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Number&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin Function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| P0.0&lt;br /&gt;
| CAN RX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.1&lt;br /&gt;
| CAN TX&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P2.0&lt;br /&gt;
| Servo motor&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.1&lt;br /&gt;
| DC motor&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.5&lt;br /&gt;
| Speed Encoder&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Hardware Specifications'''&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DCMotor.png|thumb|left|200px|DC Motor]]&lt;br /&gt;
=====1. DC Motor =====&lt;br /&gt;
Our car came with Titan 12T 550 brushed motor and waterproof ESC. The ESC drives the DC motor based on the Pulse Width modulation (PWM) applied to it. The power supply required for this motor is 8.4 V. Maximum speed of upto 30mph can be achieved. The rotational speed is proportional to the EMF generated in its coil and the torque is proportional to the current.The main connection pins driving the motor are VCC,GND and the Control pin (PWM). The pin P2.1 of SJ-one board is connected to supply the required PWM to the motor.&lt;br /&gt;
The basic working principle of DC motor is illustrated in the following figure :&lt;br /&gt;
Since the preprogrammed controller has to be replaced by using our design ,the DC motor is then tested with Digital Oscilloscope for getting the frequency of operation and equivalent PWM values for full throttle condition in the forward as well as backward condition.&lt;br /&gt;
It was observed from the waveform that the frequency of operation is 100Hz. The range of operational duty cycle is 10% to 20% with 15% being the neutral value or the stop condition.&lt;br /&gt;
In order to accelerate the car a PWM value in the range of 15.6%-20.0% is applied. The 15.6 is the minimum pickup PWM that should be supplied in order to get the car moving at full load. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_ServoMotor.png|thumb|left|140px|Servo Motor]]&lt;br /&gt;
=====2. Servo Motor =====&lt;br /&gt;
The servomotor used in the car is #2056 a waterproof all weather-action and double the steering power as compared to standard servos. The servo motor is responsible for controlling the steering action of right or left by applying a suitable PWM pulse. The servo motor can be driven with 3.3 V power supply. The pin P2.0 of SJ-one board is connected to supply the required PWM to the motor. After testing the servo motor, we found that the frequency of operation is 100Hz and the operational duty cycle range is 10.0%-20.0% with 15% being the neutral value. For a full right deflection, we provide input PWM pulse ranging from 15.0-20.0% and for full deflection to the left we apply 10.0-15.0% of PWM. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_DSO.png|thumb|centre|700px|Digital Oscilloscope readings for the motors]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:CMPE243_F16_SnF_HallEffectSensor.png|thumb|left|300px|Hall-Effect Principle.]]&lt;br /&gt;
=====3. Speed Sensor =====&lt;br /&gt;
The speed feedback is monitored through the speed encoder which works on the Hall-effect principle.&lt;br /&gt;
The Hall-effect speed sensor works as a transducer whose output voltage varies in response to the magnetic field.&lt;br /&gt;
The sensor is mounted on the Spur gear instead of the wheel. The sensor would detect the rotation of axle. The motor controller would detect whenever the magnet is aligned with the sensor. This would generate a pulse. The pulse is detected in the form of rising-edge interrupt.&lt;br /&gt;
This gives the wheel rotation count. The wheel rotates for every 1/4th rotation of the spur gear. The rotation count can then be converted to rpm to calculate the speed of the car. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
The CAN bus is used to send and receive messages to and from the Master Controller. The motor controller receives driving and steering signals from the master. The speed calculation is performed using the speed sensor and is sent on the bus, which will be received by the IO controller for display purposes.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
The following diagram describes the flow of the software implementation for the motor driver and speed feedback mechanism.&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart.png|frame|centre|100px|Flowchart.]]&lt;br /&gt;
[[File:CMPE243_F16_SnF_Flowchart2.png|frame|centre|100px|Speed Feedback Implementation.]]&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
The motor controller receives all its signals from Master controller from the CAN bus.&lt;br /&gt;
The motor controller receives the steer and drive command from the master. The motor controller receives the System start command which boots and decodes further drive signals  to the motor controller. Upon receiving the drive command the motor controller decodes the steering action. Upon receiving suitable data about the obstacle from sensor controller the master controller relays appropriate steering action. To achieve better performance in steering, the turn is categorized as FULL and HALF. This gives better precision in turning.&lt;br /&gt;
*Speed Regulation:&lt;br /&gt;
Upon detection of uphill the pulse received from the speed encoder reduces. This is detected and the motor feedback is designed such that the speed is increased by providing higher value of PWM value to drive the DC motor. Similarly, for downhill the pulse count received increases which is detected by the speed encoder and the speed is reduced by applying reduced PWM.&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
*Wheel Alignment Error&lt;br /&gt;
Though the neutral value of PWM is 15% at which the servo is supposed to be aligned straight. In practice, however when we tested the car for straight run slight deflection towards right was observed when the PWM pulse width was set to 15.0 %. Thus, to correct this, we provided correction value of -0.98 giving a resultant PWM pulse width of 14.02%. Thus, we fixed the wheel alignment and obtained the desired straight path traversal.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Speed Sensor Assembly&lt;br /&gt;
The speed encoder was assembled on the spur gear of the car. The installation at first was such that outer fitting was large and was avoiding the pulse trigger by the magnet.As a result of which we were unable to modulate speed.Issue was resolved by using the correct outer assembly of the gear which generated the speed feedback.&lt;br /&gt;
&lt;br /&gt;
=== Sensor Controller ===&lt;br /&gt;
The Sensor is for detecting and avoiding obstacles. For this purpose we have used RPLIDAR by SLAMTEC.&lt;br /&gt;
&lt;br /&gt;
====Introduction====&lt;br /&gt;
The RPLIDAR A2 is a 360 degree 2D laser scanner (LIDAR) solution developed by SLAMTEC. It can take up to 4000 samples of laser ranging per second with high rotation speed. And equipped with SLAMTEC patented OPTMAG technology, it breakouts the life limitation of traditional LIDAR system so as to work stably for a long time. The system can perform 2D 360-degree scan within a 6-meter range. The generated 2D point cloud data can be used in mapping, localization and object/environment modeling. The typical scanning frequency of the RPLIDAR A2 is 10hz (600rpm). Under this condition, the resolution will be 0.9°. And the actual scanning frequency can be freely adjusted within the 5-15hz range according to the requirements of users. The RPLIDAR A2 adopts the low cost laser triangulation measurement system developed by SLAMTEC, which makes the RPLIDAR A2 has excellent performance in all kinds of indoor environment and outdoor environment without direct sunlight exposure.&lt;br /&gt;
&lt;br /&gt;
This LIDAR consists of a range scanner core and the mechanical powering part which makes the core rotate at a high speed. When it functions normally, the scanner will rotate and scan clockwise. And users can get the range scan data via the communication interface of the RPLIDAR (UART) and control the start, stop and rotating speed of the rotate motor via PWM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
&lt;br /&gt;
=== Android Application ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth Controller ===&lt;br /&gt;
==== Hardware Implementation ====&lt;br /&gt;
''' Bluetooth Module:''' &lt;br /&gt;
We are using HC-05 Bluetooth module to send and receive the data from our android application.&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
''' Pin Configuration:'''&lt;br /&gt;
[[ File: bridge_hc_pin.jpg|679px|thumb|center||pin configuration]]&lt;br /&gt;
The Bridge controller is connected to the bluetooth module through the uart serial interface (Uart3) with 9600 baud rate 8-bit data and 1 stop bit.&lt;br /&gt;
==== Software Implementation ====&lt;br /&gt;
''' Pseudo code of Bridge controller: '''&lt;br /&gt;
&lt;br /&gt;
1. Turn on bridge controller.&lt;br /&gt;
&lt;br /&gt;
2. Initialise Bluetooth controller with Uart3 settings.&lt;br /&gt;
&lt;br /&gt;
3. Initialise CAN-BUS with 100 kbps speed.&lt;br /&gt;
&lt;br /&gt;
4. Handle Incoming IO messages it received from the Geo and the Sensor over CAN Bus.&lt;br /&gt;
&lt;br /&gt;
5. Send the received CAN message to the Android over Bluetooth each second.&lt;br /&gt;
&lt;br /&gt;
6. Send the heartbeat message every second to the Master controller.&lt;br /&gt;
&lt;br /&gt;
7. Read Bluetooth message it received from the Android app.&lt;br /&gt;
&lt;br /&gt;
8. Forward the Android message to GEO controller if it received checkpoints otherwise forward it to Master.&lt;br /&gt;
&lt;br /&gt;
''' Periodic Task implementation: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 1 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Send Heartbeat message to Master.&lt;br /&gt;
&lt;br /&gt;
2. Send IO messages which are already received from Geo and Sensor controller to the Android app.&lt;br /&gt;
&lt;br /&gt;
3. Read Data from the Bluetooth module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' 100 Hz task '''&lt;br /&gt;
&lt;br /&gt;
1. Read CAN messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' DBC messages: '''&lt;br /&gt;
&lt;br /&gt;
''' Messages sent from Bluetooth controller :'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 1 BLE_START_STOP_CMD: 1 BLE&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_start : 0|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ BLE_START_STOP_CMD_reset : 4|4@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 2 MASTER_SYS_STOP_CMD: 1 MASTER&lt;br /&gt;
 SG_ MASTER_SYS_STOP_CMD_stop : 0|8@1+ (1,0) [0|1] &amp;quot;&amp;quot; MOTOR&lt;br /&gt;
 &lt;br /&gt;
BO_ 38 BLE_HEARTBEAT: 1 BLE&lt;br /&gt;
 SG_ BLE_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Messages received By Bluetooth controller: '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_CURRENT_COORD: 8 GEO&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_CURRENT_COORD_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 194 MASTER_TELEMETRY: 3 MASTER&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_mia : 0|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_mia : 1|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sensor_heartbeat : 2|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_ble_heartbeat : 3|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_motor_heartbeat : 4|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_geo_heartbeat : 5|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_sys_status : 6|2@1+ (1,0) [0|3] &amp;quot;&amp;quot; BLE&lt;br /&gt;
 SG_ MASTER_TELEMETRY_gps_tele_mia : 8|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
 &lt;br /&gt;
BO_ 3 SENSOR_LIDAR_OBSTACLE_INFO: 6 SENSOR&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR0 : 0|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR1 : 4|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR2 : 8|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR3 : 12|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR4 : 16|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR5 : 20|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR6 : 24|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR7 : 28|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR8 : 32|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR9 : 36|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR10 : 40|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ SENSOR_LIDAR_OBSTACLE_INFO_SECTOR11 : 44|4@1+ (1,0) [0|12] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
=== Geographical Controller ===&lt;br /&gt;
==== Design &amp;amp; Implementation ====&lt;br /&gt;
'''GPS and Compass Module:'''&lt;br /&gt;
We are using DJI’s NAZA GPS/COMPASS to get the GPS coordinates and Heading angle. The diagram of the module is as follows:&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Gps.JPG|600px|thumb|center|| GPS and Compass Module]]&lt;br /&gt;
&lt;br /&gt;
'''Message Structure:'''&lt;br /&gt;
The 0x10 message contains GPS data. The message structure is as follows:&lt;br /&gt;
55 AA 10 3A DT DT DT DT LO LO LO LO LA LA LA LA &lt;br /&gt;
The payload is XORed with a mask that changes over time.&lt;br /&gt;
Values in the message are stored in little endian.&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
BYTE 1-2: message header - always 55 AA&lt;br /&gt;
BYTE 3: message id (0x10 for GPS message)&lt;br /&gt;
BYTE 4: length of the payload (0x3A or 58 decimal for 0x10 message)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PAYLOAD&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
BYTE 5-8 (DT): date and time&lt;br /&gt;
BYTE 9-12 (LO): longitude (x10^7, degree decimal)&lt;br /&gt;
BYTE 13-16 (LA): latitude (x10^7, degree decimal)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CHECKSUM&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
BYTE 63-64 (CS): checksum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
XOR mask&lt;br /&gt;
---------------&lt;br /&gt;
&lt;br /&gt;
All bytes of the payload except 53rd (NS), 54th, 61st (SN LSB) and 62nd (SN MSB) are XORed with a mask. Mask is calculated based on the value of byte 53rd (NS) and 61st (SN LSB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin Configuration:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Pin Configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File: CMPE243_F17_Optimus_Block.jpg|600px|thumb|center|| Block Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Algorithm:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Distance calculation:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We are using the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Haversine formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)&lt;br /&gt;
c = 2 ⋅ atan2( √a, √(1−a) )&lt;br /&gt;
d = R ⋅ c&lt;br /&gt;
&lt;br /&gt;
where	φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
'''Bearing Angle calculation:&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
'''Formula:'''	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )&lt;br /&gt;
&lt;br /&gt;
where	φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)&lt;br /&gt;
&lt;br /&gt;
Since atan2 returns values in the range –π to +π (that is, -180° to +180°), to normalize the result to a compass bearing (in the range 0° to 360°), negative values are transformed into the range 180° to 360°) by converting to degrees first and then using (θ+360) % 360, where % is (floating point) modulo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DBC Messages:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Messages sent from GEO module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 4 GEO_TURNING_ANGLE: 2 GEO&lt;br /&gt;
 SG_ GEO_TURNING_ANGLE_degree : 0|9@1- (1,0) [-180|180] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 37 GEO_HEARTBEAT: 1 GEO&lt;br /&gt;
 SG_ GEO_HEARTBEAT_signal : 0|8@1+ (1,0) [0|255] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
BO_ 195 GEO_TELECOMPASS: 6 GEO&lt;br /&gt;
 SG_ GEO_TELECOMPASS_compass : 0|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_bearing_angle : 12|12@1+ (0.1,0) [0|360.0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_distance : 24|12@1+ (0.1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_destination_reached : 36|1@1+ (1,0) [0|1] &amp;quot;&amp;quot; MASTER,BLE&lt;br /&gt;
 SG_ GEO_TELECOMPASS_checkpoint_id : 37|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,BLE,SENSOR&lt;br /&gt;
&lt;br /&gt;
BO_ 196 GEO_TELEMETRY_LOCK: 1 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_lock : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; MASTER,SENSOR,BLE&lt;br /&gt;
&lt;br /&gt;
BO_ 214 GEO_TELEMETRY: 8 GEO&lt;br /&gt;
 SG_ GEO_TELEMETRY_LONG : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
 SG_ GEO_TELEMETRY_LAT : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; MASTER&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Messages received by GEO module:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BO_ 212 BLE_GPS_DATA: 8 BLE&lt;br /&gt;
 SG_ BLE_GPS_long : 0|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
 SG_ BLE_GPS_lat : 32|32@1- (0.000001,0) [0|0] &amp;quot;&amp;quot; GEO&lt;br /&gt;
&lt;br /&gt;
BO_ 213 BLE_GPS_DATA_CNT: 1 BLE &lt;br /&gt;
 SG_ BLE_GPS_COUNT : 0|8@1+ (1,0) [0|0] &amp;quot;&amp;quot; GEO,SENSOR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Periodic callback function description:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Check CAN bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Send Heartbeat to Master module&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Send GPS lock to Master and Sensor modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''100 Hz Function:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a.	Get GPS coordinates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b.	Get Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.	Get Checkpoints count &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.	Calculate Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.	Calculate Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.	Calculate Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.	Send Heading angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h.	Send Bearing angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i.	Send Turning angle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
j.	Send Distance remaining&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
k.	Check Destination reached&lt;br /&gt;
&lt;br /&gt;
=== Testing &amp;amp; Technical Challenges ===&lt;br /&gt;
=== Git Project Management ===&lt;br /&gt;
&lt;br /&gt;
== Common Technical Challenges ==&lt;br /&gt;
== Project Videos ==&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
== Project Source Code ==&lt;br /&gt;
== References ==&lt;br /&gt;
== Acknowledgement ==&lt;br /&gt;
== References Used ==&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=40373</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=40373"/>
				<updated>2017-12-03T01:03:25Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Parts List &amp;amp; Cost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Project Title''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller&lt;br /&gt;
&lt;br /&gt;
== '''Abstract''' ==&lt;br /&gt;
This section should be a couple lines to describe what your project does.&lt;br /&gt;
&lt;br /&gt;
== '''Objectives &amp;amp; Introduction''' ==&lt;br /&gt;
Show list of your objectives.  This section includes the high level details of your project.  You can write about the various sensors or peripherals you used to get your project completed.&lt;br /&gt;
&lt;br /&gt;
=== '''Team Members &amp;amp; Responsibilities''' ===&lt;br /&gt;
* &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master controller, QA &amp;lt;/font&amp;gt;&lt;br /&gt;
** Revathy&lt;br /&gt;
** Kripanand Jha&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS Controller &amp;lt;/font&amp;gt;&lt;br /&gt;
** Sneha &lt;br /&gt;
** Sarvesh&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sensor Controller&amp;lt;/font&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sushma-nagaraj/ Sushma] &amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/harshitha-bura-4926727a/ Harshitha] &amp;lt;br&amp;gt;&lt;br /&gt;
** Supradeep&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android App, Bluetooth/App Interface&amp;lt;/font&amp;gt;&lt;br /&gt;
** Parimal  &lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Motor Controller &amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;PCB Design&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul&lt;br /&gt;
&lt;br /&gt;
== '''Schedule''' ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2016&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** Completed PCB Design &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| Ontrack&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Collect all advertisement messages (check above Wiki documentation) and send them to the android application at a defined interval &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement (use Google APIs) to calculate route-path between given source and destination checkpoints; Shall indicate error where either source/destination is entered outside campus&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Come up with template for practical testing; Identify all possible ground-scenarios and test cases like: a) Incluned planes, b) Grass / sand, c) Between buildings, etc&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
* &lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''Parts List &amp;amp; Cost''' ==&lt;br /&gt;
Give a simple list of the cost of your project broken down by components.  Do not write long stories here.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Item#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Description&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Vendor&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Qty&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| From Preet&lt;br /&gt;
| 6&lt;br /&gt;
| $480&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview]&lt;br /&gt;
| Prof. Kaikai Liu provided&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| [https://www.adafruit.com/products/1120 Accelerometer/Magnetometer LSM303]&lt;br /&gt;
| Adafruit&lt;br /&gt;
| 2&lt;br /&gt;
| $40.00&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| Sparkfun&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| From ebay.&lt;br /&gt;
| 15&lt;br /&gt;
| $51&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| [https://traxxas.com/products/parts/batteries/idpowercellbatteries/nimh/2926X-7C-hump-SubC-3000mAh Battery Pack]&lt;br /&gt;
| From Sheldon Hobbist&lt;br /&gt;
| 1&lt;br /&gt;
| $49.99&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| RP Lidar&lt;br /&gt;
| &lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| LED $ Digit Display&lt;br /&gt;
| From Preet&lt;br /&gt;
| 1&lt;br /&gt;
| $0 &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| [https://www.adafruit.com/products/746 GPS Module]&lt;br /&gt;
| From Adafruit&lt;br /&gt;
| 1&lt;br /&gt;
| $43.34&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| General Components&lt;br /&gt;
| From Amazon&lt;br /&gt;
| -&lt;br /&gt;
| $&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
|[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| From traxxas&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| PCB&lt;br /&gt;
| &lt;br /&gt;
| 1&lt;br /&gt;
| $10.66&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Acrylic Board&lt;br /&gt;
| From Amazon&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
|[http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| From Preet&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 15&lt;br /&gt;
|[https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| From Amazon&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 16&lt;br /&gt;
|[https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| From PCB Way&lt;br /&gt;
| 5&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Design &amp;amp; Implementation''' ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
=== '''Hardware Interface''' ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_T1_HWDesign_Board.png|centre|1200px|thumb|Board]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_T1_HWDesign_Schematic.png|centre|1200px|thumb|Schematic]]&lt;br /&gt;
Discuss your hardware design here.  Show detailed schematics, and the interface here.&lt;br /&gt;
&lt;br /&gt;
=== '''Software Design''' ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== '''Implementation''' ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== '''Testing &amp;amp; Technical Challenges''' ==&lt;br /&gt;
Testing the car out on the grounds was the prime responsibility of the team. &lt;br /&gt;
Individual modules like Sensor (LiDAR), Motor (The ESC and Servo), GPS &amp;amp; Compass, the android application and the Bluetooth bridge were tested by respective team members.&lt;br /&gt;
But, the most important problems are being found with the Testing we do with the integrated whole.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== '''Unit Test Cases''' ===&lt;br /&gt;
Discuss the major unit test cases.&lt;br /&gt;
&lt;br /&gt;
=== '''Technical Challenges''' ===&lt;br /&gt;
==== '''Drive (Motor) Controller''' ====&lt;br /&gt;
===== '''ESC Calibration''' =====&lt;br /&gt;
We messed up the callibration on the ESC.&lt;br /&gt;
&amp;quot;XL 5 had a long press option to calibrate the ESC, where the ESC shall:&lt;br /&gt;
a) After long press, glow green and start taking PWM signals for neutral (1.5).&lt;br /&gt;
b) Glow green once again where we shall feed in PWM signals for Forward (2ms).&lt;br /&gt;
b) Glow green twice again where we shall feed in PWM signals for Reverse (1ms).&amp;quot;&lt;br /&gt;
-We wrote code to calibrate using EXT-INT (EINT3) over P0.1 - switch to calibrate the ESC this way!&lt;br /&gt;
===== '''ESC Reverse''' =====&lt;br /&gt;
&amp;quot;The ESC was not activating reverse if we directly - as in the datasheet (no formal datasheet - only XL 5 forums - talked about 1ms pulse width at 50Hz for reverse).&lt;br /&gt;
We figured out that Reverse is actually 3 steps:&lt;br /&gt;
a) goNeutral()&lt;br /&gt;
b) goReverse()&lt;br /&gt;
c) goNeutral()&lt;br /&gt;
d) goReverse()&lt;br /&gt;
&lt;br /&gt;
== '''Conclusion''' ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== '''Project Video''' ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== '''Project Source Code''' ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== '''References''' ==&lt;br /&gt;
=== '''Acknowledgement''' ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== '''References Used''' ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== '''Appendix''' ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=40372</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=40372"/>
				<updated>2017-12-03T01:02:45Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Parts List &amp;amp; Cost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Project Title''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller&lt;br /&gt;
&lt;br /&gt;
== '''Abstract''' ==&lt;br /&gt;
This section should be a couple lines to describe what your project does.&lt;br /&gt;
&lt;br /&gt;
== '''Objectives &amp;amp; Introduction''' ==&lt;br /&gt;
Show list of your objectives.  This section includes the high level details of your project.  You can write about the various sensors or peripherals you used to get your project completed.&lt;br /&gt;
&lt;br /&gt;
=== '''Team Members &amp;amp; Responsibilities''' ===&lt;br /&gt;
* &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master controller, QA &amp;lt;/font&amp;gt;&lt;br /&gt;
** Revathy&lt;br /&gt;
** Kripanand Jha&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS Controller &amp;lt;/font&amp;gt;&lt;br /&gt;
** Sneha &lt;br /&gt;
** Sarvesh&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sensor Controller&amp;lt;/font&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sushma-nagaraj/ Sushma] &amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/harshitha-bura-4926727a/ Harshitha] &amp;lt;br&amp;gt;&lt;br /&gt;
** Supradeep&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android App, Bluetooth/App Interface&amp;lt;/font&amp;gt;&lt;br /&gt;
** Parimal  &lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Motor Controller &amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;PCB Design&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul&lt;br /&gt;
&lt;br /&gt;
== '''Schedule''' ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2016&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** Completed PCB Design &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| Ontrack&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Collect all advertisement messages (check above Wiki documentation) and send them to the android application at a defined interval &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement (use Google APIs) to calculate route-path between given source and destination checkpoints; Shall indicate error where either source/destination is entered outside campus&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Come up with template for practical testing; Identify all possible ground-scenarios and test cases like: a) Incluned planes, b) Grass / sand, c) Between buildings, etc&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
* &lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''Parts List &amp;amp; Cost''' ==&lt;br /&gt;
Give a simple list of the cost of your project broken down by components.  Do not write long stories here.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Item#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Description&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Vendor&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Qty&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| From Preet&lt;br /&gt;
| 6&lt;br /&gt;
| $480&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview]&lt;br /&gt;
| Prof. Kaikai Liu provided&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| [https://www.adafruit.com/products/1120 Accelerometer/Magnetometer LSM303]&lt;br /&gt;
| Adafruit&lt;br /&gt;
| 2&lt;br /&gt;
| $40.00&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| Sparkfun&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| From ebay.&lt;br /&gt;
| 15&lt;br /&gt;
| $51&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| [https://traxxas.com/products/parts/batteries/idpowercellbatteries/nimh/2926X-7C-hump-SubC-3000mAh Battery Pack]&lt;br /&gt;
| From Sheldon Hobbist&lt;br /&gt;
| 1&lt;br /&gt;
| $49.99&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| RP Lidar&lt;br /&gt;
| &lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| LED $ Digit Display&lt;br /&gt;
| From Preet&lt;br /&gt;
| 1&lt;br /&gt;
| $0 &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| [https://www.adafruit.com/products/746 GPS Module]&lt;br /&gt;
| From Adafruit&lt;br /&gt;
| 1&lt;br /&gt;
| $43.34&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| General Components&lt;br /&gt;
| From Amazon&lt;br /&gt;
| -&lt;br /&gt;
| $&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
|[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| From traxxas&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| PCB&lt;br /&gt;
| &lt;br /&gt;
| 1&lt;br /&gt;
| $10.66&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Acrylic Board&lt;br /&gt;
| From Amazon&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
|[http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| From Preet&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 15&lt;br /&gt;
|[https://www.amazon.com/gp/product/B01G1XH46M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1 Power Bank]&lt;br /&gt;
| From Amazon&lt;br /&gt;
| 1&lt;br /&gt;
| $41.50&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 16&lt;br /&gt;
|[https://www.pcbway.com PCB Manufacturing]&lt;br /&gt;
| From PCB Way&lt;br /&gt;
| 1&lt;br /&gt;
| $70&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Design &amp;amp; Implementation''' ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
=== '''Hardware Interface''' ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_T1_HWDesign_Board.png|centre|1200px|thumb|Board]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_T1_HWDesign_Schematic.png|centre|1200px|thumb|Schematic]]&lt;br /&gt;
Discuss your hardware design here.  Show detailed schematics, and the interface here.&lt;br /&gt;
&lt;br /&gt;
=== '''Software Design''' ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== '''Implementation''' ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== '''Testing &amp;amp; Technical Challenges''' ==&lt;br /&gt;
Testing the car out on the grounds was the prime responsibility of the team. &lt;br /&gt;
Individual modules like Sensor (LiDAR), Motor (The ESC and Servo), GPS &amp;amp; Compass, the android application and the Bluetooth bridge were tested by respective team members.&lt;br /&gt;
But, the most important problems are being found with the Testing we do with the integrated whole.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== '''Unit Test Cases''' ===&lt;br /&gt;
Discuss the major unit test cases.&lt;br /&gt;
&lt;br /&gt;
=== '''Technical Challenges''' ===&lt;br /&gt;
==== '''Drive (Motor) Controller''' ====&lt;br /&gt;
===== '''ESC Calibration''' =====&lt;br /&gt;
We messed up the callibration on the ESC.&lt;br /&gt;
&amp;quot;XL 5 had a long press option to calibrate the ESC, where the ESC shall:&lt;br /&gt;
a) After long press, glow green and start taking PWM signals for neutral (1.5).&lt;br /&gt;
b) Glow green once again where we shall feed in PWM signals for Forward (2ms).&lt;br /&gt;
b) Glow green twice again where we shall feed in PWM signals for Reverse (1ms).&amp;quot;&lt;br /&gt;
-We wrote code to calibrate using EXT-INT (EINT3) over P0.1 - switch to calibrate the ESC this way!&lt;br /&gt;
===== '''ESC Reverse''' =====&lt;br /&gt;
&amp;quot;The ESC was not activating reverse if we directly - as in the datasheet (no formal datasheet - only XL 5 forums - talked about 1ms pulse width at 50Hz for reverse).&lt;br /&gt;
We figured out that Reverse is actually 3 steps:&lt;br /&gt;
a) goNeutral()&lt;br /&gt;
b) goReverse()&lt;br /&gt;
c) goNeutral()&lt;br /&gt;
d) goReverse()&lt;br /&gt;
&lt;br /&gt;
== '''Conclusion''' ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== '''Project Video''' ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== '''Project Source Code''' ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== '''References''' ==&lt;br /&gt;
=== '''Acknowledgement''' ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== '''References Used''' ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== '''Appendix''' ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=40371</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=40371"/>
				<updated>2017-12-03T00:56:36Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Design &amp;amp; Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Project Title''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller&lt;br /&gt;
&lt;br /&gt;
== '''Abstract''' ==&lt;br /&gt;
This section should be a couple lines to describe what your project does.&lt;br /&gt;
&lt;br /&gt;
== '''Objectives &amp;amp; Introduction''' ==&lt;br /&gt;
Show list of your objectives.  This section includes the high level details of your project.  You can write about the various sensors or peripherals you used to get your project completed.&lt;br /&gt;
&lt;br /&gt;
=== '''Team Members &amp;amp; Responsibilities''' ===&lt;br /&gt;
* &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master controller, QA &amp;lt;/font&amp;gt;&lt;br /&gt;
** Revathy&lt;br /&gt;
** Kripanand Jha&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS Controller &amp;lt;/font&amp;gt;&lt;br /&gt;
** Sneha &lt;br /&gt;
** Sarvesh&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sensor Controller&amp;lt;/font&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sushma-nagaraj/ Sushma] &amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/harshitha-bura-4926727a/ Harshitha] &amp;lt;br&amp;gt;&lt;br /&gt;
** Supradeep&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android App, Bluetooth/App Interface&amp;lt;/font&amp;gt;&lt;br /&gt;
** Parimal  &lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Motor Controller &amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;PCB Design&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul&lt;br /&gt;
&lt;br /&gt;
== '''Schedule''' ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2016&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** Completed PCB Design &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| Ontrack&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Collect all advertisement messages (check above Wiki documentation) and send them to the android application at a defined interval &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement (use Google APIs) to calculate route-path between given source and destination checkpoints; Shall indicate error where either source/destination is entered outside campus&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Come up with template for practical testing; Identify all possible ground-scenarios and test cases like: a) Incluned planes, b) Grass / sand, c) Between buildings, etc&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
* &lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''Parts List &amp;amp; Cost''' ==&lt;br /&gt;
Give a simple list of the cost of your project broken down by components.  Do not write long stories here.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Item#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Description&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Vendor&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Qty&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| From Preet&lt;br /&gt;
| 6&lt;br /&gt;
| $480&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview]&lt;br /&gt;
| Prof. Kaikai Liu provided&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| [https://www.adafruit.com/products/1120 Accelerometer/Magnetometer LSM303]&lt;br /&gt;
| Adafruit&lt;br /&gt;
| 2&lt;br /&gt;
| $40.00&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| Sparkfun&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| From ebay.&lt;br /&gt;
| 15&lt;br /&gt;
| $51&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| [https://traxxas.com/products/parts/batteries/idpowercellbatteries/nimh/2926X-7C-hump-SubC-3000mAh Battery Pack]&lt;br /&gt;
| From Sheldon Hobbist&lt;br /&gt;
| 1&lt;br /&gt;
| $49.99&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| RP Lidar&lt;br /&gt;
| &lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| LED $ Digit Display&lt;br /&gt;
| From Preet&lt;br /&gt;
| 1&lt;br /&gt;
| $0 &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| [https://www.adafruit.com/products/746 GPS Module]&lt;br /&gt;
| From Adafruit&lt;br /&gt;
| 1&lt;br /&gt;
| $43.34&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| General Components&lt;br /&gt;
| From Amazon&lt;br /&gt;
| -&lt;br /&gt;
| $&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
|[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| From traxxas&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| PCB&lt;br /&gt;
| &lt;br /&gt;
| 1&lt;br /&gt;
| $10.66&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Acrylic Board&lt;br /&gt;
| From Amazon&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
|[http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| From Preet&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Design &amp;amp; Implementation''' ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
=== '''Hardware Interface''' ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_T1_HWDesign_Board.png|centre|1200px|thumb|Board]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_T1_HWDesign_Schematic.png|centre|1200px|thumb|Schematic]]&lt;br /&gt;
Discuss your hardware design here.  Show detailed schematics, and the interface here.&lt;br /&gt;
&lt;br /&gt;
=== '''Software Design''' ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== '''Implementation''' ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== '''Testing &amp;amp; Technical Challenges''' ==&lt;br /&gt;
Testing the car out on the grounds was the prime responsibility of the team. &lt;br /&gt;
Individual modules like Sensor (LiDAR), Motor (The ESC and Servo), GPS &amp;amp; Compass, the android application and the Bluetooth bridge were tested by respective team members.&lt;br /&gt;
But, the most important problems are being found with the Testing we do with the integrated whole.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== '''Unit Test Cases''' ===&lt;br /&gt;
Discuss the major unit test cases.&lt;br /&gt;
&lt;br /&gt;
=== '''Technical Challenges''' ===&lt;br /&gt;
==== '''Drive (Motor) Controller''' ====&lt;br /&gt;
===== '''ESC Calibration''' =====&lt;br /&gt;
We messed up the callibration on the ESC.&lt;br /&gt;
&amp;quot;XL 5 had a long press option to calibrate the ESC, where the ESC shall:&lt;br /&gt;
a) After long press, glow green and start taking PWM signals for neutral (1.5).&lt;br /&gt;
b) Glow green once again where we shall feed in PWM signals for Forward (2ms).&lt;br /&gt;
b) Glow green twice again where we shall feed in PWM signals for Reverse (1ms).&amp;quot;&lt;br /&gt;
-We wrote code to calibrate using EXT-INT (EINT3) over P0.1 - switch to calibrate the ESC this way!&lt;br /&gt;
===== '''ESC Reverse''' =====&lt;br /&gt;
&amp;quot;The ESC was not activating reverse if we directly - as in the datasheet (no formal datasheet - only XL 5 forums - talked about 1ms pulse width at 50Hz for reverse).&lt;br /&gt;
We figured out that Reverse is actually 3 steps:&lt;br /&gt;
a) goNeutral()&lt;br /&gt;
b) goReverse()&lt;br /&gt;
c) goNeutral()&lt;br /&gt;
d) goReverse()&lt;br /&gt;
&lt;br /&gt;
== '''Conclusion''' ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== '''Project Video''' ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== '''Project Source Code''' ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== '''References''' ==&lt;br /&gt;
=== '''Acknowledgement''' ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== '''References Used''' ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== '''Appendix''' ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=40370</id>
		<title>F17: Optimus</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F17:_Optimus&amp;diff=40370"/>
				<updated>2017-12-03T00:55:11Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: /* Hardware Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Project Title''' ==&lt;br /&gt;
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller&lt;br /&gt;
&lt;br /&gt;
== '''Abstract''' ==&lt;br /&gt;
This section should be a couple lines to describe what your project does.&lt;br /&gt;
&lt;br /&gt;
== '''Objectives &amp;amp; Introduction''' ==&lt;br /&gt;
Show list of your objectives.  This section includes the high level details of your project.  You can write about the various sensors or peripherals you used to get your project completed.&lt;br /&gt;
&lt;br /&gt;
=== '''Team Members &amp;amp; Responsibilities''' ===&lt;br /&gt;
* &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Master controller, QA &amp;lt;/font&amp;gt;&lt;br /&gt;
** Revathy&lt;br /&gt;
** Kripanand Jha&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS Controller &amp;lt;/font&amp;gt;&lt;br /&gt;
** Sneha &lt;br /&gt;
** Sarvesh&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sensor Controller&amp;lt;/font&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/sushma-nagaraj/ Sushma] &amp;lt;br&amp;gt;&lt;br /&gt;
** [https://www.linkedin.com/in/harshitha-bura-4926727a/ Harshitha] &amp;lt;br&amp;gt;&lt;br /&gt;
** Supradeep&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android App, Bluetooth/App Interface&amp;lt;/font&amp;gt;&lt;br /&gt;
** Parimal  &lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Motor Controller &amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul&lt;br /&gt;
** Unnikrishnan&lt;br /&gt;
&lt;br /&gt;
*  &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;PCB Design&amp;lt;/font&amp;gt;&lt;br /&gt;
** Rajul&lt;br /&gt;
&lt;br /&gt;
== '''Schedule''' ==&lt;br /&gt;
Legend:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature milestone &amp;lt;font&amp;gt; ,&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; CAN Master Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Sensor &amp;amp; IO Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android Controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor Controller &amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Geo &amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt; Testing&amp;lt;font&amp;gt;, &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Ble controller&amp;lt;font&amp;gt;,&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Team Goal &amp;lt;font&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Planned Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 9/23/2017&lt;br /&gt;
|&lt;br /&gt;
* Decide roles for each team member&lt;br /&gt;
* Read FY16 project reports and understand requirements&lt;br /&gt;
* Setup Gitlab project readme&lt;br /&gt;
* Ordered CAN Tranceivers and get R/C car&lt;br /&gt;
| &lt;br /&gt;
* Team roles are decided and module owners are assigned&lt;br /&gt;
* Gitlab project is set&lt;br /&gt;
* Ordered CAN tranceivers and got R/C Car&lt;br /&gt;
| Complete.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 9/30/2016&lt;br /&gt;
|&lt;br /&gt;
* Design software architecture for each module and design signal interfaces between modules&lt;br /&gt;
* Setup Wiki Project Report template&lt;br /&gt;
* Design Hardware layout of system components&lt;br /&gt;
* Create component checklist and order required components for individual modules.&lt;br /&gt;
* Setup Gitlab project code for each modules&lt;br /&gt;
| &lt;br /&gt;
* Overall project requirements are understood&lt;br /&gt;
* Wiki Project report setup is done&lt;br /&gt;
* Odered components for Geo controller module&lt;br /&gt;
* Initial commit of project base is done&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 10/14/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement heartbeat messages and initial system bootup sync between modules&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interface the RPLidar to SJOne board via UART &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Achieve basic communication such as obtaining the device and health info. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of Android Toolkit for Bluetooth Adapter connections and APIs &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Study of HC-05 Bluetooth Module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating APIs for Start/ STOP button requests to write to output-Stream buffers&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Creating RFComm SPP Connection socket and the rest of UI for basic operation of Pairing, Connection &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Checking the AT Command sequence for Bluetooth Operation and Pairing &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Automating the AT Command sequence for Bluetooth HC-05 operation and Android App&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Run Motors via commands from SJOne Automatically &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Order the RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** Design and Order PCB&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added hearbeat messages from all controllers to master in can_db and implemented the handling functions in master controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented speed steer command CAN msg transmission and handling in Master controller. Master-Drive integration phase-I&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Interfaced RPLidar to SJOne board and achieved basic communication via UART. Started obtaining data as well.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android API for Bluetooth Adapter connections studied.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Learning of AT Command sequence for Bluetooth Operation and Pairing done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Created Start/Stop API's for button requests to be Sent to HC-05 IC.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Basic Pairing Operation Working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Motor: ESC Traxxas XL-5 (Electronic Speed Control) interfaced to SJOne board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Tested and identified duty cycles for different speeds required; Callibration and testing of ESC is over exteral switch at P0.1 &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Ordered RPM sensor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Add all modules CAN messages to DBC file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Test steer and speed CAN commands between Master and Motor &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement Obstacle avoidance algorithm &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Obtain data from the lidar and process the data i.e. decide on the format in which the data has to be sent to the master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Write unit test cases for the lidar.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Interface compass module to SJOne board and calibrate the errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; find the heading and bearing angle based on mocked checkpoint &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Test and verify GPS module outdoor to receive valid data and check for errors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; Calibrate the GPS module error &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Design and implement the DRIVE_CONTROLLER STEER/SPEED interface with Master (TDD) &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Install the new RPM sensor module for the Drive Controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Operating motors based on the CAN messages from the Master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Free-run mode w/o obstacle avoidance&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented interface files in master controller to handle CAN messages from all nodes to master &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Drive controller Integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented Master-Bluetooth controller integration &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; GPS integrated to SJONE board &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Added all modules basic CAN messages in can_db &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote unit test cases for the LIDAR.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Wrote logic for dividing the information obtained from the lidar into sectors and tracks.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; MASTER_SPEED_STEER_CMD was defined to use 8-bits for speed control (neutral, forward, and reverse); 9-bits for steer control (straight, left, and right) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Designed glue code: DriveManager and hardware interface code: DriveController using TDD (test code in _MOTOR/_cgreen_test/) &amp;lt;br&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Got the Traxxas #6520 RPM sensor; installed the same with the slipper clutch; Observed the RPM sensor trigger over an oscilloscope and found the minimum distance of magnet to RPM sensor is not achievable with the stock slipper clutch. Ordered Traxxas #6878 new slipper clutch and ball-bearings &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Master - Drive Controller Interface implemented and tested over CAN; Check &amp;quot;drive&amp;quot; terminal command on Master controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering in Master controller  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Test and validate the information obtained from the sensor.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Send the Lidar data and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR should be fully working.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identify the basic speed(s) at which the car shall move; the min, max and normal forward speeds, and the min and normal reverse speeds  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interface the RPM sensor over ADC and validate the readings  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Writing PID Algorithm for Motor Control &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt;Calibrating PID constants according to the Motors &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the Bluetooth Range and multiple pairing option to establish security of the Master device &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Testing the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Made the code modular and added the wrapper function for all the important modules &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Worked on  android app which will dump the lattitude and longitude information for checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Test the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Get the code review done and do the testing after that &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** Finish PCB design and place order &lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering in Master-Geo controller &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in android app is moved to next week schedule&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implemented maneuvering algorithm in Master to drive steering angle of the servo&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; Implement maneuvering algorithm in Master to control ESC speed &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Tested and validated the sensor data by plotting graphs in an EXCEL sheet.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Sending the obstacle information and heartbeat over CAN.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;LIDAR fully working and sending obstacle information.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** Completed PCB Design &lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Identified basic speeds, slow, normal, and turbo for forward and reverse  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor  &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Wrote the PID code keeping future integration in mind; Have pushed the code &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;CARROT&amp;quot;&amp;gt; Failed to use RPM sensor - new clutch gear also did not work (magnet is too far away - validated with Oscilloscope); Have to consider using IR sensor for feedback&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Tested successfully individual and multiple Device pairing.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Android app updated with Navigation and Drawer Modules with Detecting NAV points.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Tested the accuracy of GPS while moving &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Made the GPS and compass code modular and checked the functionaity after the changes &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Worked on the Android app that will dump the checkpoints into a file &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| Complete&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/07/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implement maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the Android Data Collector application&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collect mock checkpoints using the GEO module and compare for any discrepancies&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify I/O on-board Display information; Currenly identified are documented below: &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Health status like GPS Lock status, etc. &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Identify hardware to check battery-status and procure the same; update PCB as well &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Display bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test on-board I/O module for bluetooth pairing status&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Receive GEO Controller's Turning-angle message and compute target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Use GEO Controller's distance to next-checkpoint information to compute target speed&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Mock checkpoint navigation testing using different possible obstacle heights and forms possible&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement marker for current location display - which is an on-demand advertisement&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement feature for the user to enter destination - a Google Map View shall be shown to the user to confirm route from source(current car location) to destination&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Android app (once on the new device) shall download the entire offline map information of the SJSU campus and store it on a SQLite database&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implemented maneuvering with mocked GEO checkpoints &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Collected mock checkpoints and check for the error with different places&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Interfaced the Sparkfun Seven segment display with the SJOne Board.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Implemented interface method to receive GEO Controller's Turning-angle message and set target steer &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:Implemented Marker for current position Display.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; Android:User entry for setting up destination on MAP done.&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;RPM Installation failed, but could get auxiliary hardware (motor pinion) from local shop and get it working&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Implemented basic motor feedback using hall sensor (RPM sensor); tested working on ramps&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Steer left and right on reverse now follows natural order; Could not finish literal reverse-left and reverse-right implementation; Moved this task forward; Had to test and implement motor feedback this week&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| Ontrack&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 11/14/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Implementing maneuvering with Android app supplied GEO checkpoints with on-board I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Use mock data from file to compute: a) Heading b) Bearing -&amp;gt; use Haversine's algorithm to compute turning angle&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Advertise distance to the next checkpoint (again using Haversine's algorithm)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Implement the battery-status DBC Message advertisement &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt;Indicate checkpoint proximity using backlight indicators&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Create 2 CAN messages for Disgnostic and I/O data to transmit it to BLE module &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; Receive the diagnostic CAN message and decode to transmit it to Android App &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;clouds&amp;quot;&amp;gt; [Android I/O:] Design Android app views for visualizing  Diagnostic and I/O data &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test and validate success/fail cases for on-board I/O display information(as defined above)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Finalize feedback algorithm and fine-tuning&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;redbrick&amp;quot;&amp;gt;Collect all advertisement messages (check above Wiki documentation) and send them to the android application at a defined interval &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Implement (use Google APIs) to calculate route-path between given source and destination checkpoints; Shall indicate error where either source/destination is entered outside campus&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Come up with template for practical testing; Identify all possible ground-scenarios and test cases like: a) Incluned planes, b) Grass / sand, c) Between buildings, etc&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 11/21/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Complete maneuvering implementation with Android app and Android  I/O &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Implement display of Sensor Obstacle Information on a RADAR map&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Dynamically update car's Current location on the map's route path &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;[Android I/O:] Health information from BLE Controller, namely battery, GPS lock status, and motor speed shall be updated &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
* &lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 11/28/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14] (check Testing documentation in Wiki)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 1: Test all identified cases for ground-conditions (grass, inclines, etc)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
| Planned.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| 12/5/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 3: Test all identified cases for speed levels and on-board I/O validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
*&lt;br /&gt;
| Planned&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
| 12/12/2016&lt;br /&gt;
|&lt;br /&gt;
* &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt; Major Feature: Full feature integration test &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
** &amp;lt;font color=&amp;quot;teal&amp;quot;&amp;gt;Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
* &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt; Update Wiki Complete Report &amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
*&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''Parts List &amp;amp; Cost''' ==&lt;br /&gt;
Give a simple list of the cost of your project broken down by components.  Do not write long stories here.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Item#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Description&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Vendor&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Qty&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| [[SJ_One_Board|SJ One Board (LPC 1758)]]&lt;br /&gt;
| From Preet&lt;br /&gt;
| 6&lt;br /&gt;
| $480&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| [https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=overview]&lt;br /&gt;
| Prof. Kaikai Liu provided&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| [https://www.adafruit.com/products/1120 Accelerometer/Magnetometer LSM303]&lt;br /&gt;
| Adafruit&lt;br /&gt;
| 2&lt;br /&gt;
| $40.00&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| [https://www.sparkfun.com/products/12582 Bluetooth Module]&lt;br /&gt;
| Sparkfun&lt;br /&gt;
| 1&lt;br /&gt;
| $34.95&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| [http://www.microchip.com/wwwproducts/en/en010405 CAN Transceivers]&lt;br /&gt;
| From ebay.&lt;br /&gt;
| 15&lt;br /&gt;
| $51&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| [https://traxxas.com/products/parts/batteries/idpowercellbatteries/nimh/2926X-7C-hump-SubC-3000mAh Battery Pack]&lt;br /&gt;
| From Sheldon Hobbist&lt;br /&gt;
| 1&lt;br /&gt;
| $49.99&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| RP Lidar&lt;br /&gt;
| &lt;br /&gt;
| 5&lt;br /&gt;
| $400&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| LED $ Digit Display&lt;br /&gt;
| From Preet&lt;br /&gt;
| 1&lt;br /&gt;
| $0 &lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| [https://www.adafruit.com/products/746 GPS Module]&lt;br /&gt;
| From Adafruit&lt;br /&gt;
| 1&lt;br /&gt;
| $43.34&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 10&lt;br /&gt;
| General Components&lt;br /&gt;
| From Amazon&lt;br /&gt;
| -&lt;br /&gt;
| $&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 11&lt;br /&gt;
|[https://traxxas.com/products/models/electric/NOS-Deegan-38-Rally?t=telemetry RPM Sensor]&lt;br /&gt;
| From traxxas&lt;br /&gt;
| 1&lt;br /&gt;
| $20&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12&lt;br /&gt;
| PCB&lt;br /&gt;
| &lt;br /&gt;
| 1&lt;br /&gt;
| $10.66&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 13&lt;br /&gt;
| Acrylic Board&lt;br /&gt;
| From Amazon&lt;br /&gt;
| 1&lt;br /&gt;
| $12.53&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 14&lt;br /&gt;
|[http://www.peak-system.com/PCAN-USB.199.0.html?L=1 PCAN dongle]&lt;br /&gt;
| From Preet&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== '''CAN Communication''' ==&lt;br /&gt;
&lt;br /&gt;
== '''DBC File''' ==&lt;br /&gt;
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Design &amp;amp; Implementation''' ==&lt;br /&gt;
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_T1_HWDesign_Board.png|centre|1200px|thumb|Board]]&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE243_F17_T1_HWDesign_Schematic.png|centre|1200px|thumb|Schematic]]&lt;br /&gt;
Discuss your hardware design here.  Show detailed schematics, and the interface here.&lt;br /&gt;
&lt;br /&gt;
=== '''Hardware Interface''' ===&lt;br /&gt;
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.&lt;br /&gt;
&lt;br /&gt;
=== '''Software Design''' ===&lt;br /&gt;
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.  &lt;br /&gt;
&lt;br /&gt;
=== '''Implementation''' ===&lt;br /&gt;
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.&lt;br /&gt;
&lt;br /&gt;
== '''Testing &amp;amp; Technical Challenges''' ==&lt;br /&gt;
Testing the car out on the grounds was the prime responsibility of the team. &lt;br /&gt;
Individual modules like Sensor (LiDAR), Motor (The ESC and Servo), GPS &amp;amp; Compass, the android application and the Bluetooth bridge were tested by respective team members.&lt;br /&gt;
But, the most important problems are being found with the Testing we do with the integrated whole.&lt;br /&gt;
&lt;br /&gt;
Include sub-sections that list out a problem and solution, such as:&lt;br /&gt;
&lt;br /&gt;
=== '''Unit Test Cases''' ===&lt;br /&gt;
Discuss the major unit test cases.&lt;br /&gt;
&lt;br /&gt;
=== '''Technical Challenges''' ===&lt;br /&gt;
==== '''Drive (Motor) Controller''' ====&lt;br /&gt;
===== '''ESC Calibration''' =====&lt;br /&gt;
We messed up the callibration on the ESC.&lt;br /&gt;
&amp;quot;XL 5 had a long press option to calibrate the ESC, where the ESC shall:&lt;br /&gt;
a) After long press, glow green and start taking PWM signals for neutral (1.5).&lt;br /&gt;
b) Glow green once again where we shall feed in PWM signals for Forward (2ms).&lt;br /&gt;
b) Glow green twice again where we shall feed in PWM signals for Reverse (1ms).&amp;quot;&lt;br /&gt;
-We wrote code to calibrate using EXT-INT (EINT3) over P0.1 - switch to calibrate the ESC this way!&lt;br /&gt;
===== '''ESC Reverse''' =====&lt;br /&gt;
&amp;quot;The ESC was not activating reverse if we directly - as in the datasheet (no formal datasheet - only XL 5 forums - talked about 1ms pulse width at 50Hz for reverse).&lt;br /&gt;
We figured out that Reverse is actually 3 steps:&lt;br /&gt;
a) goNeutral()&lt;br /&gt;
b) goReverse()&lt;br /&gt;
c) goNeutral()&lt;br /&gt;
d) goReverse()&lt;br /&gt;
&lt;br /&gt;
== '''Conclusion''' ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
=== '''Project Video''' ===&lt;br /&gt;
Upload a video of your project and post the link here.&lt;br /&gt;
&lt;br /&gt;
=== '''Project Source Code''' ===&lt;br /&gt;
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus Gitlab Project]&lt;br /&gt;
*  [https://gitlab.com/optimus_prime/optimus/tree/master/_can_dbc CAN database]&lt;br /&gt;
&lt;br /&gt;
== '''References''' ==&lt;br /&gt;
=== '''Acknowledgement''' ===&lt;br /&gt;
Any acknowledgement that you may wish to provide can be included here.&lt;br /&gt;
&lt;br /&gt;
=== '''References Used''' ===&lt;br /&gt;
List any references used in project.&lt;br /&gt;
&lt;br /&gt;
=== '''Appendix''' ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_T1_HWDesign_Schematic.png&amp;diff=40369</id>
		<title>File:CmpE243 F17 T1 HWDesign Schematic.png</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_T1_HWDesign_Schematic.png&amp;diff=40369"/>
				<updated>2017-12-03T00:49:30Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_T1_HWDesign_Board.png&amp;diff=40368</id>
		<title>File:CmpE243 F17 T1 HWDesign Board.png</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE243_F17_T1_HWDesign_Board.png&amp;diff=40368"/>
				<updated>2017-12-03T00:48:58Z</updated>
		
		<summary type="html">&lt;p&gt;Rgdrumer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rgdrumer</name></author>	</entry>

	</feed>