<?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+user7</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+user7"/>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php/Special:Contributions/146_user7"/>
		<updated>2026-05-08T21:15:20Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=35218</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=35218"/>
				<updated>2016-12-23T06:37:12Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:CmpE146_F16_T3_UARTCoffee.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:CmpE146_F16_T3_BlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE146_F16_T3_UARTCoffeeCircuit.PNG|500px|thumb|left|Figure 3. Full Circuit for the harware and SJ One Board]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 100Ω)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission (9600bps), the transmitting board sends a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:CmpE146_F16_T3_UARTCoffeeStateDiagram.PNG|500px|thumb|left|Figure 4. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:CmpE146_F16_T3_TransistorMotor.PNG|500px|thumb|left|Figure 5. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (100 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_UARTCoffeeStateDiagram.PNG&amp;diff=35217</id>
		<title>File:CmpE146 F16 T3 UARTCoffeeStateDiagram.PNG</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_UARTCoffeeStateDiagram.PNG&amp;diff=35217"/>
				<updated>2016-12-23T06:33:37Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: Algorithm state diagram.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Algorithm state diagram.&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_UARTCoffeeCircuit.PNG&amp;diff=35216</id>
		<title>File:CmpE146 F16 T3 UARTCoffeeCircuit.PNG</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_UARTCoffeeCircuit.PNG&amp;diff=35216"/>
				<updated>2016-12-23T06:32:36Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_BlockDiagram.PNG&amp;diff=35215</id>
		<title>File:CmpE146 F16 T3 BlockDiagram.PNG</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_BlockDiagram.PNG&amp;diff=35215"/>
				<updated>2016-12-23T06:31:42Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: UART Coffee block diagram.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;UART Coffee block diagram.&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_UARTCoffee.jpg&amp;diff=35214</id>
		<title>File:CmpE146 F16 T3 UARTCoffee.jpg</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_UARTCoffee.jpg&amp;diff=35214"/>
				<updated>2016-12-23T06:30:35Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_TransistorMotor.PNG&amp;diff=35213</id>
		<title>File:CmpE146 F16 T3 TransistorMotor.PNG</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=File:CmpE146_F16_T3_TransistorMotor.PNG&amp;diff=35213"/>
				<updated>2016-12-23T06:29:42Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: Transistor and Motor interface on the Sj One Board.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transistor and Motor interface on the Sj One Board.&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34537</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34537"/>
				<updated>2016-12-21T18:54:52Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:UARTCoffeeCircuit.PNG|500px|thumb|left|Figure 3. Full Circuit for the harware and SJ One Board]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 100Ω)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission (9600bps), the transmitting board sends a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 4. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 5. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (100 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34536</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34536"/>
				<updated>2016-12-21T18:53:01Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:UARTCoffeeCircuit.PNG|500px|thumb|left|Figure 3. Full Circuit for the harware and SJ One Board]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission (9600bps), the transmitting board sends a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 4. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 5. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34535</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34535"/>
				<updated>2016-12-21T18:52:26Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:UARTCoffeeCircuit.PNG|500px|thumb|left|Figure 3. Full Circuit for the harware and SJ One Board]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission (9600bps), the transmitting board sends a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 4. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 5. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34534</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34534"/>
				<updated>2016-12-21T18:51:42Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:UARTCoffeeCircuit.PNG|500px|thumb|left|Figure 3. Full Circuit for the harware and SJ One Board]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission (9600bps), the transmitting board sends a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 4. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 5. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34533</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34533"/>
				<updated>2016-12-21T18:50:36Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing the hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:UARTCoffeeCircuit.PNG|500px|thumb|left|Figure 3. Full Circuit for the harware and SJ One Board]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission (9600bps), the transmitting board sends a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 4. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 5. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34532</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34532"/>
				<updated>2016-12-21T18:49:33Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing the hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:UARTCoffeeCircuit.PNG|500px|thumb|left|Figure 3. Full Circuit for the harware and SJ One Board]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission (9600bps), the transmitting board sends a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 4. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 5. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34531</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34531"/>
				<updated>2016-12-21T18:46:26Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing the hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:UARTCoffeeCircuit.PNG|500px|thumb|left|Figure 3. Full Circuit for the harware and SJ One Board]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission (9600bps), the transmitting board sends a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 4. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 5. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34400</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34400"/>
				<updated>2016-12-21T10:59:57Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission (9600bps), the transmitting board sends a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34394</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34394"/>
				<updated>2016-12-21T10:52:42Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;6&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
The UART Coffee making machine was a learning experience for both of us. We learned to interface different components to the microcontroller even if the microcontroller's 3.3V was insufficient. The hardest part of this project was getting the UART communication between the two boards, however, working together made it easier because one partner was able to check the other person's work. A non-techincal hurdle we faced was timing because we both had different schedules due to finals, so working together was only possible after finals. Overall, we are pleased with our project's results and the knowledge we picked up and reinforced along the way.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34386</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34386"/>
				<updated>2016-12-21T10:45:35Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;3&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34384</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34384"/>
				<updated>2016-12-21T10:44:34Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b size=&amp;quot;3&amp;quot;&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;liTransmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&lt;br /&gt;
