<?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=146+user1</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=146+user1"/>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php/Special:Contributions/146_user1"/>
		<updated>2026-05-06T01:51:25Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34501</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34501"/>
				<updated>2016-12-21T17:03:24Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Issue */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
====  Water Pump ====&lt;br /&gt;
[[File:Water_Pump.jpg]]&lt;br /&gt;
&lt;br /&gt;
We used a Aubig 12V Brushless DC water pump for this project.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE146_F16_T9_FlameSensor.jpg]]&lt;br /&gt;
&lt;br /&gt;
In order to make the sensing element directional it was necessary to block light from all undesired directions. We used a film canister to do this. Film is spoiled if it is exposed to any light. Therefore, film canisters are designed to block light. By placing the sensing element at one end of the film canister we were able to turn a sensing element with no direction into one with direction.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE146_F16_T9_SensingDirection.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Flame sensing element is used to determine both the direction and distance of a fire. This is because the intensity of a light source is the inverse of the square of its distance. Flames emit visible light and light sources emit light radially. Therefore the greater the intensity of the light and the greater the temperature the closer the vehicle is to the flame. This is used to measure distance.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE146_F16_T9_RadialLight.jpg]]&lt;br /&gt;
&lt;br /&gt;
Using these settings both distance from the flame and the direction of the flame can be measured.&lt;br /&gt;
&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
==== Water Pump ====&lt;br /&gt;
Originally we were planning on using the H-Bridge MOSFET circuit to drive the water pump that would accompany the fire extinguishing vehicle. The water pump requires 12V DC and is rated for 1.1 Amps of current.  This poses a significant problem for a board that can’t supply the power and current required.  The solution was to have an electronic switch that can be activated through the use of a GPIO.&lt;br /&gt;
===== Transistor =====&lt;br /&gt;
We planned to use a transistor as an electronic switch. The problem was finding a transistor with a threshold voltage of roughly 3.3 volts which corresponds to the output of a GPIO pin. The transistors we purchased turned out to be insufficient. &lt;br /&gt;
===== Open Drain =====&lt;br /&gt;
Our next solution was to use open drain with an external pull up resistor. By controlling the external voltage and the resistor value we could control the current input and therefore, the speed of the water pump.  By modifying the registers PINMODE and PINMODE_OD it is possible to set a given pin to disable its internal pull-up resistor and to enable an open drain configuration.&lt;br /&gt;
&lt;br /&gt;
The open drain circuit is shown below. It is essentially the same as the transistor circuit we tried to complete.  By making the power source a 12V battery pack and connecting it to an external pull up resistor we were able to briefly control a 12V DC water pump. However, the resistor we were using exploded.  &lt;br /&gt;
Our plan was to connect the water pump to the same 12V DC battery pack that drives the vehicle. It would only be used in S2 when the vehicle decided to stop so it wouldn’t compete with the rest of the vehicle for power.  The open drain configuration didn’t work however for unknown reasons.&lt;br /&gt;
&lt;br /&gt;
[[File:GPIO_OpenDrain_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://youtu.be/gImujFzDoJY Demo Run]&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://github.com/kevin-gadek/146_fev Github Source Code Link]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/preetpal-kang Preetpal Kang]&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/haluk-ozemek Haluk Ozemek]&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_SensingDirection.jpg&amp;diff=34500</id>
		<title>File:CmpE146 F16 T9 SensingDirection.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_SensingDirection.jpg&amp;diff=34500"/>
				<updated>2016-12-21T17:03:04Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: Shows the function of the film Canister.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Shows the function of the film Canister.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_RadialLight.jpg&amp;diff=34499</id>
		<title>File:CmpE146 F16 T9 RadialLight.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_RadialLight.jpg&amp;diff=34499"/>
				<updated>2016-12-21T17:02:33Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: Shows the Relationship between Light Intensity and Radial Distance&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Shows the Relationship between Light Intensity and Radial Distance&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_OpenDrain.jpg&amp;diff=34498</id>
		<title>File:CmpE146 F16 T9 OpenDrain.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_OpenDrain.jpg&amp;diff=34498"/>
				<updated>2016-12-21T16:57:58Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: Shows Open Drain Circuit.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Shows Open Drain Circuit.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_FlameSensor.jpg&amp;diff=34497</id>
		<title>File:CmpE146 F16 T9 FlameSensor.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_FlameSensor.jpg&amp;diff=34497"/>
				<updated>2016-12-21T16:57:26Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: Reuploading SHows the Flame Sensor Pinout&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reuploading SHows the Flame Sensor Pinout&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34489</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34489"/>
				<updated>2016-12-21T16:02:22Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Water Pump */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
====  Water Pump ====&lt;br /&gt;
[[File:Water_Pump.jpg]]&lt;br /&gt;
&lt;br /&gt;
We used a Aubig 12V Brushless DC water pump for this project.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:Flame_SensorKJ_Fall_2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
In order to make the sensing element directional it was necessary to block light from all undesired directions. We used a film canister to do this. Film is spoiled if it is exposed to any light. Therefore, film canisters are designed to block light. By placing the sensing element at one end of the film canister we were able to turn a sensing element with no direction into one with direction.&lt;br /&gt;
&lt;br /&gt;
[[File:Sensing_Direction_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Flame sensing element is used to determine both the direction and distance of a fire. This is because the intensity of a light source is the inverse of the square of its distance. Flames emit visible light and light sources emit light radially. Therefore the greater the intensity of the light and the greater the temperature the closer the vehicle is to the flame. This is used to measure distance.&lt;br /&gt;
&lt;br /&gt;
[[File:Radial_Intensity_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
Using these settings both distance from the flame and the direction of the flame can be measured.&lt;br /&gt;
&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
==== Water Pump ====&lt;br /&gt;
Originally we were planning on using the H-Bridge MOSFET circuit to drive the water pump that would accompany the fire extinguishing vehicle. The water pump requires 12V DC and is rated for 1.1 Amps of current.  This poses a significant problem for a board that can’t supply the power and current required.  The solution was to have an electronic switch that can be activated through the use of a GPIO.&lt;br /&gt;
===== Transistor =====&lt;br /&gt;
We planned to use a transistor as an electronic switch. The problem was finding a transistor with a threshold voltage of roughly 3.3 volts which corresponds to the output of a GPIO pin. The transistors we purchased turned out to be insufficient. &lt;br /&gt;
===== Open Drain =====&lt;br /&gt;
Our next solution was to use open drain with an external pull up resistor. By controlling the external voltage and the resistor value we could control the current input and therefore, the speed of the water pump.  By modifying the registers PINMODE and PINMODE_OD it is possible to set a given pin to disable its internal pull-up resistor and to enable an open drain configuration.&lt;br /&gt;
&lt;br /&gt;
The open drain circuit is shown below. It is essentially the same as the transistor circuit we tried to complete.  By making the power source a 12V battery pack and connecting it to an external pull up resistor we were able to briefly control a 12V DC water pump. However, the resistor we were using exploded.  &lt;br /&gt;
Our plan was to connect the water pump to the same 12V DC battery pack that drives the vehicle. It would only be used in S2 when the vehicle decided to stop so it wouldn’t compete with the rest of the vehicle for power.  The open drain configuration didn’t work however for unknown reasons.&lt;br /&gt;
&lt;br /&gt;
[[File:GPIO_OpenDrain_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://youtu.be/gImujFzDoJY Demo Run]&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://github.com/kevin-gadek/146_fev Github Source Code Link]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/preetpal-kang Preetpal Kang]&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/haluk-ozemek Haluk Ozemek]&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34488</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34488"/>
				<updated>2016-12-21T16:00:27Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* PWM Control */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
====  Water Pump ====&lt;br /&gt;
[[File:Water_Pump.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:Flame_SensorKJ_Fall_2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
In order to make the sensing element directional it was necessary to block light from all undesired directions. We used a film canister to do this. Film is spoiled if it is exposed to any light. Therefore, film canisters are designed to block light. By placing the sensing element at one end of the film canister we were able to turn a sensing element with no direction into one with direction.&lt;br /&gt;
&lt;br /&gt;
[[File:Sensing_Direction_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Flame sensing element is used to determine both the direction and distance of a fire. This is because the intensity of a light source is the inverse of the square of its distance. Flames emit visible light and light sources emit light radially. Therefore the greater the intensity of the light and the greater the temperature the closer the vehicle is to the flame. This is used to measure distance.&lt;br /&gt;
&lt;br /&gt;
[[File:Radial_Intensity_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
Using these settings both distance from the flame and the direction of the flame can be measured.&lt;br /&gt;
&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
==== Water Pump ====&lt;br /&gt;
Originally we were planning on using the H-Bridge MOSFET circuit to drive the water pump that would accompany the fire extinguishing vehicle. The water pump requires 12V DC and is rated for 1.1 Amps of current.  This poses a significant problem for a board that can’t supply the power and current required.  The solution was to have an electronic switch that can be activated through the use of a GPIO.&lt;br /&gt;
===== Transistor =====&lt;br /&gt;
We planned to use a transistor as an electronic switch. The problem was finding a transistor with a threshold voltage of roughly 3.3 volts which corresponds to the output of a GPIO pin. The transistors we purchased turned out to be insufficient. &lt;br /&gt;
===== Open Drain =====&lt;br /&gt;
Our next solution was to use open drain with an external pull up resistor. By controlling the external voltage and the resistor value we could control the current input and therefore, the speed of the water pump.  By modifying the registers PINMODE and PINMODE_OD it is possible to set a given pin to disable its internal pull-up resistor and to enable an open drain configuration.&lt;br /&gt;
&lt;br /&gt;
The open drain circuit is shown below. It is essentially the same as the transistor circuit we tried to complete.  By making the power source a 12V battery pack and connecting it to an external pull up resistor we were able to briefly control a 12V DC water pump. However, the resistor we were using exploded.  &lt;br /&gt;
Our plan was to connect the water pump to the same 12V DC battery pack that drives the vehicle. It would only be used in S2 when the vehicle decided to stop so it wouldn’t compete with the rest of the vehicle for power.  The open drain configuration didn’t work however for unknown reasons.&lt;br /&gt;
&lt;br /&gt;
[[File:GPIO_OpenDrain_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://youtu.be/gImujFzDoJY Demo Run]&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://github.com/kevin-gadek/146_fev Github Source Code Link]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/preetpal-kang Preetpal Kang]&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/haluk-ozemek Haluk Ozemek]&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34485</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34485"/>
				<updated>2016-12-21T15:47:40Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Testing &amp;amp; Technical Challenges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:Flame_SensorKJ_Fall_2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
In order to make the sensing element directional it was necessary to block light from all undesired directions. We used a film canister to do this. Film is spoiled if it is exposed to any light. Therefore, film canisters are designed to block light. By placing the sensing element at one end of the film canister we were able to turn a sensing element with no direction into one with direction.&lt;br /&gt;
&lt;br /&gt;
[[File:Sensing_Direction_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Flame sensing element is used to determine both the direction and distance of a fire. This is because the intensity of a light source is the inverse of the square of its distance. Flames emit visible light and light sources emit light radially. Therefore the greater the intensity of the light and the greater the temperature the closer the vehicle is to the flame. This is used to measure distance.&lt;br /&gt;
&lt;br /&gt;
[[File:Radial_Intensity_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
Using these settings both distance from the flame and the direction of the flame can be measured.&lt;br /&gt;
&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
==== Water Pump ====&lt;br /&gt;
Originally we were planning on using the H-Bridge MOSFET circuit to drive the water pump that would accompany the fire extinguishing vehicle. The water pump requires 12V DC and is rated for 1.1 Amps of current.  This poses a significant problem for a board that can’t supply the power and current required.  The solution was to have an electronic switch that can be activated through the use of a GPIO.&lt;br /&gt;
===== Transistor =====&lt;br /&gt;
We planned to use a transistor as an electronic switch. The problem was finding a transistor with a threshold voltage of roughly 3.3 volts which corresponds to the output of a GPIO pin. The transistors we purchased turned out to be insufficient. &lt;br /&gt;
===== Open Drain =====&lt;br /&gt;
Our next solution was to use open drain with an external pull up resistor. By controlling the external voltage and the resistor value we could control the current input and therefore, the speed of the water pump.  By modifying the registers PINMODE and PINMODE_OD it is possible to set a given pin to disable its internal pull-up resistor and to enable an open drain configuration.&lt;br /&gt;
&lt;br /&gt;
The open drain circuit is shown below. It is essentially the same as the transistor circuit we tried to complete.  By making the power source a 12V battery pack and connecting it to an external pull up resistor we were able to briefly control a 12V DC water pump. However, the resistor we were using exploded.  &lt;br /&gt;
Our plan was to connect the water pump to the same 12V DC battery pack that drives the vehicle. It would only be used in S2 when the vehicle decided to stop so it wouldn’t compete with the rest of the vehicle for power.  The open drain configuration didn’t work however for unknown reasons.&lt;br /&gt;
&lt;br /&gt;
[[File:GPIO_OpenDrain_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://youtu.be/gImujFzDoJY Demo Run]&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://github.com/kevin-gadek/146_fev Github Source Code Link]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/preetpal-kang Preetpal Kang]&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/haluk-ozemek Haluk Ozemek]&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34484</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34484"/>
				<updated>2016-12-21T15:44:36Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Motor Power */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:Flame_SensorKJ_Fall_2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
In order to make the sensing element directional it was necessary to block light from all undesired directions. We used a film canister to do this. Film is spoiled if it is exposed to any light. Therefore, film canisters are designed to block light. By placing the sensing element at one end of the film canister we were able to turn a sensing element with no direction into one with direction.&lt;br /&gt;
&lt;br /&gt;
[[File:Sensing_Direction_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Flame sensing element is used to determine both the direction and distance of a fire. This is because the intensity of a light source is the inverse of the square of its distance. Flames emit visible light and light sources emit light radially. Therefore the greater the intensity of the light and the greater the temperature the closer the vehicle is to the flame. This is used to measure distance.&lt;br /&gt;
&lt;br /&gt;
[[File:Radial_Intensity_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
Using these settings both distance from the flame and the direction of the flame can be measured.&lt;br /&gt;
&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
===== Water Pump =====&lt;br /&gt;
Originally we were planning on using the H-Bridge MOSFET circuit to drive the water pump that would accompany the fire extinguishing vehicle. The water pump requires 12V DC and is rated for 1.1 Amps of current.  This poses a significant problem for a board that can’t supply the power and current required.  The solution was to have an electronic switch that can be activated through the use of a GPIO.&lt;br /&gt;
===== Transistor =====&lt;br /&gt;
We planned to use a transistor as an electronic switch. The problem was finding a transistor with a threshold voltage of roughly 3.3 volts which corresponds to the output of a GPIO pin. The transistors we purchased turned out to be insufficient. &lt;br /&gt;
===== Open Drain =====&lt;br /&gt;
Our next solution was to use open drain with an external pull up resistor. By controlling the external voltage and the resistor value we could control the current input and therefore, the speed of the water pump.  By modifying the registers PINMODE and PINMODE_OD it is possible to set a given pin to disable its internal pull-up resistor and to enable an open drain configuration.&lt;br /&gt;
&lt;br /&gt;
The open drain circuit is shown below. It is essentially the same as the transistor circuit we tried to complete.  By making the power source a 12V battery pack and connecting it to an external pull up resistor we were able to briefly control a 12V DC water pump. However, the resistor we were using exploded.  &lt;br /&gt;
Our plan was to connect the water pump to the same 12V DC battery pack that drives the vehicle. It would only be used in S2 when the vehicle decided to stop so it wouldn’t compete with the rest of the vehicle for power.  The open drain configuration didn’t work however for unknown reasons.&lt;br /&gt;
&lt;br /&gt;
[[File:GPIO_OpenDrain_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://youtu.be/gImujFzDoJY Demo Run]&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://github.com/kevin-gadek/146_fev Github Source Code Link]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/preetpal-kang Preetpal Kang]&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/haluk-ozemek Haluk Ozemek]&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34481</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34481"/>
				<updated>2016-12-21T15:30:27Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Issue */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:Flame_SensorKJ_Fall_2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
In order to make the sensing element directional it was necessary to block light from all undesired directions. We used a film canister to do this. Film is spoiled if it is exposed to any light. Therefore, film canisters are designed to block light. By placing the sensing element at one end of the film canister we were able to turn a sensing element with no direction into one with direction.&lt;br /&gt;
&lt;br /&gt;
[[File:Sensing_Direction_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Flame sensing element is used to determine both the direction and distance of a fire. This is because the intensity of a light source is the inverse of the square of its distance. Flames emit visible light and light sources emit light radially. Therefore the greater the intensity of the light and the greater the temperature the closer the vehicle is to the flame. This is used to measure distance.&lt;br /&gt;
&lt;br /&gt;
[[File:Radial_Intensity_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
Using these settings both distance from the flame and the direction of the flame can be measured.&lt;br /&gt;
&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://youtu.be/gImujFzDoJY Demo Run]&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://github.com/kevin-gadek/146_fev Github Source Code Link]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/preetpal-kang Preetpal Kang]&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/haluk-ozemek Haluk Ozemek]&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34469</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34469"/>
				<updated>2016-12-21T14:06:03Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Issue */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:Flame_SensorKJ_Fall_2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
In order to make the sensing element directional it was necessary to block light from all undesired directions. We used a film canister to do this. Film is spoiled if it is exposed to any light. Therefore, film canisters are designed to block light. By placing the sensing element at one end of the film canister we were able to turn a sensing element with no direction into one with direction.&lt;br /&gt;
&lt;br /&gt;
[[File:Sensing_Direction_KJ_Fall2016.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Flame sensing element is used to determine both the direction and distance of a fire. This is because the intensity of a light source is the inverse of the square of its distance. Flames emit visible light and light sources emit light radially. Therefore the greater the intensity of the light and the greater the temperature the closer the vehicle is to the flame. This is used to measure distance.&lt;br /&gt;
&lt;br /&gt;
Using these settings both distance from the flame and the direction of the flame can be measured.&lt;br /&gt;
&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://youtu.be/gImujFzDoJY Demo Run]&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://github.com/kevin-gadek/146_fev Github Source Code Link]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/preetpal-kang Preetpal Kang]&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/haluk-ozemek Haluk Ozemek]&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:Sensing_Direction_KJ_Fall2016.jpg&amp;diff=34467</id>
		<title>File:Sensing Direction KJ Fall2016.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:Sensing_Direction_KJ_Fall2016.jpg&amp;diff=34467"/>
				<updated>2016-12-21T13:58:05Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: Shows the function of the film canister.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Shows the function of the film canister.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:Flame_SensorKJ_Fall_2016.jpg&amp;diff=34457</id>
		<title>File:Flame SensorKJ Fall 2016.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:Flame_SensorKJ_Fall_2016.jpg&amp;diff=34457"/>
				<updated>2016-12-21T13:43:00Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: Basic setup of the flame sensing element for the Autonomous Fire Extinguishing Vehicle.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Basic setup of the flame sensing element for the Autonomous Fire Extinguishing Vehicle.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34333</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34333"/>
				<updated>2016-12-21T08:30:27Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://youtu.be/gImujFzDoJY Demo Run]&lt;br /&gt;
&lt;br /&gt;
=== Project Source Code ===&lt;br /&gt;
*  [https://github.com/kevin-gadek/146_fev Github Source Code Link]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/preetpal-kang Preetpal Kang]&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/haluk-ozemek Haluk Ozemek]&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34329</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34329"/>
				<updated>2016-12-21T08:27:32Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
=== Acknowledgement ===&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/preetpal-kang Preetpal Kang]&lt;br /&gt;
*[https://cmpe.sjsu.edu/profile/haluk-ozemek Haluk Ozemek]&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34321</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34321"/>
				<updated>2016-12-21T08:15:17Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* ADC Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  IR ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34320</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34320"/>
				<updated>2016-12-21T08:14:57Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Design &amp;amp; Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  ADC Interface ====&lt;br /&gt;
[[File: CmpE146 F16 T9 IR Sensor.jpg|400px|thumb|centre|Figure 3. SmartSense IR Sensor]]&lt;br /&gt;
The IR sensor that was used allows both analog as well as digital output readings. For the purposes of this project, as outlined in Figure 1, the analog voltage output of the sensor is tied to an ADC pin in order to allow for much more precise readings. The board's 3.3V output was more than enough to meet the sensor's power requirements. &lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_IR_Sensor.jpg&amp;diff=34317</id>
		<title>File:CmpE146 F16 T9 IR Sensor.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_IR_Sensor.jpg&amp;diff=34317"/>
				<updated>2016-12-21T08:11:22Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34313</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34313"/>
				<updated>2016-12-21T08:07:26Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Testing &amp;amp; Technical Challenges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
In terms of testing, test runs were conducted in order to fine-tune threshold values so that the Rover is able to detect fires at a reasonable distance. Different lighting environments were used to see how ambient light affected performance and accuracy of the Rover. Overall, the Rover was generally precise in determining a fire's location and stopping at an appropriate distance. Because testing was primarily done with a flashlight because actual fire would be a safety hazard in most cases, different flashlights produced slightly different behaviors from the Rover. &lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34311</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34311"/>
				<updated>2016-12-21T08:04:32Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34310</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34310"/>
				<updated>2016-12-21T08:00:25Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* SJOne Board */&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;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins from the SJOne Board were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34309</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34309"/>
				<updated>2016-12-21T08:00:05Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Design &amp;amp; Implementation */&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;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34307</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34307"/>
				<updated>2016-12-21T07:57:40Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* SJOne Board */&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;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
'''Pin Connectivity Table'''&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;| Port.Pin&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Direction&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;|1&lt;br /&gt;
| P0.26&lt;br /&gt;
| Input&lt;br /&gt;
| ADC&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| P0.0&lt;br /&gt;
| Output&lt;br /&gt;
| DIR1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| P0.1&lt;br /&gt;
| Output&lt;br /&gt;
| DIR2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| P2.3&lt;br /&gt;
| Output&lt;br /&gt;
| PWM1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P2.4&lt;br /&gt;
| Input&lt;br /&gt;
| PWM2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| P1.20&lt;br /&gt;
| Output&lt;br /&gt;
| Water Pump Enable&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34301</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34301"/>
				<updated>2016-12-21T07:44:30Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Design &amp;amp; Implementation */&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;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown below, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
[[File: CmpE146 F16 T9 State Diagram.jpg|400px|thumb|centre|Figure 4. Basic Software State Diagram]]&lt;br /&gt;
The software logic follows the general flow shown in Figure 4. Various motor control functions are defined such as turn_left, turn_right, go_forward, and reverse that can be called on at will by the several tasks being used. Upon initialization, the state will be set to 0 and the pwm_task will make the Rover rotate in place while a separate flame_task will continually read sensor data. Because the sensor's base value is approximately 4095, conditions are set to check when the readings dip below a certain threshold. In this specific case, readings below 2000 indicate that a flame or flashlight has been detected. The flame_task will then set the system's state to 1 because it now knows that the flame is directly in front of the rover. The rover will then traverse towards the source of the flame while continually reading sensor data. If at any point, the sensor data indicates readings greater than 2000 while the state is still 1, then the system knows that it isn't correctly positioned to face the fire. In this case, the rover will re-enter state 0 and begin searching again. Once during traversal, readings indicate values less than 350, then a reasonable determination can be made that the fire is directly in front of the rover. In this case, all motors will stop and the water pump will start spraying.  &lt;br /&gt;
=== Implementation ===&lt;br /&gt;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_State_Diagram.jpg&amp;diff=34299</id>
		<title>File:CmpE146 F16 T9 State Diagram.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_State_Diagram.jpg&amp;diff=34299"/>
				<updated>2016-12-21T07:35:55Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34298</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34298"/>
				<updated>2016-12-21T07:33:36Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* References Used */&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;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown in Figure 3, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&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;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
*[https://www.amazon.com/Driver-Module-H-bridge-Mosfet-Irf3205/dp/B00LECI0XC H-Bridge Driver specifications]&lt;br /&gt;
*[https://www.amazon.com/Smartsense-Temperature-Compatible-Atomic-Market/dp/B00TNOHTV2/ref=sr_1_13?ie=UTF8&amp;amp;qid=1482305539&amp;amp;sr=8-13&amp;amp;keywords=flame+sensor IR sensor specifications]&lt;br /&gt;
*[https://www.servocity.com/bogie Bogie Rover specifications]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34296</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34296"/>
				<updated>2016-12-21T07:29:41Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* References Used */&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;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown in Figure 3, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&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;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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;
*[http://www.freertos.org/a00106.html FreeRTOS API]&lt;br /&gt;
*[https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf LM7805 datasheet]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
You can list the references you used.&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34295</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34295"/>
				<updated>2016-12-21T07:27:41Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* PWM Control */&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;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown in Figure 3, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 3. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&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;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34294</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34294"/>
				<updated>2016-12-21T07:27:22Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* PWM Control */&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;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown in Figure 3, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 4. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover at once to allow for quick turning and movement.&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;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34292</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34292"/>
				<updated>2016-12-21T07:26:43Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Project Title */&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;
== Autonomous FEV ==&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown in Figure 3, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 4. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover to allow for quick turning and movement.&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;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34291</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34291"/>
				<updated>2016-12-21T07:26:05Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Implementation */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown in Figure 3, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 4. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover to allow for quick turning and movement.&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;
*To implement IR interface&lt;br /&gt;
**Configure ADC pin&lt;br /&gt;
**Store reading&lt;br /&gt;
**Check if reading meets a certain threshold indicating fire detection and change state&lt;br /&gt;
&lt;br /&gt;
*To implement PWM interface&lt;br /&gt;
**Configure GPIO and PWM pins&lt;br /&gt;
**Depending on which state, either spin in circle, go forward or stop&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges ==&lt;br /&gt;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34289</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34289"/>
				<updated>2016-12-21T07:18:11Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* PWM Control */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown in Figure 3, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 4. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover to allow for quick turning and movement.&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;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34288</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34288"/>
				<updated>2016-12-21T07:17:59Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* SJOne Board */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|Figure 2: SJ-One Board Picture]]&lt;br /&gt;
As shown in Figure 3, various pins were selected for the ADC and motor PWM interfaces used in this project.&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover to allow for quick turning and movement.&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;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34287</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34287"/>
				<updated>2016-12-21T07:15:17Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Irf3205 H-Bridge Motor Driver */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  PWM Control ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
The H-Bridge Motor Driver is powered by a 12V battery supply that has been regulated down to 5V with an LM7805. This allows both the 4.5V-7.4V voltage requirement of the Bogie Rover to be met while also ensuring enough current is being split among the six motors to adequately drive the Rover. The control signal bank is comprised of +5V, GND, DIR1, PWM1, DIR2 and PWM2 pins that allow motor control with either 3.3V or 5V logic. As shown in Figure 1, two GPIO pins are connected to the two DIR pins to allow easy GPIO switching to change motor direction. Two pins configured for PWM output are connected to the two PWM inputs, allowing for easy motor speed control. The output bank provides for two sets of motor control signals as well as external power input. In order to drive this specific Rover, the LM7805 output is connected to the POWER and GND pins on the driver's output bank, allowing approximately 5V and 2200 mA to be split among all six of the Rover's motors. The two MOTOR1 outputs are connected to the + and - inputs of the three motors on the left side of the Rover and the two MOTOR2 outputs are connected to the right side. This allows easy manipulation of either side of the Rover to allow for quick turning and movement.&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;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34285</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34285"/>
				<updated>2016-12-21T07:01:43Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Schedule */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34284</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34284"/>
				<updated>2016-12-21T07:01:18Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Schedule */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34283</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34283"/>
				<updated>2016-12-21T07:00:55Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Objectives &amp;amp; Introduction */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objectives of this project include:&lt;br /&gt;
* Create a stand-by mode where vehicle would rotate in place and scan&lt;br /&gt;
* Have vehicle detect a flame and traverse to its general location&lt;br /&gt;
* Stop vehicle when flame is detected and activate water pump to spray in the fire's general location&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Done&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Done&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34280</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34280"/>
				<updated>2016-12-21T06:55:34Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Project Source Code */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Done&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Done&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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://github.com/kevin-gadek/146_fev Github Source Code Link]&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34276</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34276"/>
				<updated>2016-12-21T06:36:16Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Testing &amp;amp; Technical Challenges */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Done&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Done&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
==== IR Sensor Calibration ====&lt;br /&gt;
====== Issue ====== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
====== Solution ======&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
==== Motor Power ====&lt;br /&gt;
===== Issue =====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34275</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34275"/>
				<updated>2016-12-21T06:34:52Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* 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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Done&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Done&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
The overall system design diagram is shown below. &lt;br /&gt;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
=== IR Sensor Calibration ===&lt;br /&gt;
===== Issue ===== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
=== Motor Power ===&lt;br /&gt;
==== Issue ====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34273</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34273"/>
				<updated>2016-12-21T06:33:23Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* 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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Done&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Done&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; 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;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 1. Overall System Diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
=== IR Sensor Calibration ===&lt;br /&gt;
===== Issue ===== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
=== Motor Power ===&lt;br /&gt;
==== Issue ====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34272</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34272"/>
				<updated>2016-12-21T06:32:52Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Design &amp;amp; Implementation */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Done&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Done&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; 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;
[[File: CmpE146 F16 T9 System Diagram.jpg|1000px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
=== IR Sensor Calibration ===&lt;br /&gt;
===== Issue ===== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
=== Motor Power ===&lt;br /&gt;
==== Issue ====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_System_Diagram.jpg&amp;diff=34271</id>
		<title>File:CmpE146 F16 T9 System Diagram.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_System_Diagram.jpg&amp;diff=34271"/>
				<updated>2016-12-21T06:31:46Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34266</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34266"/>
				<updated>2016-12-21T06:06:59Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Conclusion */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Done&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Done&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; 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;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
=== IR Sensor Calibration ===&lt;br /&gt;
===== Issue ===== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
=== Motor Power ===&lt;br /&gt;
==== Issue ====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was ultimately successful at its goal. The RC Rover is able to detect IR light within a reasonable wavelength, detecting both certain flashlights as well as matches. The RC Rover is then able to transition between states according to readings that are being interpreted. These states allow the rover to traverse and navigate to several different fires within an enclosed area.  The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. Creating a system with multiple tasks continually context switching and being able to predict the result was also a great lesson on designing with freeRTOS. With further work, this project could be improved both to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34265</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34265"/>
				<updated>2016-12-21T06:02:57Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Testing &amp;amp; Technical Challenges */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Done&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Done&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; 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;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
&lt;br /&gt;
=== IR Sensor Calibration ===&lt;br /&gt;
===== Issue ===== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
=== Motor Power ===&lt;br /&gt;
==== Issue ====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Installing a heatsink to the LM7805 instantly resolved power issues and the vehicle was able to traverse ground easily.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was primarily successful at its goal. The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. With further work, this project could be improved to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34264</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=34264"/>
				<updated>2016-12-21T06:01:37Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Schedule */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| Done&lt;br /&gt;
| 12/18.16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| Done&lt;br /&gt;
| 12/20/16&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; 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;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
=== IR Sensor Calibration ===&lt;br /&gt;
===== Issue ===== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
=== Motor Power ===&lt;br /&gt;
==== Issue ====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Also, the two middle motors were disconnected to reduce the total current that the system draws and helps to ensure smoother operation.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was primarily successful at its goal. The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. With further work, this project could be improved to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=33594</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=33594"/>
				<updated>2016-12-20T21:54:15Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* SJOne Board */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| In Progress&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| In Progress&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; 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;
==== SJOne Board ====&lt;br /&gt;
[[File:sjone_board.jpg|center|frame|link=SJ One Board|SJ-One Board Picture]]&lt;br /&gt;
&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
=== IR Sensor Calibration ===&lt;br /&gt;
===== Issue ===== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
=== Motor Power ===&lt;br /&gt;
==== Issue ====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Also, the two middle motors were disconnected to reduce the total current that the system draws and helps to ensure smoother operation.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was primarily successful at its goal. The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. With further work, this project could be improved to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=33591</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=33591"/>
				<updated>2016-12-20T21:53:07Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Irf3205 H-Bridge Motor Driver */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| In Progress&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| In Progress&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; 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;
==== SJOne Board ====&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
[[File: CmpE146 F16 T9 Driver.jpg|400px|thumb|centre|Figure 2. IrF3205 H-Bridge Motor Driver]]&lt;br /&gt;
&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;
=== IR Sensor Calibration ===&lt;br /&gt;
===== Issue ===== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
=== Motor Power ===&lt;br /&gt;
==== Issue ====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Also, the two middle motors were disconnected to reduce the total current that the system draws and helps to ensure smoother operation.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was primarily successful at its goal. The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. With further work, this project could be improved to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_Driver.jpg&amp;diff=33579</id>
		<title>File:CmpE146 F16 T9 Driver.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T9_Driver.jpg&amp;diff=33579"/>
				<updated>2016-12-20T21:49:07Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>146 user1</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=33563</id>
		<title>F16: Autonomous Fire Extinguishing Vehicle</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_Autonomous_Fire_Extinguishing_Vehicle&amp;diff=33563"/>
				<updated>2016-12-20T21:45:13Z</updated>
		
		<summary type="html">&lt;p&gt;146 user1: /* Design &amp;amp; Implementation */&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;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
The Autonomous FEV is able to scan a room for fires through a focused IR sensor and navigate to each fire's location. Once the vehicle reaches a reasonable distance from the fire's location, the vehicle will spray water in the fire's general location and extinguish it.&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;
*  Kevin Gadek&lt;br /&gt;
** Sensor ADC Interface &lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  John Purkis&lt;br /&gt;
** DC Motor Controller Interface&lt;br /&gt;
** PWM Interface&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
*  RuiQiang Yu&lt;br /&gt;
** Vehicle Assembly&lt;br /&gt;
**   Project Documentation&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.&lt;br /&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;| Start Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| End Data&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Status&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual Completion Date&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 10/21/2016&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| Finalize Project Proposal&lt;br /&gt;
| Completed&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 10/28/2016&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| Compile Bill of Materials/Design Schematics&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/04/2016&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| Order necessary parts&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/15/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/11/2016&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| Disassemble prebuilt RC car/Develop initial IR sensor task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 11/18/2016&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| Develop preliminary servo motor control task&lt;br /&gt;
| Completed&lt;br /&gt;
| 11/21/16&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 11/25/2016&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| Assemble vehicle&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/2/2016&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| Test/troubleshoot system setup&lt;br /&gt;
| Completed&lt;br /&gt;
| 12/11/2016&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/9/2016&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| Fine-tune/Finalize of project&lt;br /&gt;
| In Progress&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 9&lt;br /&gt;
| 12/16/2016&lt;br /&gt;
| 12/20/2016&lt;br /&gt;
| Prepare for demo/presentation&lt;br /&gt;
| In Progress&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Part Name&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJOne Board&lt;br /&gt;
| 1&lt;br /&gt;
| $80&lt;br /&gt;
|Main microcontroller&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Infrared Sensor Module&lt;br /&gt;
| 2&lt;br /&gt;
| $13.67&lt;br /&gt;
|Placed around front of car to detect and approximate flame location&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Actobactics Bogie Rover&lt;br /&gt;
| 1&lt;br /&gt;
| $69.99&lt;br /&gt;
| Main vehicle&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump&lt;br /&gt;
| 1&lt;br /&gt;
| $25.77&lt;br /&gt;
|Aubig 12V Brushless DC water pump&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water pump battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $8.00&lt;br /&gt;
|12V 8xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| System battery supply&lt;br /&gt;
| 2&lt;br /&gt;
| $5.00&lt;br /&gt;
|6V 4xAA battery pack w/ switch&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Voltage Regulator&lt;br /&gt;
| 2&lt;br /&gt;
| $2.00&lt;br /&gt;
|5V Voltage Regulator (Approx. 1A output current)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; 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;
==== SJOne Board ====&lt;br /&gt;
====  Irf3205 H-Bridge Motor Driver ====&lt;br /&gt;
&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;
=== IR Sensor Calibration ===&lt;br /&gt;
===== Issue ===== &lt;br /&gt;
Calibrating the IR sensor to focus on a specific source of IR waves rather than all the ambient light around it. ADC readings from the IR sensor were sporadic and unpredictable in areas with spotty lighting. Sensitivity calibration ended up not being as helpful as indicated in affecting the analog output of IR sensor.&lt;br /&gt;
===== Solution =====&lt;br /&gt;
This problem was somewhat mitigated by creating a makeshift apparatus with a film canister, forcing the sensor to focus its sensing in one specific direction at a time. The film canister prevents most outside IR waves from interfering with readings.&lt;br /&gt;
&lt;br /&gt;
=== Motor Power ===&lt;br /&gt;
==== Issue ====&lt;br /&gt;
Control of the six different DC motors provided on the vehicle was sporadic at best. Because each motor required a peak supply current of approximately 220 mA, the peak output current of the LM7805 voltage regulator often wasn't enough to supply all six of them without either overheating and/or stopping some motors from functioning.&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Attaching a 7805 with a heatsink mitigated many of the overheating issues. Also, the two middle motors were disconnected to reduce the total current that the system draws and helps to ensure smoother operation.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This project was primarily successful at its goal. The research done in learning how to interface the SJOne microcontroller over a variety of interfaces like ADC and PWM was a great learning experience. With further work, this project could be improved to increase reliability and accuracy. &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;
&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>146 user1</name></author>	</entry>

	</feed>