&lt;br /&gt;
=== Project Video ===&lt;br /&gt;
*  [https://www.youtube.com/watch?v=oaSOQO89uX4 Video Demo]&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;
=== Acknowledgement ===&lt;br /&gt;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&lt;br /&gt;
&lt;br /&gt;
=== References Used ===&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;br /&gt;
&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34381</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34381"/>
				<updated>2016-12-21T10:39:27Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Sytem Operation Procedure&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press START Button on the the receiver board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transmitter board can select options (Temperature and Coffee type)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;User confirms options by pressing button 4, CONFIRM&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;liTransmitter board sends 10-bit message to receiver with all the options&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Receiver takes control of operations&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Starts pumping out selected coffee powder&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Sleeps for 10 seconds to wait for water to be pured in&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activates stirring mechanism for 5 seconds&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Activated cooling system to achieve desired temperature&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Coffee is now READY&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34378</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34378"/>
				<updated>2016-12-21T10:32:03Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34377</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34377"/>
				<updated>2016-12-21T10:30:53Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34376</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34376"/>
				<updated>2016-12-21T10:29:47Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34375</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34375"/>
				<updated>2016-12-21T10:28:43Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Software Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34374</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34374"/>
				<updated>2016-12-21T10:28:03Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Design &amp;amp; Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|300px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34372</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34372"/>
				<updated>2016-12-21T10:27:21Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|300px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34371</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34371"/>
				<updated>2016-12-21T10:25:13Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water valve&lt;br /&gt;
| 1&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Water continer&lt;br /&gt;
| 3&lt;br /&gt;
| $0.10&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:UartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The stepper motors have more wires than the regular DC motors, so more than one pin was needed to use them. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|300px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34367</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34367"/>
				<updated>2016-12-21T10:20:26Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:UartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|300px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34365</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34365"/>
				<updated>2016-12-21T10:19:51Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:UartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|300px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34362</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34362"/>
				<updated>2016-12-21T10:18:10Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:UartcoffeeStateDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|300px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34358</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34358"/>
				<updated>2016-12-21T10:15:20Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and choose their desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|300px|thumb|left|Figure 1. UART Coffee System Design]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 2. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins, more specifically UART2. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second microcontroller is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. The only non-electronic component of our design is the water valve, this is because of security measures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stirring Motor&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
&lt;br /&gt;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing. During the UART transmission, the trasmitting board send a 10-bit message to the receiving board that includes the user's choices. After receiving the message, the receiving boards takes over and begins the coffee mixing process.&lt;br /&gt;
&lt;br /&gt;
[[File:uartcoffeeStateDiagram.PNG|300px|thumb|left|Figure 1. UART Coffee State Diagram]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34357</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34357"/>
				<updated>2016-12-21T09:58:07Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|500px|thumb|left|Figure 1. UART Coffee]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34356</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34356"/>
				<updated>2016-12-21T09:57:33Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|500px|thumb|left|Figure 1. UART Coffee]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34355</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34355"/>
				<updated>2016-12-21T09:56:56Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|500px|thumb|left|Figure 1. UART Coffee]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34354</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34354"/>
				<updated>2016-12-21T09:56:26Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|500px|thumb|left|Figure 1. UART Coffee]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34353</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34353"/>
				<updated>2016-12-21T09:55:38Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Design ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:uartcoffeepic.jpg|500px|thumb|left|Figure 1. UART Coffee]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34352</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34352"/>
				<updated>2016-12-21T09:54:02Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== System Design ===&lt;br /&gt;
[[File:uartcoffeepic.jpg|500px|thumb|left|Figure 1. UART Coffee]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34244</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34244"/>
				<updated>2016-12-21T04:54:04Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Schedule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finishing touches.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 8&lt;br /&gt;
| 12/20&lt;br /&gt;
| Finalize project for demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34240</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34240"/>
				<updated>2016-12-21T04:52:12Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Abstract */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART] Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired coffee temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34238</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34238"/>
				<updated>2016-12-21T04:50:22Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Appendix */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34237</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34237"/>
				<updated>2016-12-21T04:49:51Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Appendix */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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;
*[http://www.nxp.com/documents/user_manual/UM10360.pdf LPC1758 Datasheet]&lt;br /&gt;
*[http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=Realtime_OS_on_Embedded_Systems&amp;diff=34230</id>
		<title>Realtime OS on Embedded Systems</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=Realtime_OS_on_Embedded_Systems&amp;diff=34230"/>
				<updated>2016-12-21T04:43:47Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /*  Fall 2016 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Program History ==&lt;br /&gt;
My contribution in Embedded System courses started with CmpE146.  This course teaches students on how to write UART, SPI, and I2C Drivers and interface their drivers to peripherals.  There are about 8 weekly labs in which students not only write drivers, but also learn the core of Real-time Operating Systems including threading (tasks), and inter-task communication using Queues and Semaphores.  FreeRTOS is the operating system used with C/C++ Compiler based on GNU.&lt;br /&gt;
&lt;br /&gt;
When the course was started by Dr. Ozemek @ SJSU (sometime before 2005), not many resources were out there.  Still, with helpful guidance from Dr. Ozemek, interesting projects were created.  This is when I started to help out in Embedded System Courses, and by collecting and sharing knowledge, we've raised the bar at SJSU!  &lt;br /&gt;
&lt;br /&gt;
There have been many great projects at SJSU, but since no one knew about them, the hard work went to a waste for anyone but the creator.  But now we've got the infrastructure to share the projects, which turn out as great references for future students.  Here is my project that started around 2007, and turned into Bachelor's Senior Design Project: &amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.youtube.com/watch?v=QEadXdRl3ws&amp;amp;feature=plcp YouTube Video of Self-Navigating Car]&lt;br /&gt;
&lt;br /&gt;
As of 2013, I have broadened my contribution to other embedded system courses like CmpE240, CmpE243 and CmpE244.&lt;br /&gt;
&lt;br /&gt;
== Lab Assignments ==&lt;br /&gt;
This article contains laboratory assignments and resources.  The assignments are under construction as we move towards SJ-One development board.&lt;br /&gt;
*  [[Embedded System Tutorial GPIO | Lesson 1 : GPIO]]&lt;br /&gt;
*  [[Embedded System Tutorial UART | Lesson 2 : UART]]&lt;br /&gt;
*  [[Embedded System Tutorial SPI  | Lesson 3 : SPI]]&lt;br /&gt;
*  [[Embedded System I2C Tutorial  | Lesson 4 : I2C]]&lt;br /&gt;
*  [[Embedded System Tutorial Interrupts | Lesson 5 : Interrupts]]&lt;br /&gt;
*  [[Embedded System Tutorial FreeRTOS | Lesson 6 : FreeRTOS Tasks]]&lt;br /&gt;
*  [[Embedded System Tutorial File I/O | Lesson 7 : FreeRTOS Application Programming]]&lt;br /&gt;
&lt;br /&gt;
==Other reference articles==&lt;br /&gt;
*  [[Bitmasking Tutorial]] (+ GPIO Example)&lt;br /&gt;
*  [[ LPC17xx Memory Map &amp;amp; Interrupts]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR/&amp;gt;&lt;br /&gt;
== Senior Design Projects ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR/&amp;gt;&lt;br /&gt;
== Semester Projects ==&lt;br /&gt;
Every semester, students are given about 7-10 weeks to complete their projects.  During this short time-span, students form groups, order parts, and begin working on their projects.  The work performed during the semester is documented at this Wiki.&lt;br /&gt;
&lt;br /&gt;
Here is the list of Preet's documented projects:&amp;lt;BR/&amp;gt;&lt;br /&gt;
*  [[Preet's Relay Controller Project]]&lt;br /&gt;
*  [[Nordic Low Powered Mesh Network stack]]&lt;br /&gt;
*  [http://www.youtube.com/watch?v=QEadXdRl3ws&amp;amp;feature=plcp Senior Design Project (MS-CmpE) Video]&lt;br /&gt;
&lt;br /&gt;
Here is another resource for good project references :&lt;br /&gt;
[http://people.ece.cornell.edu/land/courses/ece4760/FinalProjects/ Cornell EE476 Projects]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
=== [[Fall 2016 | Fall 2016]] ===&lt;br /&gt;
&lt;br /&gt;
CMPE146:&lt;br /&gt;
* Add Your Group on Here, then follow the link to add more to your template *&lt;br /&gt;
* [http://www.socialledge.com/sjsu/index.php?title=F16:_Seismograph F16: Seismograph]&lt;br /&gt;
* [[F16: Piano Glove]]&lt;br /&gt;
* [[F16: Object Detector]]&lt;br /&gt;
* [[F16: Autonomous Nautical System]]&lt;br /&gt;
* [[F16: Autonomous Fire Extinguishing Vehicle]]&lt;br /&gt;
* [[F16: Autonomous Runaway Alarm Car]]&lt;br /&gt;
* [[F16: E-Bike]]&lt;br /&gt;
* [[F16: NotifyBox]]&lt;br /&gt;
* [[F16: Wireless Tilt Controlled Camera Arm]]&lt;br /&gt;
* [[F16: OBD2 Reader]]&lt;br /&gt;
* [[F16: Micro Watch Monitoring System]]&lt;br /&gt;
* [[F16: Door Alarm System]]&lt;br /&gt;
* [[http://www.socialledge.com/sjsu/index.php?title=F16:_I2Coffee F16: UART Coffee]]&lt;br /&gt;
* [[F16: Real Time Traffic Control System (RTTCS)]]&lt;br /&gt;
&lt;br /&gt;
=== [[Spring 2016 | Spring 2016]] ===&lt;br /&gt;
*  [[S16: Fantastic Four]]&lt;br /&gt;
*  [[S16: Simpsons]]&lt;br /&gt;
*  [[S16: Mars 1]]&lt;br /&gt;
*  [[S16: OpenSJ Bluz]]&lt;br /&gt;
*  [[S16: Motion Copy Bot]]&lt;br /&gt;
*  [[S16: Biker Assist]]&lt;br /&gt;
*  [[S16: Helios]]&lt;br /&gt;
*  [[S16: Sound Buddy]]&lt;br /&gt;
*  [[S16: Warriors]]&lt;br /&gt;
*  [[S16: Expendables]]&lt;br /&gt;
*  [[S16: Ahava]]&lt;br /&gt;
*  [[S16: Number 1]]&lt;br /&gt;
*  [[S16: SkyNet]]&lt;br /&gt;
*  [[S16: SmartDoorLock]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cmpe 146:&lt;br /&gt;
*  [[S16: Camera Gimbal]]&lt;br /&gt;
*  [[S16: Laser Harp]]&lt;br /&gt;
*  &amp;lt;strike&amp;gt;[[S16: Laser Cutter Motor Controller]]&amp;lt;/strike&amp;gt;&lt;br /&gt;
*  [[S16: Sprinkler]]&lt;br /&gt;
*  [[S16: The Jatrick Car]]&lt;br /&gt;
*  [[S16: Dan]]&lt;br /&gt;
*  [[S16: Robolamp]]&lt;br /&gt;
*  [[S16: Pinball]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [[Fall 2015 | Fall 2015]] ===&lt;br /&gt;
&lt;br /&gt;
CmpE146:&lt;br /&gt;
* [[F15: Autonomous Mobile]]&lt;br /&gt;
* [[F15: Car Report]]&lt;br /&gt;
* [[F15: Electronic Piano]]&lt;br /&gt;
* [[F15: Doorknock over Bluetooth]]&lt;br /&gt;
* [[F15: Smart Car]]&lt;br /&gt;
* [[F15: Plant Control]]&lt;br /&gt;
* [[F15: Laser Security System]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE244 Spring 2015 | Spring 2015]] ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
* [[S15: Quadcopter - It flies]]&lt;br /&gt;
* [[S15: Remote Learner]]&lt;br /&gt;
* [[S15: Protocol Interface: I2C - CAN Bridge]]&lt;br /&gt;
* [[S15: Vision RC Car]]&lt;br /&gt;
* [[S15: SJeight Octocopter]]&lt;br /&gt;
* [[S15: Swarm Robots]]&lt;br /&gt;
* [[S15: Smart Sparta Parking System]]&lt;br /&gt;
* [[S15: Touch Navigator]]&lt;br /&gt;
* [[S15: Wizard's Chess System]]&lt;br /&gt;
* [[S15: Bug Rider]]&lt;br /&gt;
* [[S15: Real Time Brake Assist (RTBA)]]&lt;br /&gt;
* [[S15: Wireless Mesh Network]]&lt;br /&gt;
* [[S15: Wireless Power Transfer System]]&lt;br /&gt;
* [[S15: Drone]]&lt;br /&gt;
* [[S15: Tree Node using Google Protocol Buffers]]&lt;br /&gt;
* [[S15: Multi-media Car]]&lt;br /&gt;
* [[S15: Hand Gesture Recognition using IR Sensors]]&lt;br /&gt;
* [[S15: CAN controlled RGB LED cubes]]&lt;br /&gt;
* [[S15: Rubik's Cube Solver]]&lt;br /&gt;
* [[S15: RFID Security Box]]&lt;br /&gt;
* [[S15: Automated Meeting Room Reservation]]&lt;br /&gt;
* [[S15: Patient Buddy System (PBS)]]&lt;br /&gt;
&lt;br /&gt;
CmpE146:&lt;br /&gt;
* [[S15: Hovercopter]]&lt;br /&gt;
* [[S15: Triclops: Smart RC Car]]&lt;br /&gt;
* [[S15: Connect Four - Robotic Player]]&lt;br /&gt;
* [[S15: Self-Balancing Robot]]&lt;br /&gt;
* [[S15: MP3 Player with Graphic Equalizer Display]]&lt;br /&gt;
* [[S15: Motion-Controlled RC Car]]&lt;br /&gt;
* [[S15: MENL (Monster Encounter Night Light) ]]&lt;br /&gt;
* [[S15: Tilt Motion Controlled LED Alarm Clock]]&lt;br /&gt;
* [[S15: Alarm Based Coffee Maker]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE244 Spring 2014 | Spring 2014]] ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
*  Senior Project: [[Project Advising: Remote Security System]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
* [[S14: Quadcopter]]&lt;br /&gt;
* [[S14: Smart Weather Clock]]&lt;br /&gt;
* [[S14: Divine WINd]]&lt;br /&gt;
* [[S14: Data Acquisition using CAN bus]]&lt;br /&gt;
* [[S14: E-Ink Display for Shopping Tags]]&lt;br /&gt;
* [[S14: Spectrum Analyzer for Audio Frequency Signals]]&lt;br /&gt;
* [[S14: CAN Firmware Uploader]]&lt;br /&gt;
* [[S14: Asset Management and Location System]]&lt;br /&gt;
* [[S14: Location  Tracker]]&lt;br /&gt;
* [[S14:  Androbot]]&lt;br /&gt;
* [[S14: Virtual Dog]]&lt;br /&gt;
* [[S14: Android based Automation]]&lt;br /&gt;
* [[S14: FaceTime Robo]]&lt;br /&gt;
* [[S14: Wireless Control Car]]&lt;br /&gt;
* [[S14: Power Efficient Security Door System for Light-rail using CAN Bus]]&lt;br /&gt;
* [[S14: Android based home monitoring system]]&lt;br /&gt;
* [[S14: Need For Speed]]&lt;br /&gt;
&lt;br /&gt;
CmpE146&lt;br /&gt;
* [[S14: Hyperintelligent NFC Locker of the Future]]&lt;br /&gt;
* [[S14: Smart Planter]]&lt;br /&gt;
* [[S14: Modular Security System]]&lt;br /&gt;
* [[S14: Autonomous Control System]]&lt;br /&gt;
* [[S14: Anti-Crash Car]]&lt;br /&gt;
* [[S14: Tricopter]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE240 Fall 2013 | Fall 2013]] ===&lt;br /&gt;
&lt;br /&gt;
* [[F13: POV Display]]&lt;br /&gt;
* [[F13: Line Following Robot]]&lt;br /&gt;
* [[F13: LED Display]]&lt;br /&gt;
* [[F13: Bulb Ramper]]&lt;br /&gt;
* [[F13: Garage Parking Assistant]]&lt;br /&gt;
* [[F13: Quadcopter]]&lt;br /&gt;
* [[F13: BarkMaster2000]]&lt;br /&gt;
* [[F13: Remote Control Car]]&lt;br /&gt;
* [[F13: Obstacle Avoidance Robot]]&lt;br /&gt;
* [[F13: Vehicle On Board Diagnostics]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE146 Spring 2013 | Spring 2013]] ===&lt;br /&gt;
&lt;br /&gt;
* [[S13: 2D Plotter]]&lt;br /&gt;
* [[S13: Smart Cube]]&lt;br /&gt;
* [[S13: Garage Parking Aid]]&lt;br /&gt;
* [[S13: Smart Security]]&lt;br /&gt;
* [[S13: Door Alarm System]]&lt;br /&gt;
* [[S13: Solar Panel Tracker]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE146 Fall 2012|Fall 2012]] ===&lt;br /&gt;
&lt;br /&gt;
* [[F12: Evil Watchdog]]&lt;br /&gt;
* [[F12: Smart Bulb]]&lt;br /&gt;
* [[F12: All Your Base are Belong to You]]&lt;br /&gt;
* [[F12: Android Controlled MP3]]&lt;br /&gt;
* [[F12: Unified Wireless Health Monitoring System]]&lt;br /&gt;
* [[F12: OBD-II Android Monitor]]&lt;br /&gt;
* [[F12: Self-Driving GPS Following Car]]&lt;br /&gt;
* [[F12: Android Door Lock]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE146 Spring 2012|Spring 2012]] ===&lt;br /&gt;
*  [[S12: FreeRTOS based QuadCopter]]&lt;br /&gt;
*  [[S12: Web-based MP3 Player]]&lt;br /&gt;
*  [[S12: Self Drive Car]]&lt;br /&gt;
*  [[S12: VAndroid]]&lt;br /&gt;
*  [[S12: Traffic Light Sensing Vehicle]]&lt;br /&gt;
*  [[S12: Sound Reader]]&lt;br /&gt;
*  [[S12: Remote Controlled MP3 Player]]&lt;br /&gt;
*  [[S12: Android Controlled Robot]]&lt;br /&gt;
*  [[S12: Eyes-Free GPS]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Handy References ==&lt;br /&gt;
*  [[Sample Project Report]]&lt;br /&gt;
*  [[Project Proposal Guidelines]]&lt;br /&gt;
*  [[CmpE146 Lab. Resources]]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=Realtime_OS_on_Embedded_Systems&amp;diff=34228</id>
		<title>Realtime OS on Embedded Systems</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=Realtime_OS_on_Embedded_Systems&amp;diff=34228"/>
				<updated>2016-12-21T04:42:07Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /*  Fall 2016 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Program History ==&lt;br /&gt;
My contribution in Embedded System courses started with CmpE146.  This course teaches students on how to write UART, SPI, and I2C Drivers and interface their drivers to peripherals.  There are about 8 weekly labs in which students not only write drivers, but also learn the core of Real-time Operating Systems including threading (tasks), and inter-task communication using Queues and Semaphores.  FreeRTOS is the operating system used with C/C++ Compiler based on GNU.&lt;br /&gt;
&lt;br /&gt;
When the course was started by Dr. Ozemek @ SJSU (sometime before 2005), not many resources were out there.  Still, with helpful guidance from Dr. Ozemek, interesting projects were created.  This is when I started to help out in Embedded System Courses, and by collecting and sharing knowledge, we've raised the bar at SJSU!  &lt;br /&gt;
&lt;br /&gt;
There have been many great projects at SJSU, but since no one knew about them, the hard work went to a waste for anyone but the creator.  But now we've got the infrastructure to share the projects, which turn out as great references for future students.  Here is my project that started around 2007, and turned into Bachelor's Senior Design Project: &amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.youtube.com/watch?v=QEadXdRl3ws&amp;amp;feature=plcp YouTube Video of Self-Navigating Car]&lt;br /&gt;
&lt;br /&gt;
As of 2013, I have broadened my contribution to other embedded system courses like CmpE240, CmpE243 and CmpE244.&lt;br /&gt;
&lt;br /&gt;
== Lab Assignments ==&lt;br /&gt;
This article contains laboratory assignments and resources.  The assignments are under construction as we move towards SJ-One development board.&lt;br /&gt;
*  [[Embedded System Tutorial GPIO | Lesson 1 : GPIO]]&lt;br /&gt;
*  [[Embedded System Tutorial UART | Lesson 2 : UART]]&lt;br /&gt;
*  [[Embedded System Tutorial SPI  | Lesson 3 : SPI]]&lt;br /&gt;
*  [[Embedded System I2C Tutorial  | Lesson 4 : I2C]]&lt;br /&gt;
*  [[Embedded System Tutorial Interrupts | Lesson 5 : Interrupts]]&lt;br /&gt;
*  [[Embedded System Tutorial FreeRTOS | Lesson 6 : FreeRTOS Tasks]]&lt;br /&gt;
*  [[Embedded System Tutorial File I/O | Lesson 7 : FreeRTOS Application Programming]]&lt;br /&gt;
&lt;br /&gt;
==Other reference articles==&lt;br /&gt;
*  [[Bitmasking Tutorial]] (+ GPIO Example)&lt;br /&gt;
*  [[ LPC17xx Memory Map &amp;amp; Interrupts]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR/&amp;gt;&lt;br /&gt;
== Senior Design Projects ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR/&amp;gt;&lt;br /&gt;
== Semester Projects ==&lt;br /&gt;
Every semester, students are given about 7-10 weeks to complete their projects.  During this short time-span, students form groups, order parts, and begin working on their projects.  The work performed during the semester is documented at this Wiki.&lt;br /&gt;
&lt;br /&gt;
Here is the list of Preet's documented projects:&amp;lt;BR/&amp;gt;&lt;br /&gt;
*  [[Preet's Relay Controller Project]]&lt;br /&gt;
*  [[Nordic Low Powered Mesh Network stack]]&lt;br /&gt;
*  [http://www.youtube.com/watch?v=QEadXdRl3ws&amp;amp;feature=plcp Senior Design Project (MS-CmpE) Video]&lt;br /&gt;
&lt;br /&gt;
Here is another resource for good project references :&lt;br /&gt;
[http://people.ece.cornell.edu/land/courses/ece4760/FinalProjects/ Cornell EE476 Projects]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
=== Appendix ===&lt;br /&gt;
=== [[Fall 2016 | Fall 2016]] ===&lt;br /&gt;
&lt;br /&gt;
CMPE146:&lt;br /&gt;
* Add Your Group on Here, then follow the link to add more to your template *&lt;br /&gt;
* [http://www.socialledge.com/sjsu/index.php?title=F16:_Seismograph F16: Seismograph]&lt;br /&gt;
* [[F16: Piano Glove]]&lt;br /&gt;
* [[F16: Object Detector]]&lt;br /&gt;
* [[F16: Autonomous Nautical System]]&lt;br /&gt;
* [[F16: Autonomous Fire Extinguishing Vehicle]]&lt;br /&gt;
* [[F16: Autonomous Runaway Alarm Car]]&lt;br /&gt;
* [[F16: E-Bike]]&lt;br /&gt;
* [[F16: NotifyBox]]&lt;br /&gt;
* [[F16: Wireless Tilt Controlled Camera Arm]]&lt;br /&gt;
* [[F16: OBD2 Reader]]&lt;br /&gt;
* [[F16: Micro Watch Monitoring System]]&lt;br /&gt;
* [[F16: Door Alarm System]]&lt;br /&gt;
* [[http://www.socialledge.com/sjsu/index.php?title=F16:i2coffee F16: UART Coffee]]&lt;br /&gt;
* [[F16: Real Time Traffic Control System (RTTCS)]]&lt;br /&gt;
&lt;br /&gt;
=== [[Spring 2016 | Spring 2016]] ===&lt;br /&gt;
*  [[S16: Fantastic Four]]&lt;br /&gt;
*  [[S16: Simpsons]]&lt;br /&gt;
*  [[S16: Mars 1]]&lt;br /&gt;
*  [[S16: OpenSJ Bluz]]&lt;br /&gt;
*  [[S16: Motion Copy Bot]]&lt;br /&gt;
*  [[S16: Biker Assist]]&lt;br /&gt;
*  [[S16: Helios]]&lt;br /&gt;
*  [[S16: Sound Buddy]]&lt;br /&gt;
*  [[S16: Warriors]]&lt;br /&gt;
*  [[S16: Expendables]]&lt;br /&gt;
*  [[S16: Ahava]]&lt;br /&gt;
*  [[S16: Number 1]]&lt;br /&gt;
*  [[S16: SkyNet]]&lt;br /&gt;
*  [[S16: SmartDoorLock]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cmpe 146:&lt;br /&gt;
*  [[S16: Camera Gimbal]]&lt;br /&gt;
*  [[S16: Laser Harp]]&lt;br /&gt;
*  &amp;lt;strike&amp;gt;[[S16: Laser Cutter Motor Controller]]&amp;lt;/strike&amp;gt;&lt;br /&gt;
*  [[S16: Sprinkler]]&lt;br /&gt;
*  [[S16: The Jatrick Car]]&lt;br /&gt;
*  [[S16: Dan]]&lt;br /&gt;
*  [[S16: Robolamp]]&lt;br /&gt;
*  [[S16: Pinball]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [[Fall 2015 | Fall 2015]] ===&lt;br /&gt;
&lt;br /&gt;
CmpE146:&lt;br /&gt;
* [[F15: Autonomous Mobile]]&lt;br /&gt;
* [[F15: Car Report]]&lt;br /&gt;
* [[F15: Electronic Piano]]&lt;br /&gt;
* [[F15: Doorknock over Bluetooth]]&lt;br /&gt;
* [[F15: Smart Car]]&lt;br /&gt;
* [[F15: Plant Control]]&lt;br /&gt;
* [[F15: Laser Security System]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE244 Spring 2015 | Spring 2015]] ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
* [[S15: Quadcopter - It flies]]&lt;br /&gt;
* [[S15: Remote Learner]]&lt;br /&gt;
* [[S15: Protocol Interface: I2C - CAN Bridge]]&lt;br /&gt;
* [[S15: Vision RC Car]]&lt;br /&gt;
* [[S15: SJeight Octocopter]]&lt;br /&gt;
* [[S15: Swarm Robots]]&lt;br /&gt;
* [[S15: Smart Sparta Parking System]]&lt;br /&gt;
* [[S15: Touch Navigator]]&lt;br /&gt;
* [[S15: Wizard's Chess System]]&lt;br /&gt;
* [[S15: Bug Rider]]&lt;br /&gt;
* [[S15: Real Time Brake Assist (RTBA)]]&lt;br /&gt;
* [[S15: Wireless Mesh Network]]&lt;br /&gt;
* [[S15: Wireless Power Transfer System]]&lt;br /&gt;
* [[S15: Drone]]&lt;br /&gt;
* [[S15: Tree Node using Google Protocol Buffers]]&lt;br /&gt;
* [[S15: Multi-media Car]]&lt;br /&gt;
* [[S15: Hand Gesture Recognition using IR Sensors]]&lt;br /&gt;
* [[S15: CAN controlled RGB LED cubes]]&lt;br /&gt;
* [[S15: Rubik's Cube Solver]]&lt;br /&gt;
* [[S15: RFID Security Box]]&lt;br /&gt;
* [[S15: Automated Meeting Room Reservation]]&lt;br /&gt;
* [[S15: Patient Buddy System (PBS)]]&lt;br /&gt;
&lt;br /&gt;
CmpE146:&lt;br /&gt;
* [[S15: Hovercopter]]&lt;br /&gt;
* [[S15: Triclops: Smart RC Car]]&lt;br /&gt;
* [[S15: Connect Four - Robotic Player]]&lt;br /&gt;
* [[S15: Self-Balancing Robot]]&lt;br /&gt;
* [[S15: MP3 Player with Graphic Equalizer Display]]&lt;br /&gt;
* [[S15: Motion-Controlled RC Car]]&lt;br /&gt;
* [[S15: MENL (Monster Encounter Night Light) ]]&lt;br /&gt;
* [[S15: Tilt Motion Controlled LED Alarm Clock]]&lt;br /&gt;
* [[S15: Alarm Based Coffee Maker]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE244 Spring 2014 | Spring 2014]] ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
*  Senior Project: [[Project Advising: Remote Security System]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
* [[S14: Quadcopter]]&lt;br /&gt;
* [[S14: Smart Weather Clock]]&lt;br /&gt;
* [[S14: Divine WINd]]&lt;br /&gt;
* [[S14: Data Acquisition using CAN bus]]&lt;br /&gt;
* [[S14: E-Ink Display for Shopping Tags]]&lt;br /&gt;
* [[S14: Spectrum Analyzer for Audio Frequency Signals]]&lt;br /&gt;
* [[S14: CAN Firmware Uploader]]&lt;br /&gt;
* [[S14: Asset Management and Location System]]&lt;br /&gt;
* [[S14: Location  Tracker]]&lt;br /&gt;
* [[S14:  Androbot]]&lt;br /&gt;
* [[S14: Virtual Dog]]&lt;br /&gt;
* [[S14: Android based Automation]]&lt;br /&gt;
* [[S14: FaceTime Robo]]&lt;br /&gt;
* [[S14: Wireless Control Car]]&lt;br /&gt;
* [[S14: Power Efficient Security Door System for Light-rail using CAN Bus]]&lt;br /&gt;
* [[S14: Android based home monitoring system]]&lt;br /&gt;
* [[S14: Need For Speed]]&lt;br /&gt;
&lt;br /&gt;
CmpE146&lt;br /&gt;
* [[S14: Hyperintelligent NFC Locker of the Future]]&lt;br /&gt;
* [[S14: Smart Planter]]&lt;br /&gt;
* [[S14: Modular Security System]]&lt;br /&gt;
* [[S14: Autonomous Control System]]&lt;br /&gt;
* [[S14: Anti-Crash Car]]&lt;br /&gt;
* [[S14: Tricopter]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE240 Fall 2013 | Fall 2013]] ===&lt;br /&gt;
&lt;br /&gt;
* [[F13: POV Display]]&lt;br /&gt;
* [[F13: Line Following Robot]]&lt;br /&gt;
* [[F13: LED Display]]&lt;br /&gt;
* [[F13: Bulb Ramper]]&lt;br /&gt;
* [[F13: Garage Parking Assistant]]&lt;br /&gt;
* [[F13: Quadcopter]]&lt;br /&gt;
* [[F13: BarkMaster2000]]&lt;br /&gt;
* [[F13: Remote Control Car]]&lt;br /&gt;
* [[F13: Obstacle Avoidance Robot]]&lt;br /&gt;
* [[F13: Vehicle On Board Diagnostics]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE146 Spring 2013 | Spring 2013]] ===&lt;br /&gt;
&lt;br /&gt;
* [[S13: 2D Plotter]]&lt;br /&gt;
* [[S13: Smart Cube]]&lt;br /&gt;
* [[S13: Garage Parking Aid]]&lt;br /&gt;
* [[S13: Smart Security]]&lt;br /&gt;
* [[S13: Door Alarm System]]&lt;br /&gt;
* [[S13: Solar Panel Tracker]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE146 Fall 2012|Fall 2012]] ===&lt;br /&gt;
&lt;br /&gt;
* [[F12: Evil Watchdog]]&lt;br /&gt;
* [[F12: Smart Bulb]]&lt;br /&gt;
* [[F12: All Your Base are Belong to You]]&lt;br /&gt;
* [[F12: Android Controlled MP3]]&lt;br /&gt;
* [[F12: Unified Wireless Health Monitoring System]]&lt;br /&gt;
* [[F12: OBD-II Android Monitor]]&lt;br /&gt;
* [[F12: Self-Driving GPS Following Car]]&lt;br /&gt;
* [[F12: Android Door Lock]]&lt;br /&gt;
&lt;br /&gt;
=== [[CmpE146 Spring 2012|Spring 2012]] ===&lt;br /&gt;
*  [[S12: FreeRTOS based QuadCopter]]&lt;br /&gt;
*  [[S12: Web-based MP3 Player]]&lt;br /&gt;
*  [[S12: Self Drive Car]]&lt;br /&gt;
*  [[S12: VAndroid]]&lt;br /&gt;
*  [[S12: Traffic Light Sensing Vehicle]]&lt;br /&gt;
*  [[S12: Sound Reader]]&lt;br /&gt;
*  [[S12: Remote Controlled MP3 Player]]&lt;br /&gt;
*  [[S12: Android Controlled Robot]]&lt;br /&gt;
*  [[S12: Eyes-Free GPS]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Handy References ==&lt;br /&gt;
*  [[Sample Project Report]]&lt;br /&gt;
*  [[Project Proposal Guidelines]]&lt;br /&gt;
*  [[CmpE146 Lab. Resources]]&lt;/div&gt;</summary>
		<author><name>146 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34218</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34218"/>
				<updated>2016-12-21T04:24:55Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Parts List &amp;amp; Cost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parts List &amp;amp; Cost ==&lt;br /&gt;
&amp;lt;center&amp;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;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34217</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34217"/>
				<updated>2016-12-21T04:24:40Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Schedule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;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;| Item&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34216</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34216"/>
				<updated>2016-12-21T04:24:12Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Schedule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;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;| Item&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34215</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34215"/>
				<updated>2016-12-21T04:23:54Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Team Members &amp;amp; Responsibilities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;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;| Item&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34214</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34214"/>
				<updated>2016-12-21T04:21:03Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Hardware Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
== Schedule ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;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;| Item&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Interfacing&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34213</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34213"/>
				<updated>2016-12-21T04:19:48Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Hardware Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
== Schedule ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;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;| Item&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor (st953)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors(10Ω and 1kΩ)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Building&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34212</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34212"/>
				<updated>2016-12-21T04:18:27Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Design &amp;amp; Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
== Schedule ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;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;| Item&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Building&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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 pseudocode 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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34211</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34211"/>
				<updated>2016-12-21T04:17:08Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Design &amp;amp; Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
== Schedule ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;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;| Item&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Building&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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 user7</name></author>	</entry>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34210</id>
		<title>F16: I2Coffee</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=F16:_I2Coffee&amp;diff=34210"/>
				<updated>2016-12-21T04:15:31Z</updated>
		
		<summary type="html">&lt;p&gt;146 user7: /* Schedule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Mixing coffee has been a part of many people in their morning. UART Coffee aims to make that process more enjoyable. UART Coffee is a coffee maker machine that allows its user to pick from different types of coffee powders and a desired temperature.&lt;br /&gt;
&lt;br /&gt;
== Objectives &amp;amp; Introduction ==&lt;br /&gt;
The objective of this project was to create a coffee making machine that was included two microcontrollers communicating with each other. A list of high-level objectives will be listed below.&lt;br /&gt;
&lt;br /&gt;
*  Establish communication between 2 microcontrollers using UART&lt;br /&gt;
*  User interaction with the machine through the use of the buttons&lt;br /&gt;
*  Alarm user when the coffee has reached the desired temperature&lt;br /&gt;
*  Learn to interface different I/O components with the SJSU One board&lt;br /&gt;
*  Program servo motors to allow flow of the different coffee flavors&lt;br /&gt;
*  Attach a cooling system so that the coffee's temperature drops if it is desired&lt;br /&gt;
*  Add a DC Motor so we are able to stir the coffee&lt;br /&gt;
&lt;br /&gt;
=== Team Members &amp;amp; Responsibilities ===&lt;br /&gt;
*  &amp;lt;b&amp;gt;Man Hin Wong&amp;lt;/b&amp;gt;  &lt;br /&gt;
*  Email: wongmanhin@msn.com&lt;br /&gt;
*  Implementation, code development, and testing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*  &amp;lt;b&amp;gt;Mauricio Rivera&amp;lt;/b&amp;gt;&lt;br /&gt;
*  Email: mauricio.rivera1993@yahoo.com&lt;br /&gt;
*  Design, code development, and implementation &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
== Schedule ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Week#&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Date&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Task&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Actual&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 1&lt;br /&gt;
| 11/4&lt;br /&gt;
| Finalize schedule and materials.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 2&lt;br /&gt;
| 11/11&lt;br /&gt;
| Design schematic with slave and master board.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 3&lt;br /&gt;
| 11/18&lt;br /&gt;
| Test code and enhance it.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 4&lt;br /&gt;
| 11/25&lt;br /&gt;
| Debug and enhance code.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5&lt;br /&gt;
| 12/2&lt;br /&gt;
| Start building project.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 6&lt;br /&gt;
| 12/9&lt;br /&gt;
| Test prototype.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Done&amp;lt;/font&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 7&lt;br /&gt;
| 12/16&lt;br /&gt;
| Finalize project and demo.&lt;br /&gt;
| &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Pending.&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;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;| Item&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Cost (1)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| SJSU One Board&lt;br /&gt;
| 2&lt;br /&gt;
| $80&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V DC Motors&lt;br /&gt;
| 2&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 5V Servos&lt;br /&gt;
| 2&lt;br /&gt;
| $3&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Shoe Box&lt;br /&gt;
| 1&lt;br /&gt;
| $0&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| 12V Fan&lt;br /&gt;
| 1&lt;br /&gt;
| $2&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Transistor (ST953)&lt;br /&gt;
| 2&lt;br /&gt;
| $1&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Resistors&lt;br /&gt;
| 3&lt;br /&gt;
| $0.30&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Hardware Design ===&lt;br /&gt;
&amp;lt;b&amp;gt;Block diagram&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:uartcoffeeBlockDiagram.PNG|500px|thumb|left|Figure 1. UART Coffee's block diagram]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Hardware Interface ===&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Used&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transistor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistors&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v DC Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;12V Fan&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;5v Step Motor&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Water Valve&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Bread Board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Jumper Cables&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Building&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coffee making machine uses [http://www.socialledge.com/sjsu/index.php?title=Embedded_System_Tutorial_UART UART]to establish communication between two microcontrollers using their Tx and Rx pins. The first SJSUOne board is used to control the motor to stir the coffee, step motor for coffee powder flow, and the cooling system. The second motor is used to control the switches for user interaction and also to transmit temperature data to the first board. Since the boards can only supply 3.3V, a transistor connected to 5V was used so that the different I/O components can receive their appropriate voltage. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware Pin Out&amp;lt;/b&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| I/O&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Pin(s)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Name&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 1&lt;br /&gt;
| P0.29, P0.30&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Step Motor 2&lt;br /&gt;
| P1.22, P1.23&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Cooling Fan&lt;br /&gt;
| P0.1&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| DC Motor&lt;br /&gt;
| P0.0&lt;br /&gt;
| GPIO&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&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;
The software of this machine is designed to interact with the user so that the user's needs are met. The buttons on the board are programmed to control the options for coffee beans, temperature, and the mixing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Implementation ===&lt;br /&gt;
&lt;br /&gt;
Inserting a transistor between the SJSUOne board and the I/O component helped to control the component and activate it when needed.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;b&amp;gt;Motors and Transistor Interface&amp;lt;/b&amp;gt;&lt;br /&gt;
[[File:i2coffeeTransistorMotor.PNG|500px|thumb|left|Figure 2. Transistors and Motors connected.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Connecting Transitor to I/O component&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Connect power supply (5V) to bread board&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Emmitter is connected to resistor (&amp;lt;200 Ohms)&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Resistor connects to board's GPIO pin&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Base pin Connected to component's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Component's Vcc connected to power supply&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Collector pin goes to power supply's ground&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing &amp;amp; Technical Challenges==&lt;br /&gt;
&lt;br /&gt;
=== My Issue #1 ===&lt;br /&gt;
Some of the GPIO Pins cannot support enough current or voltage for our I/O devices. For example, when wanting to control a motor by the board, we couldn't get it done by simply connecting directly to the board because the pin supplies 3.3V and 0.1A.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
Connecting a transistor between the motor and the SJSUOne board allowed the board to have control over the device and activate it when needed.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #2 ===&lt;br /&gt;
Our coffee machine encountered a problem when wanting the coffee powder to slide down to the cup. This did not let the powder get to the cup, so our design could not function correctly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We tilted our design to a 45-degree angle to that our ramp is steep enough to get the coffee powder into the cup.&lt;br /&gt;
&lt;br /&gt;
=== My Issue #3 ===&lt;br /&gt;
We wanted to have a water control system so that our coffee machine can provide water. Adding liquids to the design can be dangerous because it can cause a short circuit and mess the entire project up.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt; We added a water valve to the opposite side of the circuit. This allowed enough space between any wire and the water.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Conclude your project here.  You can recap your testing and problems.  You should address the &amp;quot;so what&amp;quot; part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?&lt;br /&gt;
&lt;br /&gt;
The coffee making machine was a learning experience and we learned to interface different components to the SJSUOne board.&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;
We would like to thank Preet and Professor Ozemek for helping us throughout the class. Also, thank Kenneth and Amy for supporting us during the days that we worked on this project. Finally, we want to thank professor Harry Li for allowing us to use Engr 268 as a working space.&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 user7</name></author>	</entry>

	</feed>