# cache_field

cid: field:node:62
data:
  a:1:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:17864:"<h2 id="contents" style="font-family: Arial; font-size: 15px; margin: 6px;"><span style="font-size: medium;"><span class="c1" style="font-family: verdana,geneva;">RFID Kit Step 1: wiring up the LCD</span></span></h2><div style="font-family: Arial; font-size: 15px; margin: 6px;"><span style="font-size: medium;"><span class="c1" style="font-family: verdana,geneva;"><br /></span></span></div><div id="contents" style="font-family: Arial; font-size: 15px; margin: 6px;"><p class="c5" style="direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;">Below is the wiring diagram for connecting up a <a href="http://www.hobbyist.co.nz/?q=lcd-1620" target="_blank" title="Blue Backlit LCD display ( 16x2 characters )">LCD screen</a>, a buzzer and a button.</span></p><p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">Connecting of the LCD screen is the same the LadyAda&nbsp;</span><span class="c18 c1" style="color: #1155cc; text-decoration: underline;"><a href="http://www.ladyada.net/learn/lcd/charlcd.html" title="LadyADA LCD tutorial" class="c10" style="text-decoration: inherit;">Wiring up a character LCD to an Arduino</a></span><span class="c1">. &nbsp;So I will not cover the ins and outs of that and just deal with the custom characters, buzzer and the button.</span></span></p><p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">We use custom characters to display a countdown bar, each character is made up of 7 rows and 5 columns. &nbsp;</span><span class="c1">Below is a representation of the custom characters used from full to blank.</span></span></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><br /></span></span></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><img src="/sites/default/files/pictures/rfid_LCD_counts.png" border="0" alt="LCD screen display for count down" width="576" height="122" /></span></span></p><p class="c5" style="direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;">&nbsp;</span><span class="c1" style="font-family: verdana, geneva; font-size: medium;">&nbsp;</span></p><p class="c5" style="direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;">A line of 16 full custom characters are printed to the LCD, then one by one the last character on the display is replaced with the next custom character until it becomes blank and it moves onto reducing the next screen character position.</span></p><p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p><p class="c5" style="direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;">As each segment is removed Pin 13 is changed from HIGH to LOW or LOW to HIGH causing the speaker to beep.</span></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">On the wiring diagram you can see I used a 200</span><span class="c1 c14 c7" style="color: #222222;">Ω resistor connected to the speaker so it’s not too alarming.</span></span></p><p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">To start the LCD count down you just put the button. &nbsp;This button is wired up with a&nbsp;</span><span class="c18 c1" style="color: #1155cc; text-decoration: underline;"><a href="http://ikalogic.com/debouncing.php" class="c10" style="text-decoration: inherit;">hardware debounce,</a></span></span></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">which consists of a 10k</span><span class="c1 c7 c14" style="color: #222222;">Ω resistor and a 100nF ceramic capacitor.</span></span></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1 c7 c14" style="color: #222222;">Hint: if the count down starts right away without the button pressed, double check the wiring of the button for all connections.<br /></span></span></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1 c7 c14" style="color: #222222;"><br /></span></span></p><p class="c5" style="direction: ltr; margin: 0px;"><a href="/sites/default/files/pictures/lcd_button_buzz.png"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1 c7 c14" style="color: #222222;"><img src="/sites/default/files/pictures/lcd_button_buzz.png" border="0" alt="Wiring details" width="660" height="319" /></span></span></a></p><p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"><span style="color: #333333; font-family: Verdana; font-size: 12px; line-height: 15px; white-space: pre-wrap; background-color: #fcfcfc;">Click to see larger Image</span></p><p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;</span></p><p class="c5" style="direction: ltr; margin: 0px;"><a href="/sites/default/files/pictures/RFID_kit/Step1_LCD%20%28Medium%29.jpg"><span style="font-family: verdana, geneva; font-size: medium;"><img src="/sites/default/files/pictures/RFID_kit/Step1_LCD%20%28Medium%29.jpg" border="0" alt="step1_LCD" title="step1_LCD" width="641" height="554" /></span></a></p><table class="c20" style="font-family: Arial; font-size: 15px; border-collapse: collapse; width: 660px;" cellpadding="0" cellspacing="0"><tbody><tr><td class="c19" style="vertical-align: middle; width: 555.3pt; background-color: #fce5cd; border-width: 1pt; border-color: #000000; border-style: solid; padding: 5pt;"><p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;">// &nbsp;LCD count down with button and beeper.</span></p><p class="c4 c12" style="line-height: 1; direction: ltr; height: 11pt; margin: 0px;"></p><p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">#include &lt;</span><span class="c0" style="color: #cc6600;">LiquidCrystal</span><span class="c1">.h&gt;<br /><br /></span><span class="c1 c3" style="color: #7e7e7e;">// initialize the library with the numbers of the interface pins</span><span class="c1"><br /></span><span class="c0" style="color: #cc6600;">LiquidCrystal</span><span class="c1">&nbsp;lcd(7, 8, 9, 10, 11, 12);<br /><br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1">&nbsp;ch0[8]={B11111,B11111,B11111,B11111,B11111,B11111,B11111,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1">&nbsp;ch1[8]={B11110,B11110,B11110,B11110,B11110,B11110,B11110,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1">&nbsp;ch2[8]={B11100,B11100,B11100,B11100,B11100,B11100,B11100,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1">&nbsp;ch3[8]={B11000,B11000,B11000,B11000,B11000,B11000,B11000,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1">&nbsp;ch4[8]={B10000,B10000,B10000,B10000,B10000,B10000,B10000,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1">&nbsp;ch5[8]={B00000,B00000,B00000,B00000,B00000,B00000,B00000,0};<br />&nbsp;&nbsp;<br /></span><span class="c0" style="color: #cc6600;">int</span><span class="c1">&nbsp;beeper = 0; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// Beeper flag. 0 = off</span><span class="c1"><br /><br /></span><span class="c0" style="color: #cc6600;">void</span><span class="c1">&nbsp;</span><span class="c0 c2" style="color: #cc6600; font-weight: bold;">setup</span><span class="c1">()<br />{<br />&nbsp;</span><span class="c0" style="color: #cc6600;">pinMode</span><span class="c1">(13,&nbsp;</span><span class="c1 c8" style="color: #006699;">OUTPUT</span><span class="c1">); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// Door beeper</span><span class="c1"><br />&nbsp;</span><span class="c0" style="color: #cc6600;">pinMode</span><span class="c1">(A5,&nbsp;</span><span class="c1 c8" style="color: #006699;">INPUT</span><span class="c1">); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// Button input</span><span class="c1"><br /><br />&nbsp;lcd.</span><span class="c0" style="color: #cc6600;">begin</span><span class="c1">(16, 2); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// Set up the LCD's number of columns and rows:&nbsp;</span><span class="c1"><br />&nbsp;lcd.</span><span class="c0" style="color: #cc6600;">print</span><span class="c1">(</span><span class="c1 c8" style="color: #006699;">"LCD Button test"</span><span class="c1">); &nbsp; &nbsp;&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// Print startup message to the LCD.</span><span class="c1"><br /><br />&nbsp;</span><span class="c0 c2" style="color: #cc6600; font-weight: bold;">Serial</span><span class="c1">.</span><span class="c0" style="color: #cc6600;">begin</span><span class="c1">(19200); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// Serial debugging 19200 baud,&nbsp;</span><span style="color: #7e7e7e; line-height: 16px;">the speed the RFID card communicates at.</span><span style="color: #7e7e7e; line-height: 1;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></span></p><p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">&nbsp;</span><span class="c0 c2" style="color: #cc6600; font-weight: bold;">Serial</span><span class="c1">.</span><span class="c0" style="color: #cc6600;">println</span><span class="c1">(</span><span class="c1 c8" style="color: #006699;">"Serial Ready"</span><span class="c1">);<br />&nbsp;<br />&nbsp;lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(0, ch0); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// initialise our custom characters</span><span class="c1"><br />&nbsp;lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(1, ch1);<br />&nbsp;lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(2, ch2);<br />&nbsp;lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(3, ch3);<br />&nbsp;lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(4, ch4);<br />&nbsp;lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(5, ch5);<br />}&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// end setup</span><span class="c1"><br /></span></span></p><p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><br /></span></span></p><p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><br /></span><span class="c0" style="color: #cc6600;">void</span><span class="c1">&nbsp;</span><span class="c0 c2" style="color: #cc6600; font-weight: bold;">loop</span><span class="c1">()<br />{<br />&nbsp;</span><span class="c0" style="color: #cc6600;">boolean</span><span class="c1">&nbsp;buttonState =&nbsp;</span><span class="c0" style="color: #cc6600;">digitalRead</span><span class="c1">(A5);&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// get button state</span><span class="c1"><br />&nbsp;buttonState =! buttonState; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// Invert button state to match logic</span><span class="c1"><br />&nbsp;<br />&nbsp;</span><span class="c0" style="color: #cc6600;">if</span><span class="c1">&nbsp;(buttonState ==&nbsp;</span><span class="c0" style="color: #cc6600;">true</span><span class="c1">){<br />&nbsp; &nbsp;</span><span class="c0 c2" style="color: #cc6600; font-weight: bold;">Serial</span><span class="c1">.</span><span class="c0" style="color: #cc6600;">println</span><span class="c1">(buttonState);<br />&nbsp;<br />&nbsp; &nbsp;lcd.</span><span class="c0" style="color: #cc6600;">setCursor</span><span class="c1">(0, 1);<br />&nbsp; &nbsp;</span><span class="c0" style="color: #cc6600;">for</span><span class="c1">&nbsp;(</span><span class="c0" style="color: #cc6600;">int</span><span class="c1">&nbsp;i=0; i &lt;= 15; i++) &nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// print 16 block characters</span><span class="c1"><br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp;lcd.</span><span class="c0" style="color: #cc6600;">print</span><span class="c1">((</span><span class="c0" style="color: #cc6600;">char</span><span class="c1">) 0);<br />&nbsp; &nbsp;}<br />&nbsp; &nbsp;</span><span class="c0" style="color: #cc6600;">delay</span><span class="c1">(100);<br />&nbsp;<br />&nbsp; &nbsp;</span><span class="c0" style="color: #cc6600;">for</span><span class="c1">&nbsp;(</span><span class="c0" style="color: #cc6600;">int</span><span class="c1">&nbsp;i=15; i &gt;= 0; i--) &nbsp;</span></span></p><p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">&nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// loop through the 16 characters in row</span><span class="c1"><br />&nbsp; &nbsp; &nbsp;</span><span class="c0" style="color: #cc6600;">for</span><span class="c1">&nbsp;(</span><span class="c0" style="color: #cc6600;">int</span><span class="c1">&nbsp;c=0; c &lt;= 5; c++) &nbsp;</span></span></p><p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span style="font-family: verdana, geneva;"><span class="c1">&nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// loop through the 5 places that make up a character</span><span class="c1"><br />&nbsp; &nbsp; &nbsp; &nbsp;beeper=!beeper;<br />&nbsp; &nbsp; &nbsp; &nbsp;</span><span class="c0" style="color: #cc6600;">digitalWrite</span><span class="c1">(13, beeper);</span><span class="c1 c3" style="color: #7e7e7e;">// Turn beeper on or off</span><span class="c1"><br />&nbsp; &nbsp; &nbsp; &nbsp;lcd.</span><span class="c0" style="color: #cc6600;">setCursor</span><span class="c1">(i, 1);<br />&nbsp; &nbsp; &nbsp; &nbsp;lcd.</span><span class="c0" style="color: #cc6600;">print</span><span class="c1">((</span><span class="c0" style="color: #cc6600;">char</span><span class="c1">) c); &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// print our custom character</span><span class="c1"><br />&nbsp; &nbsp; &nbsp; &nbsp;</span><span class="c0" style="color: #cc6600;">delay</span><span class="c1">(100); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// the delays add up to about 8 seconds,&nbsp;</span><span class="c1"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// that's how long the door lock will be open for.</span><span class="c1"><br />&nbsp; &nbsp; &nbsp;}<br />&nbsp; &nbsp;}<br />&nbsp; &nbsp; &nbsp;</span><span class="c0" style="color: #cc6600;">digitalWrite</span><span class="c1">(13, 0); &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// set beeper off</span><span class="c1"><br />&nbsp;} &nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// end if button loop</span><span class="c1"><br />} &nbsp;&nbsp;</span><span class="c1 c3" style="color: #7e7e7e;">// end mail loop&nbsp;</span></span></span><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><br /></span></span></p><p class="c4 c12" style="line-height: 1; direction: ltr; height: 11pt; margin: 0px;"></p><p class="c4 c12" style="line-height: 1; direction: ltr; height: 11pt; margin: 0px;"></p></td></tr></tbody></table><p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p><p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p><p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"><strong><span style="font-size: large;"><a href="http://www.hobbyist.co.nz/?q=motorised-lock-control" title="Next Step">Next Step: motorised lock control</a></span></strong></p></div>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:16776:"<h2 id="contents" style="font-family: Arial; font-size: 15px; margin: 6px;"><span style="font-size: medium;"><span class="c1" style="font-family: verdana,geneva;">RFID Kit Step 1: wiring up the LCD</span></span></h2>
  <div style="font-family: Arial; font-size: 15px; margin: 6px;"><span style="font-size: medium;"><span class="c1" style="font-family: verdana,geneva;"><br /></span></span></div>
  <div id="contents" style="font-family: Arial; font-size: 15px; margin: 6px;">
  <p class="c5" style="direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;">Below is the wiring diagram for connecting up a <a href="http://www.hobbyist.co.nz/?q=lcd-1620" target="_blank" title="Blue Backlit LCD display ( 16x2 characters )">LCD screen</a>, a buzzer and a button.</span></p>
  <p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">Connecting of the LCD screen is the same the LadyAda </span><span class="c18 c1" style="color: #1155cc; text-decoration: underline;"><a href="http://www.ladyada.net/learn/lcd/charlcd.html" title="LadyADA LCD tutorial" class="c10" style="text-decoration: inherit;">Wiring up a character LCD to an Arduino</a></span><span class="c1">.  So I will not cover the ins and outs of that and just deal with the custom characters, buzzer and the button.</span></span></p>
  <p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">We use custom characters to display a countdown bar, each character is made up of 7 rows and 5 columns.  </span><span class="c1">Below is a representation of the custom characters used from full to blank.</span></span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><br /></span></span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><img src="/sites/default/files/pictures/rfid_LCD_counts.png" border="0" alt="LCD screen display for count down" width="576" height="122" /></span></span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;"> </span><span class="c1" style="font-family: verdana, geneva; font-size: medium;"> </span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;">A line of 16 full custom characters are printed to the LCD, then one by one the last character on the display is replaced with the next custom character until it becomes blank and it moves onto reducing the next screen character position.</span></p>
  <p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;">As each segment is removed Pin 13 is changed from HIGH to LOW or LOW to HIGH causing the speaker to beep.</span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">On the wiring diagram you can see I used a 200</span><span class="c1 c14 c7" style="color: #222222;">Ω resistor connected to the speaker so it’s not too alarming.</span></span></p>
  <p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">To start the LCD count down you just put the button.  This button is wired up with a </span><span class="c18 c1" style="color: #1155cc; text-decoration: underline;"><a href="http://ikalogic.com/debouncing.php" class="c10" style="text-decoration: inherit;">hardware debounce,</a></span></span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">which consists of a 10k</span><span class="c1 c7 c14" style="color: #222222;">Ω resistor and a 100nF ceramic capacitor.</span></span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1 c7 c14" style="color: #222222;">Hint: if the count down starts right away without the button pressed, double check the wiring of the button for all connections.<br /></span></span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1 c7 c14" style="color: #222222;"><br /></span></span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><a href="/sites/default/files/pictures/lcd_button_buzz.png"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1 c7 c14" style="color: #222222;"><img src="/sites/default/files/pictures/lcd_button_buzz.png" border="0" alt="Wiring details" width="660" height="319" /></span></span></a></p>
  <p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"><span style="color: #333333; font-family: Verdana; font-size: 12px; line-height: 15px; white-space: pre-wrap; background-color: #fcfcfc;">Click to see larger Image</span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"> </span></p>
  <p class="c5" style="direction: ltr; margin: 0px;"><a href="/sites/default/files/pictures/RFID_kit/Step1_LCD%20%28Medium%29.jpg"><span style="font-family: verdana, geneva; font-size: medium;"><img src="/sites/default/files/pictures/RFID_kit/Step1_LCD%20%28Medium%29.jpg" border="0" alt="step1_LCD" title="step1_LCD" width="641" height="554" /></span></a></p>
  <table class="c20" style="font-family: Arial; font-size: 15px; border-collapse: collapse; width: 660px;" cellpadding="0" cellspacing="0"><tbody><tr><td class="c19" style="vertical-align: middle; width: 555.3pt; background-color: #fce5cd; border-width: 1pt; border-color: #000000; border-style: solid; padding: 5pt;">
  <p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span class="c1" style="font-family: verdana, geneva; font-size: medium;">//  LCD count down with button and beeper.</span></p>
  <p class="c4 c12" style="line-height: 1; direction: ltr; height: 11pt; margin: 0px;"></p>
  <p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">#include &lt;</span><span class="c0" style="color: #cc6600;">LiquidCrystal</span><span class="c1">.h&gt;</span></span></p>
  <p><span class="c1 c3" style="color: #7e7e7e;">// initialize the library with the numbers of the interface pins</span><span class="c1"><br /></span><span class="c0" style="color: #cc6600;">LiquidCrystal</span><span class="c1"> lcd(7, 8, 9, 10, 11, 12);</span></p>
  <p><span class="c0" style="color: #cc6600;">byte</span><span class="c1"> ch0[8]={B11111,B11111,B11111,B11111,B11111,B11111,B11111,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1"> ch1[8]={B11110,B11110,B11110,B11110,B11110,B11110,B11110,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1"> ch2[8]={B11100,B11100,B11100,B11100,B11100,B11100,B11100,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1"> ch3[8]={B11000,B11000,B11000,B11000,B11000,B11000,B11000,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1"> ch4[8]={B10000,B10000,B10000,B10000,B10000,B10000,B10000,0};<br /></span><span class="c0" style="color: #cc6600;">byte</span><span class="c1"> ch5[8]={B00000,B00000,B00000,B00000,B00000,B00000,B00000,0};<br />  <br /></span><span class="c0" style="color: #cc6600;">int</span><span class="c1"> beeper = 0;                          </span><span class="c1 c3" style="color: #7e7e7e;">// Beeper flag. 0 = off</span><span class="c1"></span></p>
  <p><span class="c0" style="color: #cc6600;">void</span><span class="c1"> </span><span class="c0 c2" style="color: #cc6600; font-weight: bold;">setup</span><span class="c1">()<br />{<br /> </span><span class="c0" style="color: #cc6600;">pinMode</span><span class="c1">(13, </span><span class="c1 c8" style="color: #006699;">OUTPUT</span><span class="c1">);            </span><span class="c1 c3" style="color: #7e7e7e;">// Door beeper</span><span class="c1"><br /> </span><span class="c0" style="color: #cc6600;">pinMode</span><span class="c1">(A5, </span><span class="c1 c8" style="color: #006699;">INPUT</span><span class="c1">);                </span><span class="c1 c3" style="color: #7e7e7e;">// Button input</span><span class="c1"></span></p>
  <p> lcd.<span class="c0" style="color: #cc6600;">begin</span><span class="c1">(16, 2);                       </span><span class="c1 c3" style="color: #7e7e7e;">// Set up the LCD's number of columns and rows: </span><span class="c1"><br /> lcd.</span><span class="c0" style="color: #cc6600;">print</span><span class="c1">(</span><span class="c1 c8" style="color: #006699;">"LCD Button test"</span><span class="c1">);     </span><span class="c1 c3" style="color: #7e7e7e;">// Print startup message to the LCD.</span><span class="c1"></span></p>
  <p> <span class="c0 c2" style="color: #cc6600; font-weight: bold;">Serial</span><span class="c1">.</span><span class="c0" style="color: #cc6600;">begin</span><span class="c1">(19200);                </span><span class="c1 c3" style="color: #7e7e7e;">// Serial debugging 19200 baud, </span><span style="color: #7e7e7e; line-height: 16px;">the speed the RFID card communicates at.</span><span style="color: #7e7e7e; line-height: 1;">                                            </span></p>
  <p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"> </span><span class="c0 c2" style="color: #cc6600; font-weight: bold;">Serial</span><span class="c1">.</span><span class="c0" style="color: #cc6600;">println</span><span class="c1">(</span><span class="c1 c8" style="color: #006699;">"Serial Ready"</span><span class="c1">);<br /> <br /> lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(0, ch0);             </span><span class="c1 c3" style="color: #7e7e7e;">// initialise our custom characters</span><span class="c1"><br /> lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(1, ch1);<br /> lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(2, ch2);<br /> lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(3, ch3);<br /> lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(4, ch4);<br /> lcd.</span><span class="c0" style="color: #cc6600;">createChar</span><span class="c1">(5, ch5);<br />} </span><span class="c1 c3" style="color: #7e7e7e;">// end setup</span><span class="c1"><br /></span></span></p>
  <p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><br /></span></span></p>
  <p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><br /></span><span class="c0" style="color: #cc6600;">void</span><span class="c1"> </span><span class="c0 c2" style="color: #cc6600; font-weight: bold;">loop</span><span class="c1">()<br />{<br /> </span><span class="c0" style="color: #cc6600;">boolean</span><span class="c1"> buttonState = </span><span class="c0" style="color: #cc6600;">digitalRead</span><span class="c1">(A5); </span><span class="c1 c3" style="color: #7e7e7e;">// get button state</span><span class="c1"><br /> buttonState =! buttonState;                 </span><span class="c1 c3" style="color: #7e7e7e;">// Invert button state to match logic</span><span class="c1"><br /> <br /> </span><span class="c0" style="color: #cc6600;">if</span><span class="c1"> (buttonState == </span><span class="c0" style="color: #cc6600;">true</span><span class="c1">){<br />   </span><span class="c0 c2" style="color: #cc6600; font-weight: bold;">Serial</span><span class="c1">.</span><span class="c0" style="color: #cc6600;">println</span><span class="c1">(buttonState);<br /> <br />   lcd.</span><span class="c0" style="color: #cc6600;">setCursor</span><span class="c1">(0, 1);<br />   </span><span class="c0" style="color: #cc6600;">for</span><span class="c1"> (</span><span class="c0" style="color: #cc6600;">int</span><span class="c1"> i=0; i &lt;= 15; i++)  </span><span class="c1 c3" style="color: #7e7e7e;">// print 16 block characters</span><span class="c1"><br />   {<br />     lcd.</span><span class="c0" style="color: #cc6600;">print</span><span class="c1">((</span><span class="c0" style="color: #cc6600;">char</span><span class="c1">) 0);<br />   }<br />   </span><span class="c0" style="color: #cc6600;">delay</span><span class="c1">(100);<br /> <br />   </span><span class="c0" style="color: #cc6600;">for</span><span class="c1"> (</span><span class="c0" style="color: #cc6600;">int</span><span class="c1"> i=15; i &gt;= 0; i--)  </span></span></p>
  <p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1">    {                                    </span><span class="c1 c3" style="color: #7e7e7e;">// loop through the 16 characters in row</span><span class="c1"><br />     </span><span class="c0" style="color: #cc6600;">for</span><span class="c1"> (</span><span class="c0" style="color: #cc6600;">int</span><span class="c1"> c=0; c &lt;= 5; c++)  </span></span></p>
  <p class="c4" style="line-height: 1; direction: ltr; margin: 0px;"><span style="font-family: verdana, geneva; font-size: medium;"><span style="font-family: verdana, geneva;"><span class="c1">      {                       </span><span class="c1 c3" style="color: #7e7e7e;">// loop through the 5 places that make up a character</span><span class="c1"><br />       beeper=!beeper;<br />       </span><span class="c0" style="color: #cc6600;">digitalWrite</span><span class="c1">(13, beeper);</span><span class="c1 c3" style="color: #7e7e7e;">// Turn beeper on or off</span><span class="c1"><br />       lcd.</span><span class="c0" style="color: #cc6600;">setCursor</span><span class="c1">(i, 1);<br />       lcd.</span><span class="c0" style="color: #cc6600;">print</span><span class="c1">((</span><span class="c0" style="color: #cc6600;">char</span><span class="c1">) c);         </span><span class="c1 c3" style="color: #7e7e7e;">// print our custom character</span><span class="c1"><br />       </span><span class="c0" style="color: #cc6600;">delay</span><span class="c1">(100);                  </span><span class="c1 c3" style="color: #7e7e7e;">// the delays add up to about 8 seconds, </span><span class="c1"><br />                                         </span><span class="c1 c3" style="color: #7e7e7e;">// that's how long the door lock will be open for.</span><span class="c1"><br />     }<br />   }<br />     </span><span class="c0" style="color: #cc6600;">digitalWrite</span><span class="c1">(13, 0);         </span><span class="c1 c3" style="color: #7e7e7e;">// set beeper off</span><span class="c1"><br /> }  </span><span class="c1 c3" style="color: #7e7e7e;">// end if button loop</span><span class="c1"><br />}   </span><span class="c1 c3" style="color: #7e7e7e;">// end mail loop </span></span></span><span style="font-family: verdana, geneva; font-size: medium;"><span class="c1"><br /></span></span></p>
  <p class="c4 c12" style="line-height: 1; direction: ltr; height: 11pt; margin: 0px;"></p>
  <p class="c4 c12" style="line-height: 1; direction: ltr; height: 11pt; margin: 0px;"></p>
  </td>
  </tr></tbody></table><p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p>
  <p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"></p>
  <p class="c5 c12" style="direction: ltr; height: 11pt; margin: 0px;"><strong><span style="font-size: large;"><a href="http://www.hobbyist.co.nz/?q=motorised-lock-control" title="Next Step">Next Step: motorised lock control</a></span></strong></p>
  </div>
  ";s:12:"safe_summary";s:0:"";}}}}


cid: field:node:77
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:20106:"<h2><strong><span style="font-size: medium;">13.56MHz RFID module</span></strong></h2><p><span style="font-size: medium;">Interfacing this module to Arduino cannot be easier, it's in TTL serial interface. It can directly connect to Rx and Tx of the Arduiono, or to pin 2 and 3 and use softserial library. It comes with two tags, pins and stripped wires.<br /></span></p><p></p><p><span style="font-size: medium;">Operating voltage: 3 - 5.5 V<br />Sensing distance: 0 - 40 mm</span></p><p><span style="font-size: medium;"><br /></span></p><p><b style="font-family: 'Times New Roman'; font-size: medium;"><span style="font-family: Verdana; background-color: transparent; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">Pin Definitions of RFID card module:</span></b></p><table><tbody><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Pin</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Symbol</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">IO Type</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Description</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-size: medium;"><span style="font-family: Verdana; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">Arduino</span><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"> or </span><span style="font-family: Verdana; color: #41007d; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">notes</span><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"></span></span></td></tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-1</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">RXD</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I/O</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Uart Receiver</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">serial link to arduino pin 2</span></td></tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-2</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">TXD</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I/O</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Uart Transmitter</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">serial link to arduino pin 3</span></td></tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-3</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">OUT1</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I/O</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Output 1</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"></span></td></tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-4</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">OUT2</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Output 2</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"></span></td></tr><tr style="height: 76px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-5</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">RST</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Reset, active-low </span><br /><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">floating for power-on reset by default</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"></span></td></tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-6</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">BUZ</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Buzzer output, high level drive</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-size: medium;"><span style="font-family: Verdana; color: #41007d; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">Could be for different model</span><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"></span></span></td></tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-7</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">SIG</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">O</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Interrupt output,</span><br /><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">LOW level indicates card in the field</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">arduino digital pin 5</span></td></tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"> J1-8</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">VCC</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Power</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Power Positive</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">to 5v [3v3 can be used but has a smaller field range]</span></td></tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"> J1-9</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">GND</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">GND</span></p></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Power Negative</span></td><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">to gnd &nbsp;</span></td></tr></tbody></table><p></p><p><span style="font-size: medium;">See <a href="http://www.hobbyist.co.nz/?q=rfid-door-lock-controller" target="_blank" title="RFID tutorial">this page</a> for tutorials of how to use this RFID module.</span></p><p><span style="font-size: medium;"><br /></span></p><p><font color="#000000"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="1" style="font-size: 2pt;">Tags: rfid reader, what is rfid, about rfid, usb rfid reader, what is rfid reader, rfid a, rfid rfid, tags rfid, rfid tags</font></font></font></p><p><font size="1" style="font-size: 2pt;"><br /></font><br /><br /></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:20186:"<h2><strong><span style="font-size: medium;">13.56MHz RFID module</span></strong></h2>
  <p><span style="font-size: medium;">Interfacing this module to Arduino cannot be easier, it's in TTL serial interface. It can directly connect to Rx and Tx of the Arduiono, or to pin 2 and 3 and use softserial library. It comes with two tags, pins and stripped wires.<br /></span></p>

  <p><span style="font-size: medium;">Operating voltage: 3 - 5.5 V<br />Sensing distance: 0 - 40 mm</span></p>
  <p><span style="font-size: medium;"><br /></span></p>
  <p><b style="font-family: 'Times New Roman'; font-size: medium;"><span style="font-family: Verdana; background-color: transparent; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">Pin Definitions of RFID card module:</span></b></p>
  <table><tbody><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Pin</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Symbol</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">IO Type</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Description</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-size: medium;"><span style="font-family: Verdana; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">Arduino</span><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"> or </span><span style="font-family: Verdana; color: #41007d; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">notes</span><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"></span></span></td>
  </tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-1</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">RXD</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I/O</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Uart Receiver</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">serial link to arduino pin 2</span></td>
  </tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-2</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">TXD</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I/O</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Uart Transmitter</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">serial link to arduino pin 3</span></td>
  </tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-3</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">OUT1</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I/O</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Output 1</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"></span></td>
  </tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-4</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">OUT2</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Output 2</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"></span></td>
  </tr><tr style="height: 76px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-5</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">RST</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Reset, active-low </span><br /><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">floating for power-on reset by default</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"></span></td>
  </tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-6</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">BUZ</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">I</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Buzzer output, high level drive</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-size: medium;"><span style="font-family: Verdana; color: #41007d; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">Could be for different model</span><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"></span></span></td>
  </tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">J1-7</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">SIG</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">O</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Interrupt output,</span><br /><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">LOW level indicates card in the field</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">arduino digital pin 5</span></td>
  </tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"> J1-8</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">VCC</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Power</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Power Positive</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">to 5v [3v3 can be used but has a smaller field range]</span></td>
  </tr><tr style="height: 0px;"><td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;"> J1-9</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #e30000; background-color: transparent; font-weight: bold; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">GND</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;">
  <p dir="ltr" style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">GND</span></p>
  </td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; color: #010101; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">Power Negative</span></td>
  <td style="border-image: initial; vertical-align: top; border-width: 1px; border-color: #aaaaaa; border-style: dotted; padding: 7px;"><span style="font-family: Verdana; background-color: transparent; vertical-align: baseline; white-space: pre-wrap; font-size: medium;">to gnd  </span></td>
  </tr></tbody></table><p><span style="font-size: medium;">See <a href="http://www.hobbyist.co.nz/?q=rfid-door-lock-controller" target="_blank" title="RFID tutorial">this page</a> for tutorials of how to use this RFID module.</span></p>
  <p><span style="font-size: medium;"><br /></span></p>
  <p><font color="#000000"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="1" style="font-size: 2pt;">Tags: rfid reader, what is rfid, about rfid, usb rfid reader, what is rfid reader, rfid a, rfid rfid, tags rfid, rfid tags</font></font></font></p>
  <p><font size="1" style="font-size: 2pt;"><br /></font></p>
  ";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:1:{i:0;a:11:{s:3:"fid";s:3:"182";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:23:"RFID_module (Small).jpg";s:3:"uri";s:32:"public://RFID_module (Small).jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:5:"51383";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1347262599";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:1:"5";}}}}


cid: field:node:7
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:1607:"<p>The Mars rover platform is a robust and easily adjustable (manually) track drive chassis that is perfect for robotics hobbyists.</p><p>It has two DC motor built-in, and it's already assembled. A 6-slot battery case is also included.</p><p>The height of the track wheels are adjustable.</p><p>Dimension: 245mm length x 225mm width x 74mm height</p><p>The batteries are not included.</p><p>Check out other products to get a Arduino and Motorshield to build a complete programmable platform!</p><p>specs provided by the manufacturer:</p><ul><li><span style="font-size: 9pt;">Dimensions: </span>245mm length x 225mm width x 74mm height</li><li><span style="font-size: 12px;">Adjustable height: </span><span style="font-size: 12px;">74mm-100mm</span></li><li><span style="font-size: 12px;">Ground clearance: 21mm-50mm</span></li><li><span style="font-size: 9pt;">Operating voltage: 7.2V</span></li><li><span style="font-size: 9pt;">Operating current: 160–180 mA</span></li><li><span style="font-size: 9pt;">Maximum speed: 30 cm/s(speed can reach 42cm/s </span><span style="font-size: 9pt;">at 12 V</span><span style="font-size: 9pt;">)</span></li><li><span style="font-size: 9pt;">Maximum climbing angle: &gt; 30°</span></li><li><span style="font-size: 9pt;">Maximum payload: &gt; 7.5Kg</span></li></ul><p>Note: the specs above should only used be as a reference, performance of individual platform may vary due to manufacturing tolerance, battery type and operating conditions.</p><p><a title="robotics, robot games, make a robot, build a robot, kid robot, mr robot, create a robot, robot wars">..</a></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:1624:"<p>The Mars rover platform is a robust and easily adjustable (manually) track drive chassis that is perfect for robotics hobbyists.</p>
  <p>It has two DC motor built-in, and it's already assembled. A 6-slot battery case is also included.</p>
  <p>The height of the track wheels are adjustable.</p>
  <p>Dimension: 245mm length x 225mm width x 74mm height</p>
  <p>The batteries are not included.</p>
  <p>Check out other products to get a Arduino and Motorshield to build a complete programmable platform!</p>
  <p>specs provided by the manufacturer:</p>
  <ul><li><span style="font-size: 9pt;">Dimensions: </span>245mm length x 225mm width x 74mm height</li>
  <li><span style="font-size: 12px;">Adjustable height: </span><span style="font-size: 12px;">74mm-100mm</span></li>
  <li><span style="font-size: 12px;">Ground clearance: 21mm-50mm</span></li>
  <li><span style="font-size: 9pt;">Operating voltage: 7.2V</span></li>
  <li><span style="font-size: 9pt;">Operating current: 160–180 mA</span></li>
  <li><span style="font-size: 9pt;">Maximum speed: 30 cm/s(speed can reach 42cm/s </span><span style="font-size: 9pt;">at 12 V</span><span style="font-size: 9pt;">)</span></li>
  <li><span style="font-size: 9pt;">Maximum climbing angle: &gt; 30°</span></li>
  <li><span style="font-size: 9pt;">Maximum payload: &gt; 7.5Kg</span></li>
  </ul><p>Note: the specs above should only used be as a reference, performance of individual platform may vary due to manufacturing tolerance, battery type and operating conditions.</p>
  <p><a title="robotics, robot games, make a robot, build a robot, kid robot, mr robot, create a robot, robot wars">..</a></p>
  ";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:3:{i:0;a:11:{s:3:"fid";s:2:"10";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:21:"20101106110828289.jpg";s:3:"uri";s:30:"public://20101106110828289.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:5:"27297";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1304813234";s:11:"rdf_mapping";a:0:{}}i:1;a:11:{s:3:"fid";s:2:"11";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:21:"20101106110832860.jpg";s:3:"uri";s:30:"public://20101106110832860.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:5:"33433";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1304813234";s:11:"rdf_mapping";a:0:{}}i:2;a:11:{s:3:"fid";s:2:"12";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:15:"mars_rover1.jpg";s:3:"uri";s:24:"public://mars_rover1.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:5:"14001";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1304813234";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:1:"3";}}}}


cid: field:node:89
data:
  a:1:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:5674:"<h4><strong><span style="font-family: verdana, geneva; font-size: medium;">About us:</span></strong></h4><div><span style="font-family: verdana, geneva; font-size: medium;">We are two profession&shy;al engineers and founders of hobbyist.co.nz who have a combined experience of 14 years working in domains of networking&shy;, embedded&nbsp;</span><span style="font-family: verdana, geneva; font-size: medium;">and Android systems.</span><span style="font-family: verdana, geneva; font-size: medium;">&nbsp; </span></div><div><span style="font-family: verdana, geneva; font-size: medium;"></span><span style="font-family: verdana, geneva; font-size: medium;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></div><p><span style="font-family: verdana,geneva; font-size: medium;"><strong>Services offered</strong>: </span></p><p><span style="font-family: verdana,geneva; font-size: medium;">Clients come to us with a problem like this: "I want to control my farm's irrigation from my mobile or tablet " and we build a solution. </span></p><div><span style="font-family: verdana, geneva; font-size: medium;"> &nbsp;&nbsp;</span></div><div><span style="font-family: verdana, geneva; font-size: medium;"><strong>Few projects we have completed and in progress</strong>:</span></div><div><span style="font-family: verdana, geneva; font-size: medium;"><br /></span></div><div><ul><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Programmable Seed drill control system </span></li><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Remote soil humidity &amp; temp monitoring via GPRS<br /></span></li><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Solar powered remote weather logging </span></li><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Quadbike safety monitor with GPRS alerts ( <a href="http://fieldays.co.nz/innovationcompetition2013" target="_blank">Winner of Grassroots Innovation &amp; Vodaphone ICT 2013 awards</a>&nbsp;)<span style="color: #222222; font-size: 13px;">&nbsp;</span></span></li><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Prepaid RFID based vehicle wash system </span></li><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Auto crowd interaction system for Council </span></li><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Irrigation control using custom RF tech </span></li><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Pasture measurement module for Diary farms </span></li><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Home automation with Mobile access </span></li><li><span style="font-family: verdana,geneva; font-size: medium;">&nbsp;Aurora prediction for Photography </span></li></ul><span style="font-family: verdana,geneva; font-size: medium;"><br /></span></div><h4><strong><span style="font-family: verdana, geneva; font-size: medium;">What we do:</span></strong></h4><p><span style="font-family: verdana, geneva; font-size: medium;">We design and develop linux applications, Android apps and build complete products and solutions.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">Our area of expertise span: </span><br /><br /><span style="font-family: verdana, geneva; font-size: medium;">Windows, Linux, Android and Arduino based solutions </span><br /><br /></p><ul><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;Networked apps or native linux application development&nbsp;</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;Interface with sensors&nbsp;</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;Data acquisition &amp; loggers&nbsp;</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;Machine control&nbsp;</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;Automating mechanical systems&nbsp;</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;Expertise in linux core of Android&nbsp;</span></li></ul><p><br /><span style="font-family: verdana, geneva; font-size: medium;">Wireless systems: </span><br /><br /></p><ul><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;RFID, Near field communication (NFC), GSM, wifi, bluetooth, Zigbee, long range RF&nbsp;</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;Remote dataloggers for weather and other sensing applications&nbsp;</span></li></ul><p><br /><br /><span style="font-family: verdana, geneva; font-size: medium;">Web-Device interface </span><br /><br /></p><ul><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;Web based monitoring and control&nbsp;</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;Real time sensor data visualization&nbsp;</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">&nbsp;GPS live data monitoring &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></li></ul><div><font face="verdana, geneva" size="3"><br /></font></div><h4><strong><font face="verdana, geneva" size="3">How to reach us?</font></strong></h4><div><font face="verdana, geneva" size="3">Drop us a email at contact@hobbyist.co.nz or </font><span style="font-family: verdana, geneva; font-size: medium;">ring us at &nbsp;021 1784802 to discuss your project.</span></div>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:5420:"<h4><strong><span style="font-family: verdana, geneva; font-size: medium;">About us:</span></strong></h4>
  <div><span style="font-family: verdana, geneva; font-size: medium;">We are two profession­al engineers and founders of hobbyist.co.nz who have a combined experience of 14 years working in domains of networking­, embedded </span><span style="font-family: verdana, geneva; font-size: medium;">and Android systems.</span><span style="font-family: verdana, geneva; font-size: medium;">  </span></div>
  <div><span style="font-family: verdana, geneva; font-size: medium;"></span><span style="font-family: verdana, geneva; font-size: medium;">                           </span></div>
  <p><span style="font-family: verdana,geneva; font-size: medium;"><strong>Services offered</strong>: </span></p>
  <p><span style="font-family: verdana,geneva; font-size: medium;">Clients come to us with a problem like this: "I want to control my farm's irrigation from my mobile or tablet " and we build a solution. </span></p>
  <div><span style="font-family: verdana, geneva; font-size: medium;">   </span></div>
  <div><span style="font-family: verdana, geneva; font-size: medium;"><strong>Few projects we have completed and in progress</strong>:</span></div>
  <div><span style="font-family: verdana, geneva; font-size: medium;"><br /></span></div>
  <div>
  <ul><li><span style="font-family: verdana,geneva; font-size: medium;"> Programmable Seed drill control system </span></li>
  <li><span style="font-family: verdana,geneva; font-size: medium;"> Remote soil humidity &amp; temp monitoring via GPRS<br /></span></li>
  <li><span style="font-family: verdana,geneva; font-size: medium;"> Solar powered remote weather logging </span></li>
  <li><span style="font-family: verdana,geneva; font-size: medium;"> Quadbike safety monitor with GPRS alerts ( <a href="http://fieldays.co.nz/innovationcompetition2013" target="_blank">Winner of Grassroots Innovation &amp; Vodaphone ICT 2013 awards</a> )<span style="color: #222222; font-size: 13px;"> </span></span></li>
  <li><span style="font-family: verdana,geneva; font-size: medium;"> Prepaid RFID based vehicle wash system </span></li>
  <li><span style="font-family: verdana,geneva; font-size: medium;"> Auto crowd interaction system for Council </span></li>
  <li><span style="font-family: verdana,geneva; font-size: medium;"> Irrigation control using custom RF tech </span></li>
  <li><span style="font-family: verdana,geneva; font-size: medium;"> Pasture measurement module for Diary farms </span></li>
  <li><span style="font-family: verdana,geneva; font-size: medium;"> Home automation with Mobile access </span></li>
  <li><span style="font-family: verdana,geneva; font-size: medium;"> Aurora prediction for Photography </span></li>
  </ul><p><span style="font-family: verdana,geneva; font-size: medium;"><br /></span></p></div>
  <h4><strong><span style="font-family: verdana, geneva; font-size: medium;">What we do:</span></strong></h4>
  <p><span style="font-family: verdana, geneva; font-size: medium;">We design and develop linux applications, Android apps and build complete products and solutions.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">Our area of expertise span: </span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">Windows, Linux, Android and Arduino based solutions </span></p>
  <ul><li><span style="font-family: verdana, geneva; font-size: medium;"> Networked apps or native linux application development </span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"> Interface with sensors </span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"> Data acquisition &amp; loggers </span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"> Machine control </span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"> Automating mechanical systems </span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"> Expertise in linux core of Android </span></li>
  </ul><p><span style="font-family: verdana, geneva; font-size: medium;">Wireless systems: </span></p>
  <ul><li><span style="font-family: verdana, geneva; font-size: medium;"> RFID, Near field communication (NFC), GSM, wifi, bluetooth, Zigbee, long range RF </span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"> Remote dataloggers for weather and other sensing applications </span></li>
  </ul><p><span style="font-family: verdana, geneva; font-size: medium;">Web-Device interface </span></p>
  <ul><li><span style="font-family: verdana, geneva; font-size: medium;"> Web based monitoring and control </span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"> Real time sensor data visualization </span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"> GPS live data monitoring                                    </span></li>
  </ul><div><font face="verdana, geneva" size="3"><br /></font></div>
  <h4><strong><font face="verdana, geneva" size="3">How to reach us?</font></strong></h4>
  <div><font face="verdana, geneva" size="3">Drop us a email at <a href="mailto:contact@hobbyist.co.nz">contact@hobbyist.co.nz</a> or </font><span style="font-family: verdana, geneva; font-size: medium;">ring us at  021 1784802 to discuss your project.</span></div>
  ";s:12:"safe_summary";s:0:"";}}}}


cid: field:taxonomy_term:37
data:
  a:1:{s:16:"uc_catalog_image";a:1:{s:3:"und";a:1:{i:0;a:11:{s:3:"fid";s:3:"177";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:18:"9025mg-280x280.jpg";s:3:"uri";s:29:"public://9025mg-280x280_0.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:4:"8912";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1346534352";s:11:"rdf_mapping";a:0:{}}}}}


cid: field:node:95
data:
  a:1:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:2666:"<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">With the OLED display module wired and going the next step is to get the DHT22 and the bump sensors wired to the Arduino.</span></p><p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">This step will take us closer to getting the Arduino reading the sensor data and then sending it across the interent. <br /></span></p><p><span style="font-size: medium;"><strong><span style="font-family: arial,helvetica,sans-serif;"><br /></span></strong></span></p><p><span style="font-size: medium;"><strong><span style="font-family: arial,helvetica,sans-serif;">Wiring the OLED display + DHT22 + Bump Switch to the arduino</span></strong></span></p><p><span style="font-size: medium;"><img src="/sites/default/files/NetSensor/BumpDHT22%2BArduino_bb.png" border="0" alt="Wire OLED display, Bump Switch &amp; DHT22 to the arduino" title="Wire OLED display, Bump Switch &amp; DHT22 to the arduino" width="563" height="700" /></span></p><p><span style="font-size: medium;">Fig 1. Wiring the Arduino to the DHT22, Bump Sensor and the OLED display</span></p><p></p><p><span style="font-size: medium;">Once the above wiring is completed, next step is to setup the code to get the Arduino to talk to the modules.</span></p><p><span style="font-size: medium;">To test the OLED display , Bump Sensor &amp; DHT22 Sensor, Download and unzip the <a href="/sites/default/files/NetSensor/DHT.zip" target="_blank" title="DHT Library for Arduino">DHT library</a> to the libraries folder under in the Arduino IDE directory, </span><span style="font-size: medium;"><span style="font-size: medium;">mine is "c:\arduino-1.0.5\libraries"</span>.</span></p><p><span style="font-size: medium;"><br /></span></p><p><span style="font-size: medium;">Then download the code <a href="https://bitbucket.org/sachins/netsensor/raw/0c72ac656892f2e161eaa6ff56d2b3970449abfe/DHT11_JSON/DHT11_JSON.ino" target="_blank" title="NetSensor Test Code">TestNetSensor</a> and open it in Arduino IDE.</span></p><p><span style="font-size: medium;"><br /></span></p><p><span style="font-size: medium;"><img src="/sites/default/files/NetSensor/NetSensorAssembled_small.jpg" border="0" alt="Net Sensor Arduino Assembled" title="Net Sensor Arduino Assembled" width="636" height="467" /></span></p><p></p><p><strong><span style="font-size: medium;">Results:</span></strong></p><p><span style="font-size: medium;">If the wiring is correct and the code is downloaded once you reset the Arduino by pressing the Reset button, The OLED display should come to life with the humidity and temperature reading on the screen.</span></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:2668:"<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">With the OLED display module wired and going the next step is to get the DHT22 and the bump sensors wired to the Arduino.</span></p>
  <p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">This step will take us closer to getting the Arduino reading the sensor data and then sending it across the interent. <br /></span></p>
  <p><span style="font-size: medium;"><strong><span style="font-family: arial,helvetica,sans-serif;"><br /></span></strong></span></p>
  <p><span style="font-size: medium;"><strong><span style="font-family: arial,helvetica,sans-serif;">Wiring the OLED display + DHT22 + Bump Switch to the arduino</span></strong></span></p>
  <p><span style="font-size: medium;"><img src="/sites/default/files/NetSensor/BumpDHT22%2BArduino_bb.png" border="0" alt="Wire OLED display, Bump Switch &amp; DHT22 to the arduino" title="Wire OLED display, Bump Switch &amp; DHT22 to the arduino" width="563" height="700" /></span></p>
  <p><span style="font-size: medium;">Fig 1. Wiring the Arduino to the DHT22, Bump Sensor and the OLED display</span></p>

  <p><span style="font-size: medium;">Once the above wiring is completed, next step is to setup the code to get the Arduino to talk to the modules.</span></p>
  <p><span style="font-size: medium;">To test the OLED display , Bump Sensor &amp; DHT22 Sensor, Download and unzip the <a href="/sites/default/files/NetSensor/DHT.zip" target="_blank" title="DHT Library for Arduino">DHT library</a> to the libraries folder under in the Arduino IDE directory, </span><span style="font-size: medium;"><span style="font-size: medium;">mine is "c:\arduino-1.0.5\libraries"</span>.</span></p>
  <p><span style="font-size: medium;"><br /></span></p>
  <p><span style="font-size: medium;">Then download the code <a href="https://bitbucket.org/sachins/netsensor/raw/0c72ac656892f2e161eaa6ff56d2b3970449abfe/DHT11_JSON/DHT11_JSON.ino" target="_blank" title="NetSensor Test Code">TestNetSensor</a> and open it in Arduino IDE.</span></p>
  <p><span style="font-size: medium;"><br /></span></p>
  <p><span style="font-size: medium;"><img src="/sites/default/files/NetSensor/NetSensorAssembled_small.jpg" border="0" alt="Net Sensor Arduino Assembled" title="Net Sensor Arduino Assembled" width="636" height="467" /></span></p>

  <p><strong><span style="font-size: medium;">Results:</span></strong></p>
  <p><span style="font-size: medium;">If the wiring is correct and the code is downloaded once you reset the Arduino by pressing the Reset button, The OLED display should come to life with the humidity and temperature reading on the screen.</span></p>
  ";s:12:"safe_summary";s:0:"";}}}}


cid: field:node:38
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:3063:"<p><span style="font-family: verdana, geneva; font-size: medium;">This kit consists of an Arduino UNO and a black and white LCD shield. Being able to plug the LCD shield straight onto the Aduino making this setup clean and easy to work with. There is no wires hanging around. This is a great kit for someone to start learning some LCD based user interface. As on the shield it comes with a 5 degree of freedom joystick, which makes it easy to write up menus and click on them as you go.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">LCD shield give your project a Wow factor, last but not the least, it allows you to debug your programme while its running....</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">This package includes:</span></p><ul><li><span style="font-family: verdana, geneva; font-size: medium;"><strong>Arduino UNO</strong></span></li><li><span style="font-family: verdana, geneva; font-size: medium;"><strong>LCD shield</strong></span></li><li><span style="font-family: verdana, geneva; font-size: medium;"><strong>USB cable</strong></span></li></ul><p><span style="font-family: verdana, geneva; font-size: medium;">This <a href="http://hobbyist-repository.googlecode.com/svn/trunk/LCDshield/LCDshield_demo.pde">demo sketch</a> can get you started using this LCD shield.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">The library can be downloaded from <a href="http://www.hobbyist.co.nz/sites/default/files/LCD4884Lib.rar">here</a>.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">note: this library doesn't work with Arduino 1.0 software, please use Arduino software version 0022 or 0023.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">First unzipped the LCD4884Lib.rar, then copy the sub-directory "LCD4884" and paste it to the directory "libraries" under the Arduino software directory.</span><br /><span style="font-family: verdana, geneva; font-size: medium;"> Then launch the Arduino software, files -&gt; examples -&gt; LCD4884-&gt;LCD4884_menu</span><br /><span style="font-family: verdana, geneva; font-size: medium;"> &nbsp;</span></p><p><span style="font-family: verdana, geneva; font-size: medium;"><strong>Specification</strong></span></p><ul><li><span style="font-family: verdana, geneva; font-size: medium;">Power Supply: 5V</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">SPI Interface (using Arduino Digital Pin 2,3,4,5,6)</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">One Reset button</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">One 5 degree joystick (using Arduino Analog Pin 0)</span></li><li><span style="font-family: verdana, geneva; font-size: medium;">Backlit control (Arduino DIO Pin 7)</span></li></ul><p><br /><span style="font-family: verdana, geneva; font-size: medium;"> <img src="http://www.hobbyist.co.nz/sites/default/files/bmp_on_lcd.jpg" border="0" alt="" /></span></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:3070:"<p><span style="font-family: verdana, geneva; font-size: medium;">This kit consists of an Arduino UNO and a black and white LCD shield. Being able to plug the LCD shield straight onto the Aduino making this setup clean and easy to work with. There is no wires hanging around. This is a great kit for someone to start learning some LCD based user interface. As on the shield it comes with a 5 degree of freedom joystick, which makes it easy to write up menus and click on them as you go.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">LCD shield give your project a Wow factor, last but not the least, it allows you to debug your programme while its running....</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">This package includes:</span></p>
  <ul><li><span style="font-family: verdana, geneva; font-size: medium;"><strong>Arduino UNO</strong></span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"><strong>LCD shield</strong></span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;"><strong>USB cable</strong></span></li>
  </ul><p><span style="font-family: verdana, geneva; font-size: medium;">This <a href="http://hobbyist-repository.googlecode.com/svn/trunk/LCDshield/LCDshield_demo.pde">demo sketch</a> can get you started using this LCD shield.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">The library can be downloaded from <a href="http://www.hobbyist.co.nz/sites/default/files/LCD4884Lib.rar">here</a>.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">note: this library doesn't work with Arduino 1.0 software, please use Arduino software version 0022 or 0023.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">First unzipped the LCD4884Lib.rar, then copy the sub-directory "LCD4884" and paste it to the directory "libraries" under the Arduino software directory.</span><br /><span style="font-family: verdana, geneva; font-size: medium;"> Then launch the Arduino software, files -&gt; examples -&gt; LCD4884-&gt;LCD4884_menu</span><br /><span style="font-family: verdana, geneva; font-size: medium;">  </span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;"><strong>Specification</strong></span></p>
  <ul><li><span style="font-family: verdana, geneva; font-size: medium;">Power Supply: 5V</span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;">SPI Interface (using Arduino Digital Pin 2,3,4,5,6)</span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;">One Reset button</span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;">One 5 degree joystick (using Arduino Analog Pin 0)</span></li>
  <li><span style="font-family: verdana, geneva; font-size: medium;">Backlit control (Arduino DIO Pin 7)</span></li>
  </ul><p><span style="font-family: verdana, geneva; font-size: medium;"> <img src="http://www.hobbyist.co.nz/sites/default/files/bmp_on_lcd.jpg" border="0" alt="" /></span></p>
  ";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:1:{i:0;a:11:{s:3:"fid";s:2:"72";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:14:"LCD shield.jpg";s:3:"uri";s:25:"public://LCD shield_0.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:6:"145282";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1319930748";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:1:"4";}}}}


cid: field:node:111
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:12486:"<p><span style="font-size: medium; font-family: verdana,geneva;">This is a short tutorial* to show you how to interface the Bluetooth module with the Arduino Mega Sensor Shield. Here we are going to use Serial Channel 2 of the Arduino Mega to commuicate with the Bluetooth. First of all, wire up the circuit as shown below.</span></p><p></p><p><span style="font-family: verdana,geneva;">*<span style="font-size: small;">A more detail tutorial for how to use the Bluetooth module can be found <a href="http://www.hobbyist.co.nz/?q=bluetooth-module-device" target="_blank" title="Bluetooth tutorial">here</a>.</span></span></p><p><span style="font-family: verdana,geneva;"><a href="sites/default/files/WirelessSensorLoger/bluetoothMegaSensorShield.gif" target="_blank" title="Interface Bluetooth to Mega Sensor Shield"><img src="sites/default/files/WirelessSensorLoger/bluetoothMegaSensorShield.gif" border="0" alt="Interface Bluetooth to Mega Sensor Shield" title="Interface Bluetooth to Mega Sensor Shield" width="500" height="263" /></a></span></p><p></p><table class="MsoTableLightShading" style="border-collapse: collapse; border: 1px none; width: 300px;" border="1" cellpadding="0" cellspacing="0"><tbody><tr style="mso-yfti-irow: -1; mso-yfti-firstrow: yes; height: 13.3pt;"><td style="width: 90.45pt; border-top: solid black 1.0pt; mso-border-top-themecolor: text1; border-left: none; border-bottom: solid black 1.0pt; mso-border-bottom-themecolor: text1; border-right: none; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 5;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">Arduino Mega Sensor Shield</span></b></span></p></td><td style="width: 3.0cm; border-top: solid black 1.0pt; mso-border-top-themecolor: text1; border-left: none; border-bottom: solid black 1.0pt; mso-border-bottom-themecolor: text1; border-right: none; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 1;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">Bluetooth Module</span></b></span></p></td></tr><tr style="mso-yfti-irow: 0; height: 13.3pt;"><td style="width: 90.45pt; border: none; background: silver; mso-background-themecolor: text1; mso-background-themetint: 63; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 68;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">VCC</span></b></span></p></td><td style="width: 3.0cm; border: none; background: silver; mso-background-themecolor: text1; mso-background-themetint: 63; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 64;"><span style="color: black; font-size: medium; font-family: verdana,geneva;">+5V / VCC</span></p></td></tr><tr style="mso-yfti-irow: 1; height: 13.3pt;"><td style="width: 90.45pt; border: none; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 4;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">GND</span></b></span></p></td><td style="width: 3.0cm; border: none; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: black; font-size: medium; font-family: verdana,geneva;">GND</span></p></td></tr><tr style="mso-yfti-irow: 2; height: 13.3pt;"><td style="width: 90.45pt; border: none; background: silver; mso-background-themecolor: text1; mso-background-themetint: 63; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 68;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">RX2</span></b></span></p></td><td style="width: 3.0cm; border: none; background: silver; mso-background-themecolor: text1; mso-background-themetint: 63; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 64;"><span style="color: black; font-size: medium; font-family: verdana,geneva;">TXD</span></p></td></tr><tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes; height: 13.3pt;"><td style="width: 90.45pt; border: none; border-bottom: solid black 1.0pt; mso-border-bottom-themecolor: text1; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 4;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">TX2</span></b></span></p></td><td style="width: 3.0cm; border: none; border-bottom: solid black 1.0pt; mso-border-bottom-themecolor: text1; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113"><p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: black; font-size: medium; font-family: verdana,geneva;">RXD</span></p></td></tr></tbody></table><p></p><p><span style="font-size: medium; font-family: verdana,geneva;">Power up the Arduino via USB, and you can see the Red LED on the Bluetooth module is blinking, which means the Bluetooth link is not established. Download <a href="http://hobbyist-repository.googlecode.com/svn/trunk/self-powered_sensor/BluetoothTest/BluetoothTest.ino" target="_blank" title="Bluetooth Test Code">this test code</a> to the Mega. The code randomly generates numbers from 18 - 22 to simulate two temperature readings every 3 seconds. Once download complete, close the Arduino IDE, and now the Bluetooth can be tested in <span style="background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"></span><a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html"><span style="background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: underline; vertical-align: baseline;">puTTY</span></a><span style="background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"> and our Serial Temp Monitor.&nbsp;</span></span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><br /></span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><strong><span style="font-size: large;">Test in PUTTY</span></strong><br /></span></p><p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"> Open puTTY and enter the COM number the Bluetooth link. As can be seen below, mine is at COM4.</span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><img src="sites/default/files/WirelessSensorLoger/BluetoothAtCOM4.png" border="0" alt="Bluetooh COM in Windows" title="Bluetooh COM in Windows" width="500" height="448" /></span></p><p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><br /></span></p><p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">Then connect the Bluetooth to puTTY with Baudrate = 9600</span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><img src="sites/default/files/WirelessSensorLoger/ConnectToPUTTY.png" border="0" alt="Connect Bluetooth to PUTTY" title="Connect Bluetooth to PUTTY" width="400" height="385" /></span></p><p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">If the connection is established successfully, then you can see the LED on the Bluetooth module stays on. And in puTTY, you will receive strings like below.</span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><img src="sites/default/files/WirelessSensorLoger/PUTTY_OUTPUT.png" border="0" alt="putty output" title="putty output" width="349" height="234" /></span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><br /></span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><strong><span style="font-size: large;">Test in Serial Temp Monitor</span></strong></span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><strong><span style="font-size: large;"></span></strong><span style="font-size: medium;">Download the executable <a href="sites/default/files/WirelessSensorLoger/ReadTempInSerial%20V1.0.exe" target="_blank" title="SerialTempMonitor">SerialTempMonitor</a>, and open it. Please make sure that the Bluetooth link is disconnected from puTTY, and the LED on the Bluetooth module is blinking.</span></span></p><p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">Click on "Connect", after one moment, the temperature reading should appear.</span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><img src="sites/default/files/WirelessSensorLoger/SerialTempMonitorDemo.jpg" border="0" alt="SerialTempMonitorDemo" title="SerialTempMonitorDemo" width="500" height="289" /></span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><br /></span></p><p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">If all working, congratulations, you are now ready to build a wireless temperature monitor. The Serial Temp Monitor is an opened source C# program, developed by Hobbyist.<br /></span></p><p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><span style="font-size: medium;"><a href="http://hobbyist-repository.googlecode.com/svn/trunk/self-powered_sensor/SerialTempMonitor.zip" target="_blank" title="SerialTempMonitor Source Code Download">SerialTempMonitor Source Code Download</a></span><br /></span></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:12514:"<p><span style="font-size: medium; font-family: verdana,geneva;">This is a short tutorial* to show you how to interface the Bluetooth module with the Arduino Mega Sensor Shield. Here we are going to use Serial Channel 2 of the Arduino Mega to commuicate with the Bluetooth. First of all, wire up the circuit as shown below.</span></p>

  <p><span style="font-family: verdana,geneva;">*<span style="font-size: small;">A more detail tutorial for how to use the Bluetooth module can be found <a href="http://www.hobbyist.co.nz/?q=bluetooth-module-device" target="_blank" title="Bluetooth tutorial">here</a>.</span></span></p>
  <p><span style="font-family: verdana,geneva;"><a href="sites/default/files/WirelessSensorLoger/bluetoothMegaSensorShield.gif" target="_blank" title="Interface Bluetooth to Mega Sensor Shield"><img src="sites/default/files/WirelessSensorLoger/bluetoothMegaSensorShield.gif" border="0" alt="Interface Bluetooth to Mega Sensor Shield" title="Interface Bluetooth to Mega Sensor Shield" width="500" height="263" /></a></span></p>

  <table class="MsoTableLightShading" style="border-collapse: collapse; border: 1px none; width: 300px;" border="1" cellpadding="0" cellspacing="0"><tbody><tr style="mso-yfti-irow: -1; mso-yfti-firstrow: yes; height: 13.3pt;"><td style="width: 90.45pt; border-top: solid black 1.0pt; mso-border-top-themecolor: text1; border-left: none; border-bottom: solid black 1.0pt; mso-border-bottom-themecolor: text1; border-right: none; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 5;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">Arduino Mega Sensor Shield</span></b></span></p>
  </td>
  <td style="width: 3.0cm; border-top: solid black 1.0pt; mso-border-top-themecolor: text1; border-left: none; border-bottom: solid black 1.0pt; mso-border-bottom-themecolor: text1; border-right: none; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 1;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">Bluetooth Module</span></b></span></p>
  </td>
  </tr><tr style="mso-yfti-irow: 0; height: 13.3pt;"><td style="width: 90.45pt; border: none; background: silver; mso-background-themecolor: text1; mso-background-themetint: 63; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 68;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">VCC</span></b></span></p>
  </td>
  <td style="width: 3.0cm; border: none; background: silver; mso-background-themecolor: text1; mso-background-themetint: 63; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 64;"><span style="color: black; font-size: medium; font-family: verdana,geneva;">+5V / VCC</span></p>
  </td>
  </tr><tr style="mso-yfti-irow: 1; height: 13.3pt;"><td style="width: 90.45pt; border: none; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 4;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">GND</span></b></span></p>
  </td>
  <td style="width: 3.0cm; border: none; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: black; font-size: medium; font-family: verdana,geneva;">GND</span></p>
  </td>
  </tr><tr style="mso-yfti-irow: 2; height: 13.3pt;"><td style="width: 90.45pt; border: none; background: silver; mso-background-themecolor: text1; mso-background-themetint: 63; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 68;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">RX2</span></b></span></p>
  </td>
  <td style="width: 3.0cm; border: none; background: silver; mso-background-themecolor: text1; mso-background-themetint: 63; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 64;"><span style="color: black; font-size: medium; font-family: verdana,geneva;">TXD</span></p>
  </td>
  </tr><tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes; height: 13.3pt;"><td style="width: 90.45pt; border: none; border-bottom: solid black 1.0pt; mso-border-bottom-themecolor: text1; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="121">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-yfti-cnfc: 4;"><span style="font-size: medium; font-family: verdana,geneva;"><b><span style="color: black;">TX2</span></b></span></p>
  </td>
  <td style="width: 3.0cm; border: none; border-bottom: solid black 1.0pt; mso-border-bottom-themecolor: text1; padding: 0cm 5.4pt 0cm 5.4pt; height: 13.3pt;" valign="top" width="113">
  <p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: black; font-size: medium; font-family: verdana,geneva;">RXD</span></p>
  </td>
  </tr></tbody></table><p><span style="font-size: medium; font-family: verdana,geneva;">Power up the Arduino via USB, and you can see the Red LED on the Bluetooth module is blinking, which means the Bluetooth link is not established. Download <a href="http://hobbyist-repository.googlecode.com/svn/trunk/self-powered_sensor/BluetoothTest/BluetoothTest.ino" target="_blank" title="Bluetooth Test Code">this test code</a> to the Mega. The code randomly generates numbers from 18 - 22 to simulate two temperature readings every 3 seconds. Once download complete, close the Arduino IDE, and now the Bluetooth can be tested in <span style="background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"></span><a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html"><span style="background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: underline; vertical-align: baseline;">puTTY</span></a><span style="background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"> and our Serial Temp Monitor. </span></span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><br /></span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><strong><span style="font-size: large;">Test in PUTTY</span></strong><br /></span></p>
  <p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"> Open puTTY and enter the COM number the Bluetooth link. As can be seen below, mine is at COM4.</span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><img src="sites/default/files/WirelessSensorLoger/BluetoothAtCOM4.png" border="0" alt="Bluetooh COM in Windows" title="Bluetooh COM in Windows" width="500" height="448" /></span></p>
  <p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><br /></span></p>
  <p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">Then connect the Bluetooth to puTTY with Baudrate = 9600</span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><img src="sites/default/files/WirelessSensorLoger/ConnectToPUTTY.png" border="0" alt="Connect Bluetooth to PUTTY" title="Connect Bluetooth to PUTTY" width="400" height="385" /></span></p>
  <p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">If the connection is established successfully, then you can see the LED on the Bluetooth module stays on. And in puTTY, you will receive strings like below.</span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><img src="sites/default/files/WirelessSensorLoger/PUTTY_OUTPUT.png" border="0" alt="putty output" title="putty output" width="349" height="234" /></span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><br /></span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><strong><span style="font-size: large;">Test in Serial Temp Monitor</span></strong></span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><strong><span style="font-size: large;"></span></strong><span style="font-size: medium;">Download the executable <a href="sites/default/files/WirelessSensorLoger/ReadTempInSerial%20V1.0.exe" target="_blank" title="SerialTempMonitor">SerialTempMonitor</a>, and open it. Please make sure that the Bluetooth link is disconnected from puTTY, and the LED on the Bluetooth module is blinking.</span></span></p>
  <p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">Click on "Connect", after one moment, the temperature reading should appear.</span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><img src="sites/default/files/WirelessSensorLoger/SerialTempMonitorDemo.jpg" border="0" alt="SerialTempMonitorDemo" title="SerialTempMonitorDemo" width="500" height="289" /></span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><br /></span></p>
  <p><span style="font-size: medium; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">If all working, congratulations, you are now ready to build a wireless temperature monitor. The Serial Temp Monitor is an opened source C# program, developed by Hobbyist.<br /></span></p>
  <p><span style="font-size: 11pt; font-family: verdana,geneva; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><span style="font-size: medium;"><a href="http://hobbyist-repository.googlecode.com/svn/trunk/self-powered_sensor/SerialTempMonitor.zip" target="_blank" title="SerialTempMonitor Source Code Download">SerialTempMonitor Source Code Download</a></span><br /></span></p>
  ";s:12:"safe_summary";s:0:"";}}}s:10:"field_tags";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:2:"44";}}}s:11:"field_image";a:0:{}}


cid: field:node:36
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:2193:"<p><span style="font-family: verdana,geneva; font-size: medium;"><img src="/sites/default/files/pictures/USB-RS232/USB-RS232-1_small.jpg" border="0" alt="USB-RS232-1_small.jpg" title="USB-RS232-1_small.jpg" width="430" height="320" /></span></p><p><span style="font-family: verdana,geneva; font-size: medium;"><img src="sites/default/files/pictures/USB-RS232/USB-RS232-2_small.jpg" border="0" alt="USB-RS232-2_small.jpg" title="USB-RS232-2_small.jpg" width="430" height="320" /></span><span style="font-family: verdana,geneva; font-size: medium;"></span></p><p><span style="font-family: verdana,geneva; font-size: medium;"><img src="sites/default/files/pictures/USB-RS232/USB-RS232_small.jpg" border="0" alt="USB-RS232_small.jpg" title="USB-RS232_small.jpg" width="430" height="320" /></span></p><p></p><p><span style="font-size: medium;">This is a USB to Serial (TTL level 5V) converter. It is an essential for embedded system developers who want their devices to communicate to PC via UART interface, just like the FTDI cable does. </span></p><p><span style="font-size: medium;">It is powered by the USB connection to 5 V. The digital I/Os (TXD, RXD, RTS, CTS) are 3.3 V logic, and the VCC is 5 V. It is highly recommended to use this converter to configure our Bluetooth module. A 6-way stripped cable and a USB extension cable are included for ease of use. </span><br /> <br /><span style="font-size: medium;">This is an easy way to connect any microcontroller or embedded device (serial) to the PC (USB). This module should work with most serial software, so it's a brilliant add-on to your tool box. </span></p><p><span style="font-family: verdana,geneva; font-size: medium;"><br /></span></p><p><span style="font-family: verdana,geneva; font-size: medium;"><a href="http://www.silabs.com/Support%20Documents/Software/CP210x_VCP_Windows.zip" target="_blank" title="CP2102 Driver Download">Driver Download</a></span></p><p><span style="font-family: verdana,geneva; font-size: medium;"><br /></span><span style="font-family: verdana,geneva; font-size: medium;"><a href="http://www.silabs.com/Support%20Documents/TechnicalDocs/CP2102-9.pdf" target="_blank">Datasheet Download</a></span></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:2190:"<p><span style="font-family: verdana,geneva; font-size: medium;"><img src="/sites/default/files/pictures/USB-RS232/USB-RS232-1_small.jpg" border="0" alt="USB-RS232-1_small.jpg" title="USB-RS232-1_small.jpg" width="430" height="320" /></span></p>
  <p><span style="font-family: verdana,geneva; font-size: medium;"><img src="sites/default/files/pictures/USB-RS232/USB-RS232-2_small.jpg" border="0" alt="USB-RS232-2_small.jpg" title="USB-RS232-2_small.jpg" width="430" height="320" /></span><span style="font-family: verdana,geneva; font-size: medium;"></span></p>
  <p><span style="font-family: verdana,geneva; font-size: medium;"><img src="sites/default/files/pictures/USB-RS232/USB-RS232_small.jpg" border="0" alt="USB-RS232_small.jpg" title="USB-RS232_small.jpg" width="430" height="320" /></span></p>

  <p><span style="font-size: medium;">This is a USB to Serial (TTL level 5V) converter. It is an essential for embedded system developers who want their devices to communicate to PC via UART interface, just like the FTDI cable does. </span></p>
  <p><span style="font-size: medium;">It is powered by the USB connection to 5 V. The digital I/Os (TXD, RXD, RTS, CTS) are 3.3 V logic, and the VCC is 5 V. It is highly recommended to use this converter to configure our Bluetooth module. A 6-way stripped cable and a USB extension cable are included for ease of use. </span></p>
  <p><span style="font-size: medium;">This is an easy way to connect any microcontroller or embedded device (serial) to the PC (USB). This module should work with most serial software, so it's a brilliant add-on to your tool box. </span></p>
  <p><span style="font-family: verdana,geneva; font-size: medium;"><br /></span></p>
  <p><span style="font-family: verdana,geneva; font-size: medium;"><a href="http://www.silabs.com/Support%20Documents/Software/CP210x_VCP_Windows.zip" target="_blank" title="CP2102 Driver Download">Driver Download</a></span></p>
  <p><span style="font-family: verdana,geneva; font-size: medium;"><br /></span><span style="font-family: verdana,geneva; font-size: medium;"><a href="http://www.silabs.com/Support%20Documents/TechnicalDocs/CP2102-9.pdf" target="_blank">Datasheet Download</a></span></p>
  ";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:1:{i:0;a:11:{s:3:"fid";s:3:"163";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:34:"Tool_socket_usb-01-LRG (Small).jpg";s:3:"uri";s:43:"public://Tool_socket_usb-01-LRG (Small).jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:5:"30822";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1344847690";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:1:"5";}}}}


cid: field:node:50
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:1454:"<p><img src="http://www.hobbyist.co.nz/sites/default/files/styles/large/public/field/image/relay%20front%20sm_0.JPG" border="0" alt="" /></p><p>&nbsp;</p><p class="c0" style="margin: 0px; direction: ltr; color: #000000; font-family: Arial; font-size: 15px;"></p><p><span style="font-family: verdana, geneva; font-size: medium;">Module consists of 4 relays. Each relay is connected to a current &nbsp;buffer so that you can connect them directly to a Microcontroller.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">Using these relays you can easily control power appliances, the relay is rated for 230V 10Amps.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;"><br /></span></p><p><span style="font-family: verdana, geneva; font-size: medium;">This can be easily interfaced with Arduinos.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">The Module has 5 LED's, one for power and 4 for indicating relay signals.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">This module comes with a ribbon cable for easy interfacing of the relays to the Micro.</span></p><p><span style="font-family: verdana, geneva; font-size: medium;"><br /></span></p><p><span style="font-family: verdana, geneva; font-size: medium;">Rating: &nbsp;10A 250V AC</span></p><p><span style="font-family: verdana, geneva; font-size: medium;">Input voltage: 5V DC<br /></span></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:1454:"<p><img src="http://www.hobbyist.co.nz/sites/default/files/styles/large/public/field/image/relay%20front%20sm_0.JPG" border="0" alt="" /></p>
  <p> </p>
  <p class="c0" style="margin: 0px; direction: ltr; color: #000000; font-family: Arial; font-size: 15px;"></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">Module consists of 4 relays. Each relay is connected to a current  buffer so that you can connect them directly to a Microcontroller.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">Using these relays you can easily control power appliances, the relay is rated for 230V 10Amps.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;"><br /></span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">This can be easily interfaced with Arduinos.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">The Module has 5 LED's, one for power and 4 for indicating relay signals.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">This module comes with a ribbon cable for easy interfacing of the relays to the Micro.</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;"><br /></span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">Rating:  10A 250V AC</span></p>
  <p><span style="font-family: verdana, geneva; font-size: medium;">Input voltage: 5V DC<br /></span></p>
  ";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:1:{i:0;a:11:{s:3:"fid";s:2:"85";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:20:"relay front sm_0.JPG";s:3:"uri";s:29:"public://relay front sm_0.JPG";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:6:"122141";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1323983384";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:1:"5";}}}}


cid: field:node:53
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:1693:"<p></p><p></p><p>This is a low cost motor controller. Although it's not an Arduino Shield, it can be used with Arduino or any other microcontroller platforms. This module allows you to connect 2 DC motors and have total control of them from the arduino. It also can be used to control one 4-wire stepper motor. Due to its high current rating, it's perfect for a single channel heavy duty stepper motor controller.<br /> <br /> It allows you to move each DC motor<br /> - Clockwise<br /> - AntiClockwise<br /> - Stall<br /> - Control motor speed<br /> <br /> A 4-way stripped wire is included.<br /> <br /> This motor controller uses a L298 H-bridge IC<br /> deliveries output current up to 2 A each channel. The speed control is achieved through conventional PWM which can be obtained from Arduinos PWM output Pin 5, 6, 9 and 10.<br /> <br /> Specs:<br /> Peak Output Current (each Channel)<br /> - Non Repetitive (t = 100 ms): 3 A<br /> -Repetitive (80% on -20% off; ton = 10 ms): 2.5 A<br /> -DC Operation: 2 A<br /> Analog voltage input: &nbsp;<br /> Vcc input:<br /> 7 - 35 V with jumper J3 short circuit, which gets regulated to 5 V and it's available on the +5 V terminal.<br /> 5 - 35 V with jumper J3 open circuit, a seperate 5 V input is needed to the +5 V terminal.<br /> Digital voltage input: VD = 5 V (7 V max), this is output 5 V when jumper J3 is short circuit, and input 5 V when J3 is open circuit.<br /> Max power dissipation: 20 W<br /> <br /> There is a voltage regulator that regulates the Vcc to 5 V for digital use.</p><p></p><p>For more detail, please see <a href="http://www.hobbyist.co.nz/?q=how-to-use-l298-motor-controller">How to use L298 motor controller</a>.</p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:1647:"
  <p>This is a low cost motor controller. Although it's not an Arduino Shield, it can be used with Arduino or any other microcontroller platforms. This module allows you to connect 2 DC motors and have total control of them from the arduino. It also can be used to control one 4-wire stepper motor. Due to its high current rating, it's perfect for a single channel heavy duty stepper motor controller.</p>
  <p> It allows you to move each DC motor<br /> - Clockwise<br /> - AntiClockwise<br /> - Stall<br /> - Control motor speed</p>
  <p> A 4-way stripped wire is included.</p>
  <p> This motor controller uses a L298 H-bridge IC<br /> deliveries output current up to 2 A each channel. The speed control is achieved through conventional PWM which can be obtained from Arduinos PWM output Pin 5, 6, 9 and 10.</p>
  <p> Specs:<br /> Peak Output Current (each Channel)<br /> - Non Repetitive (t = 100 ms): 3 A<br /> -Repetitive (80% on -20% off; ton = 10 ms): 2.5 A<br /> -DC Operation: 2 A<br /> Analog voltage input:  <br /> Vcc input:<br /> 7 - 35 V with jumper J3 short circuit, which gets regulated to 5 V and it's available on the +5 V terminal.<br /> 5 - 35 V with jumper J3 open circuit, a seperate 5 V input is needed to the +5 V terminal.<br /> Digital voltage input: VD = 5 V (7 V max), this is output 5 V when jumper J3 is short circuit, and input 5 V when J3 is open circuit.<br /> Max power dissipation: 20 W</p>
  <p> There is a voltage regulator that regulates the Vcc to 5 V for digital use.</p>

  <p>For more detail, please see <a href="http://www.hobbyist.co.nz/?q=how-to-use-l298-motor-controller">How to use L298 motor controller</a>.</p>
  ";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:1:{i:0;a:11:{s:3:"fid";s:3:"188";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:31:"Motor_drive_v2_cap (Custom).jpg";s:3:"uri";s:40:"public://Motor_drive_v2_cap (Custom).jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:5:"42895";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1350160792";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:1:"5";}}}}


cid: field:node:75
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:1373:"<p><span style="font-size: medium;"><img src="/sites/default/files/pictures/ServoController/ServoController_cable_small.jpg" border="0" alt="USB Servo controller 16 channels" title="USB Servo controller 16 channels" width="486" height="324" /></span></p><p><span style="font-size: medium;">This is a 16-channel: mini-USB servo controller. </span><br /> <br /><span style="font-size: medium;">A mini-USB cable is included</span></p><p><span style="font-size: medium;">Ideal for 6 legged robots or similar.</span><br /> <br /><span style="font-size: medium;">It uses a 32-bit processor, fast response and stable operation. USB interface, can be directly interfaced to a pc. Self-detect Baud-rate (9600, 19200, 38400, 57600, 115200, 128000) </span><br /> <br /><span style="font-size: medium;">Example </span><br /><span style="font-size: medium;">Serial.begin(115200); // Set baud-rate to be 115200 </span><br /><span style="font-size: medium;">Serial.print("#1P1200T1000\r\n"&shy;); // Turn channel 1 on at 1200 position for 1000ms. <br /></span><span style="font-size: medium;">Serial.print("#1P1200T1000#2P1600T1000\r\n"&shy;); // Turn chanenl 1 and 2 simultaneously</span></p><p><span style="font-size: medium;">This is the <a href="http://www.hobbyist.co.nz/?q=how-to-use-mini-usb-servo-controller">tutorial</a> to show how to use this servo controller.<br /></span></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:1356:"<p><span style="font-size: medium;"><img src="/sites/default/files/pictures/ServoController/ServoController_cable_small.jpg" border="0" alt="USB Servo controller 16 channels" title="USB Servo controller 16 channels" width="486" height="324" /></span></p>
  <p><span style="font-size: medium;">This is a 16-channel: mini-USB servo controller. </span></p>
  <p><span style="font-size: medium;">A mini-USB cable is included</span></p>
  <p><span style="font-size: medium;">Ideal for 6 legged robots or similar.</span></p>
  <p><span style="font-size: medium;">It uses a 32-bit processor, fast response and stable operation. USB interface, can be directly interfaced to a pc. Self-detect Baud-rate (9600, 19200, 38400, 57600, 115200, 128000) </span></p>
  <p><span style="font-size: medium;">Example </span><br /><span style="font-size: medium;">Serial.begin(115200); // Set baud-rate to be 115200 </span><br /><span style="font-size: medium;">Serial.print("#1P1200T1000\r\n"­); // Turn channel 1 on at 1200 position for 1000ms. <br /></span><span style="font-size: medium;">Serial.print("#1P1200T1000#2P1600T1000\r\n"­); // Turn chanenl 1 and 2 simultaneously</span></p>
  <p><span style="font-size: medium;">This is the <a href="http://www.hobbyist.co.nz/?q=how-to-use-mini-usb-servo-controller">tutorial</a> to show how to use this servo controller.<br /></span></p>
  ";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:1:{i:0;a:11:{s:3:"fid";s:3:"176";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:25:"ServoController_small.jpg";s:3:"uri";s:34:"public://ServoController_small.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:6:"133372";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1346479734";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:1:"5";}}}}


cid: field:node:97
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:2623:"<p><span style="font-size: small;"><strong></strong>This is a super high torque servo used for high performance applications. It is durable and light weight due to its metal gears and case.</span></p><p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><strong><br /></strong></span></p><p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><strong>Specs:</strong></span></p><p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><b>6018 22kg Torque Metal Gear Servo</b> </span></p><ul><li><span class="MsoNormal" style="margin: 0cm 0cm 0pt; font-family: arial,helvetica,sans-serif; font-size: small;">Model: 6018.</span></li><li><p dir="ltr" style="line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;" id="docs-internal-guid-55fca881-eac0-547f-27ac-794cf13adbfd"><span style="font-size: small; font-family: arial,helvetica,sans-serif;"><span style="color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">18 Kg.cm @ 4.5 V</span><span style="color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"></span></span></p></li><li><p dir="ltr" style="line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;" id="docs-internal-guid-55fca881-eac0-547f-27ac-794cf13adbfd"><span style="font-size: small; font-family: arial,helvetica,sans-serif; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">22 Kg.cm @ 6 V</span></p></li><li><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><span class="MsoNormal" style="margin: 0cm 0cm 0pt;">Size: </span><span class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">75.5x28.75x45 mm</span>.</span></span></li><li><span class="MsoNormal" style="margin: 0cm 0cm 0pt; font-family: arial,helvetica,sans-serif; font-size: small;">Operating system: 0.2sec/60 degrees (4.8V).</span></li><li><span style="font-size: small; font-family: arial,helvetica,sans-serif;">Operating voltage: 4.8-7.2V.</span></li><li><span style="font-size: small; font-family: arial,helvetica,sans-serif;">Weight: 142.2g</span></li><li><span style="font-size: small; font-family: arial,helvetica,sans-serif;">Range: 180 degree<br /></span></li></ul>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:2639:"<p><span style="font-size: small;"><strong></strong>This is a super high torque servo used for high performance applications. It is durable and light weight due to its metal gears and case.</span></p>
  <p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><strong><br /></strong></span></p>
  <p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><strong>Specs:</strong></span></p>
  <p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><b>6018 22kg Torque Metal Gear Servo</b> </span></p>
  <ul><li><span class="MsoNormal" style="margin: 0cm 0cm 0pt; font-family: arial,helvetica,sans-serif; font-size: small;">Model: 6018.</span></li>
  <li>
  <p dir="ltr" style="line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;" id="docs-internal-guid-55fca881-eac0-547f-27ac-794cf13adbfd"><span style="font-size: small; font-family: arial,helvetica,sans-serif;"><span style="color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">18 Kg.cm @ 4.5 V</span><span style="color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"></span></span></p>
  </li>
  <li>
  <p dir="ltr" style="line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;" id="docs-internal-guid-55fca881-eac0-547f-27ac-794cf13adbfd"><span style="font-size: small; font-family: arial,helvetica,sans-serif; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">22 Kg.cm @ 6 V</span></p>
  </li>
  <li><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><span class="MsoNormal" style="margin: 0cm 0cm 0pt;">Size: </span><span class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">75.5x28.75x45 mm</span>.</span></span></li>
  <li><span class="MsoNormal" style="margin: 0cm 0cm 0pt; font-family: arial,helvetica,sans-serif; font-size: small;">Operating system: 0.2sec/60 degrees (4.8V).</span></li>
  <li><span style="font-size: small; font-family: arial,helvetica,sans-serif;">Operating voltage: 4.8-7.2V.</span></li>
  <li><span style="font-size: small; font-family: arial,helvetica,sans-serif;">Weight: 142.2g</span></li>
  <li><span style="font-size: small; font-family: arial,helvetica,sans-serif;">Range: 180 degree<br /></span></li>
  </ul>";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:1:{i:0;a:11:{s:3:"fid";s:3:"241";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:14:"6018 Servo.jpg";s:3:"uri";s:23:"public://6018 Servo.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:5:"25883";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1369738212";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:2:"37";}}}}


cid: field:node:106
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:95130:"<h2>Specs</h2><p><span style="font-size: medium;">Stable and Shock Proof. - Metal Gear - Double Ball Bearing - Connector Wire Length 300mm </span><br /><span style="font-size: medium;"> Weight : 55g</span><br /><span style="font-size: medium;"> Operating Speed : 0.17sec / 60 degrees (4.8V no load)</span><br /><span style="font-size: medium;"> Operating Speed : 0.13sec / 60 degrees (6.0V no load)</span><br /><span style="font-size: medium;"> Stall Torque : 13 kg-cm (180.5 oz-in) at 4.8V </span><br /><span style="font-size: medium;"> Stall Torque : 15 kg-cm (208.3 oz-in) at 6V</span><br /><span style="font-size: medium;">Gear Type: All Metal Gears<br />Spline diameter: 5.8 mm<br /></span></p><p><br /><img src="data:image/jpeg;base64,[encoded data, 31200 characters]" border="0" alt="" /><img src="data:image/jpeg;base64,[encoded data, 63108 characters]" border="0" alt="" /></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:95127:"<h2>Specs</h2>
  <p><span style="font-size: medium;">Stable and Shock Proof. - Metal Gear - Double Ball Bearing - Connector Wire Length 300mm </span><br /><span style="font-size: medium;"> Weight : 55g</span><br /><span style="font-size: medium;"> Operating Speed : 0.17sec / 60 degrees (4.8V no load)</span><br /><span style="font-size: medium;"> Operating Speed : 0.13sec / 60 degrees (6.0V no load)</span><br /><span style="font-size: medium;"> Stall Torque : 13 kg-cm (180.5 oz-in) at 4.8V </span><br /><span style="font-size: medium;"> Stall Torque : 15 kg-cm (208.3 oz-in) at 6V</span><br /><span style="font-size: medium;">Gear Type: All Metal Gears<br />Spline diameter: 5.8 mm<br /></span></p>
  <p><img src="data:image/jpeg;base64,[encoded data, 31200 characters]" border="0" alt="" /><img src="data:image/jpeg;base64,[encoded data, 63108 characters]" border="0" alt="" /></p>
  ";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:1:{i:0;a:11:{s:3:"fid";s:3:"301";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:79:"MG996R-Servo-High-Torque-Metal-Gear-Digital-RC-Servo-MG995-Upgrade-RC-Model.jpg";s:3:"uri";s:88:"public://MG996R-Servo-High-Torque-Metal-Gear-Digital-RC-Servo-MG995-Upgrade-RC-Model.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:5:"32501";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1372739205";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:2:"37";}}}}


cid: field:node:125
data:
  a:3:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:229:"<p><span style="font-family: verdana,geneva; font-size: medium;">Clear case for Raspberry pi. </span><span style="font-family: verdana,geneva; font-size: medium;">Case comes unassembled so assembling will be required. </span></p>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:230:"<p><span style="font-family: verdana,geneva; font-size: medium;">Clear case for Raspberry pi. </span><span style="font-family: verdana,geneva; font-size: medium;">Case comes unassembled so assembling will be required. </span></p>
  ";s:12:"safe_summary";s:0:"";}}}s:16:"uc_product_image";a:1:{s:3:"und";a:2:{i:0;a:11:{s:3:"fid";s:3:"357";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:23:"Raspberry Pi Case 1.jpg";s:3:"uri";s:32:"public://Raspberry Pi Case 1.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:6:"143262";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1385971040";s:11:"rdf_mapping";a:0:{}}i:1;a:11:{s:3:"fid";s:3:"356";s:3:"alt";s:0:"";s:5:"title";s:0:"";s:3:"uid";s:1:"1";s:8:"filename";s:23:"Raspberry Pi Case 2.jpg";s:3:"uri";s:32:"public://Raspberry Pi Case 2.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:6:"187134";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1385971040";s:11:"rdf_mapping";a:0:{}}}}s:16:"taxonomy_catalog";a:1:{s:3:"und";a:1:{i:0;a:1:{s:3:"tid";s:2:"45";}}}}


cid: field:node:99
data:
  a:1:{s:4:"body";a:1:{s:3:"und";a:1:{i:0;a:5:{s:5:"value";s:33695:"<p><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Android tablet app controls a Relay via Bluetooth&nbsp;</span></strong></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">In this step you will be controlling a relay with a Android App that you will be developing using the MIT App Inventor This step has two parts, part one will be controlling a relay and part two will be sending data to OLED from Android App. Complete this step before moving to step 3.</span></p><p></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><strong><em>What you need.</em></strong></span></p><ol><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="http://www.hobbyist.co.nz/?q=arduino-uno" target="_blank">Arduino Board</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Pc (Windows or Mac)</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Internet Access</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Google account</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="%20http://www.hobbyist.co.nz/?q=dht-11" target="_blank">DHT Sensor</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="http://www.hobbyist.co.nz/?q=dht-11"></a></span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="http://www.hobbyist.co.nz/?q=4-channel-relay-module" target="_blank">1 Channel Relay</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.hobbyist.co.nz/?q=4-channel-relay-module"></a></span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Android OS running Device (Phone or tablet)</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="http://www.hobbyist.co.nz/?q=bluetooth-module-device" target="_blank">Bluetooth Module</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">OLED display</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Connector cables&nbsp;</span></li></ol><p></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><strong>Arduino Bit:</strong>&nbsp;</span></p><p class="MsoSubtitle"><span class="MsoSubtleEmphasis" style="font-size: medium; font-family: arial, helvetica, sans-serif;"><strong>Step 2 – Part 1 Controlling a Relay</strong><o:p></o:p></span></p><p class="MsoNoSpacing"><span class="MsoSubtleEmphasis" style="font-size: medium; font-family: arial, helvetica, sans-serif;">Wiring the Hardware for step 2</span></p><ul><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium; text-indent: -18pt;">Do the component wiring as show in the wiring diagram below.</span></li><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium; text-indent: -18pt;">Note: when uploading the code to Arduino. Unplug 5V from the Bluetooth to disable it. Since USB and Bluetooth uses same TX/RX it will throw an error when loading code while Bluetooth is on.</span></li></ul><div style="text-indent: -24px; padding-left: 30px;"><a href="/sites/default/files/Wiring%20Sketch%201_bbb.jpg" target="_blank"><img src="/sites/default/files/Wiring%20Sketch%201_bbb.jpg" border="0" alt="Hardware Layout 1" width="600" height="507" /></a></div><div style="text-indent: -24px;"></div><p class="MsoSubtitle"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><em>&nbsp;Pin Mapping</em></span></p><table style="border: 2px solid #696969;" border="2"><tbody><tr><td><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Arduino &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></strong></td><td><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Bluetooth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></strong></td></tr><tr><td><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">1(TX)</span></td><td><span style="font-size: medium;">RX</span></td></tr><tr><td><span style="font-size: medium;">0(RX)</span></td><td><span style="font-size: medium;">TX</span></td></tr><tr><td><span style="font-size: medium;">GRD</span></td><td><span style="font-size: medium;">GRD</span></td></tr><tr><td><span style="font-size: medium;">5V</span></td><td><span style="font-size: medium;">5V (VCC)</span></td></tr><tr><td></td><td><br /><span style="font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: medium;">1 Channel Relay</span></strong></span></td></tr><tr><td><span style="font-size: medium;">5V</span></td><td><span style="font-size: medium;">VCC</span></td></tr><tr><td><span style="font-size: medium;">GRD</span></td><td><span style="font-size: medium;">GRD</span></td></tr><tr><td><span style="font-size: medium;">7</span></td><td><span style="font-size: medium;">IN</span></td></tr></tbody></table><p><br /><br /></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><strong>Arduino Code for step 2</strong></span></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">&nbsp;<a href="/sites/default/files/AndroidStarterKit/Arduino2Android_Part1_1.ino" target="_blank">[Code Here]</a></span></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><br /></span></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><strong>Android Bit:</strong><br /></span></p><ol><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><em><strong>Turn on Relay</strong></em></span></li></ol><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Log onto App Inventor using your credentials and create a new app and name it as you wish. In the example below its named&nbsp; MyApp. You will chnage this to RelayControl.</span></li></ul><div style="padding-left: 30px;"><a href="/sites/default/files/AndroidStarterKit/image002.png" target="_blank"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><font size="2"><img src="/sites/default/files/AndroidStarterKit/image002.png" border="0" alt="image2" width="600" height="441" /></font></span></a></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><font size="2"><br /></font></span></div><div><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Change the property for the screen</span></li><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">AlignHorizontal = centre</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Title = Relay Control (you can choose anything you like)</span></li></ul><li><em><font face="arial, helvetica, sans-serif" size="3">Note: You can change the ScreenOrientation to Landscape now if you want or later in Part 4 of this kit tutorial.&nbsp;</font></em></li></ul><div style="padding-left: 30px;"><font size="2"><a href="/sites/default/files/AndroidStarterKit/image003.png" target="_blank"><img src="/sites/default/files/AndroidStarterKit/image003.png" border="0" alt="Image3" width="600" height="437" /></a></font></div><div style="padding-left: 30px;"><font size="2"><a href="/sites/default/files/AndroidStarterKit/image003.png" target="_blank"></a></font><strong><em><font face="arial, helvetica, sans-serif" size="3">Adding Relay Buttons</font></em></strong></div><div style="padding-left: 30px;"><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Here is the list of component that is needed to turn a relay on and off.&nbsp; Drag them to your app Screen. Arrange them show below.</span></li></ul><ul><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Two Buttons&nbsp; (one for ON and another for OFF)</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">BluetoothClient(for connection Android to Arduino)</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Two HorizonatalArrangement&nbsp; (Use this to create space and layout)</span></li></ul></ul></div><div style="padding-left: 30px;"><a href="/sites/default/files/AndroidStarterKit/image004.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image004.png" border="0" alt="Image4" width="600" height="437" /></font></a></div><div style="padding-left: 30px;"><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Select the HorizontalArrangement Component from component list on screen and change its Height property to 5 pixels.&nbsp;</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Click OK.</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Do the same to second&nbsp; HorizontalArrangement.</span></li></ul></div><div style="padding-left: 30px;"><a href="/sites/default/files/AndroidStarterKit/image005.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image005.png" border="0" alt="Image5" width="600" height="437" /></font></a></div><div style="padding-left: 30px;"><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Select Button 1 and rename it to btnRelayON and change the following properties:</span></li><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Background Color = Green</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = rounded</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Relay ON</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 60 pixel</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 55 pixel&nbsp;</span></li></ul></ul><div><a href="/sites/default/files/AndroidStarterKit/image006.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image006.png" border="0" alt="Image6" width="600" height="437" /></font></a></div><div><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"></span></span><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Select Button 2 and rename it to btnRelayOFF and change the following properties:</span><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Background Color = Orange</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = rounded</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Relay OFF</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 60 pixel</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 55 pixel&nbsp;</span></li></ul></li></ul></div><div><a href="/sites/default/files/AndroidStarterKit/image007.png" target="_blank"><img src="/sites/default/files/AndroidStarterKit/image007.png" border="0" alt="Image7" width="600" height="437" /></a></div><div></div><div><em><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Adding Bluetooth Buttons</span></strong></em></div><div><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">These are the component we need to select the paired Bluetooth and then initiate the connection.&nbsp; Drag this to your screen as shown.</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">&nbsp;First Drag the HorizontalArrangement on very top. Drag the ListPicker inside the HorizonatalArrangement . Also drag the Button inside the&nbsp; HorizonatalArrangement to the right .</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">&nbsp;Drag the second HorizonatalArrangement in-between the ListPicket and Button and change its Width and Height properties to 5 pixel.</span></li><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Two HorizonalArrangement</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">One Button</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">One ListPicker - <em>(from Basic -&gt; List Picker)</em></span></li></ul></ul><div><a href="/sites/default/files/AndroidStarterKit/image008.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image008.png" border="0" alt="Image8" width="600" height="437" /></font></a></div><div><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Change the properties of the ListPicker and Button as below:</span></li></ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">ListPicker</span></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Rename = lstpkBluetooth</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Background Color = Cyan</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = Rounded</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Select Bluetooth</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 150 pixel</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 50 pixel</span></li></ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Button&nbsp;</span></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Rename = btnConnect</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Background Color = Light Gray</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = Rounded</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Connect</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 150 pixel</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 50 pixel</span></li></ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Optiaonal</span></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Add an extra HorizentalArrangement on top as show with 5 x 5 pixel to add some space on top of screen.&nbsp;</span></li></ul></div><div><img src="/sites/default/files/AndroidStarterKit/image009.png" border="0" alt="Image9" width="600" height="471" /></div><div><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Open the Block Editor and drag the blocks from the components and connect them as shown below.&nbsp;</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">These Blocks list all the paired Bluetooth on the android device and allow us to select the one that you would connect to this application.</span></li></ul><div><a href="/sites/default/files/AndroidStarterKit/image010.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image010.png" border="0" alt="Image10" width="600" height="498" /></font></a></div><div><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">To build the code that will connect the Bluetooth (that was selected from the above block of code) will create a block code that will check if the text on the connect button says “Connect”&nbsp;</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">it will connect to the selected Bluetooth and set the text on the connect button to “Disconnect” and if it says Disconnect then it will disconnect the connected Bluetooth and set the connect button to “Connect” again.</span></li></ul><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Drag a btnConnect.click block and connect one if else and one if block from the control menu. Right click on code Area to get control menu. As shown below.</span></p><p><em><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Set of blocks are accessed by right clicking on the code area. These include blocks for Defination, Text, &nbsp;List, Maths, Logic, Control and Color. To get more understanding of these block, have a look at the referance document link:</span></em></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><br /></span></p><p><a href="http://appinventor.mit.edu/explore/content/reference-documentation.html" target="_blank"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Knowing more about Blocks and how to use them</span></a></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">&nbsp;</span></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><img src="/sites/default/files/AndroidStarterKit/image011.png" border="0" width="602" height="500" /></span></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag the blocks from the components show below. Change the text on the text block to Connect. The equals block is from Number menu and text block is from Text menu.</span></li></ul><p><a href="/sites/default/files/AndroidStarterKit/image012.png" target="_blank"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><img src="/sites/default/files/AndroidStarterKit/image012.png" border="0" alt="Image12" width="600" height="498" /></span></a></p><p></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag the others block and connect as shown below to complete this piece of code. Change the text on the text blocks as shown.</span></li></ul><p><a href="/sites/default/files/AndroidStarterKit/image013.png" target="_blank"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><img src="/sites/default/files/AndroidStarterKit/image013.png" border="0" alt="Image13" width="600" height="498" /></span></a></p><p></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Next code will send text (~1 for ON and ~0 for OFF) to the Arduino when the Relay ON and Relay OFF button is clicked on the app.</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">When the Relay ON or Relay OFF is clicked, the code will check if there is a Bluetooth connect. If connection is there it will send text (~1 or ~0) to Arduino.</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">~1 and ~0 are set as special text to trigger relay ON and OFF. \n is added to indicate end of line.</span></li></ul><p></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag the blocks and connect as shown below.&nbsp;</span></p><p><a href="/sites/default/files/AndroidStarterKit/image014.png" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><img src="/sites/default/files/AndroidStarterKit/image014.png" border="0" alt="Image14" width="600" height="538" /></span></a></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">This completes first part of code. Your code should look like as shown below.&nbsp;</span></li></ul><div><a href="/sites/default/files/AndroidStarterKit/image015.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image015.png" border="0" alt="Image15" width="600" height="538" /></font></a></div><div><font face="arial, helvetica, sans-serif" size="3"><br /></font></div><div><ul><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Time to test the App. Turn on the Arduino, make sure the the Bluetooth is connected and ON.</span></li><ul><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Pair your android with the Bluetooth</span></li><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Start the App on the android and click the Select Bluetooth button. Select the paired Bluetooth from the list. There might be couple of them on the list depending on the number of paired Bluetooth on your android.</span></li><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Click Connect button</span></li><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Click on the Relay ON button. This should turn relay ON. Clicking the Relay OFF button will turn it OFF</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">.</span></li></ul></ul><div><font face="arial, helvetica, sans-serif" size="3"><br /></font></div><div><span style="font-size: medium;"><strong><font face="arial, helvetica, sans-serif" size="3">Arduino Bit:</font></strong></span></div><div><p><em><strong><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">2.&nbsp; &nbsp; &nbsp;Send Message to OLED Display</span></strong></em></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">This is the continuous from above. This part will send data from android to OLED display connected to Arduino. Complete the above steps before continuing below.</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">&nbsp;</span></li></ul><h3><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Hardware set for this part.</span></h3><p><a href="/sites/default/files/Wiring%20Sketch%202_bbb.jpg" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><img src="/sites/default/files/Wiring%20Sketch%202_bbb.jpg" border="0" alt="Image16" width="600" height="414" /></span></a></p><p></p><h3><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Pin Layout</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></h3><p></p><table border="1" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b>Arduino</b></span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b>Bluetooth</b></span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">1 (TX)</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">RX</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">0 (RX)</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">TX</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">5 V</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">VCC</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b>1 Channel Relay</b></span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">5 V</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">VCC</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">7</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">IN</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b>OLED Display</b></span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">5V</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">VCC</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">4</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">SDA</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">5</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">SCL</span></p></td></tr><tr><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p></td><td valign="top" width="308"><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p></td></tr></tbody></table><p><strong><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Arduino Code: </span></strong></p><p><a href="/sites/default/files/AndroidStarterKit/Arduino2Android_Part2_1.ino"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">[Code Here]</span></a></p><p><a href="/sites/default/files/AndroidStarterKit/ztoleddisplay%20.zip" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">[OLED Library]</span></a></p><p></p><div id="yui_3_7_2_1_1373934274853_3107" style="color: #454545; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal;"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b id="yui_3_7_2_1_1373934274853_3628">- download into Arduino IDE-&gt;libraries folder</b></span></div><div id="yui_3_7_2_1_1373934274853_3106" style="color: #454545; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal;"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b id="yui_3_7_2_1_1373934274853_3105">- Restart IDE after doing above to access the libraries</b></span></div><p><font face="arial, helvetica, sans-serif" size="3">OLED library needs tyo be installed before you start using it.&nbsp;</font></p><p><a href="http://arduino.cc/en/Guide/Libraries" target="_blank"><font face="arial, helvetica, sans-serif" size="3">How to Install a arduino library</font></a></p><p></p><p><strong><font face="arial, helvetica, sans-serif" size="3">Android Bit:</font></strong></p><h4><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">3. &nbsp; &nbsp; &nbsp;Send Data to OLED Display</span></h4><p></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">In this part data will be sent from android to Arduino and show on oled display connected to Arduino.</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">To archive this add a textbox field and button as shown below and also rearrange existed buttons.</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Add four Horizontalarrangement, a Textbox and a Button</span></li></ul><p></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">HorizontalArrangement</span></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag a HorizontalArrangement and rearrange the Relay ON and Off inside the HorizontalArrangement</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag the second in-between the two Relay button and change the size to 5x5 pixel.</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag two above and below Textbox to create space. Change Height to 5 pixel.</span></li></ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Textbox</span></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Rename = txtMessage</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 300 pixel</span></li></ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Button</span></p><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Rename = btnSenttoOLED</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Sent to OLED</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = rounded</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 30 pixel</span></li><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 150 pixel</span></li></ul><div></div><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Set the component as shown below:</span></p><p><a href="/sites/default/files/AndroidStarterKit/image017.png" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><img src="/sites/default/files/AndroidStarterKit/image017.png" border="0" alt="Image17" width="600" height="471" /></span></a></p><p></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Open Block editor and drag the blocks and connect it as shown below. This block of code sends the text on the app textbox as string to Arduino and display on OLED</span></p><p></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">When Bluetooth is connected and the clears the textbox for next data.</span></p><p><a href="/sites/default/files/AndroidStarterKit/image018.png" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><img src="/sites/default/files/AndroidStarterKit/image018.png" border="0" alt="Image18" width="600" height="486" /></span></a></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">This completes part 2 of the tutorial. Load the arduino code and test your app by sending any message to OLED.</span></p><p><a href="http://www.hobbyist.co.nz/?q=android-arduino-complete" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Part 3 - Read DHT Sensor</span></a></p><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="http://www.hobbyist.co.nz/?q=android-in-app-pairing-bluetooth" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Part 4 - Adding Blutooth Pair Option and Application Changes</span></a></span></p></div></div></div></div></div></div></div>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";s:10:"safe_value";s:33151:"<p><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Android tablet app controls a Relay via Bluetooth </span></strong></p>
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">In this step you will be controlling a relay with a Android App that you will be developing using the MIT App Inventor This step has two parts, part one will be controlling a relay and part two will be sending data to OLED from Android App. Complete this step before moving to step 3.</span></p>

  <p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><strong><em>What you need.</em></strong></span></p>
  <ol><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="http://www.hobbyist.co.nz/?q=arduino-uno" target="_blank">Arduino Board</a>                                            </span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Pc (Windows or Mac)</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Internet Access</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Google account</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="%20http://www.hobbyist.co.nz/?q=dht-11" target="_blank">DHT Sensor</a>                                             <a href="http://www.hobbyist.co.nz/?q=dht-11"></a></span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="http://www.hobbyist.co.nz/?q=4-channel-relay-module" target="_blank">1 Channel Relay</a>                                        <a href="http://www.hobbyist.co.nz/?q=4-channel-relay-module"></a></span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Android OS running Device (Phone or tablet)</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="http://www.hobbyist.co.nz/?q=bluetooth-module-device" target="_blank">Bluetooth Module</a>                                      </span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">OLED display</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Connector cables </span></li>
  </ol><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><strong>Arduino Bit:</strong> </span></p>
  <p class="MsoSubtitle"><span class="MsoSubtleEmphasis" style="font-size: medium; font-family: arial, helvetica, sans-serif;"><strong>Step 2 – Part 1 Controlling a Relay</strong><p></p></span></p>
  <p class="MsoNoSpacing"><span class="MsoSubtleEmphasis" style="font-size: medium; font-family: arial, helvetica, sans-serif;">Wiring the Hardware for step 2</span></p>
  <ul><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium; text-indent: -18pt;">Do the component wiring as show in the wiring diagram below.</span></li>
  <li><span style="font-family: arial, helvetica, sans-serif; font-size: medium; text-indent: -18pt;">Note: when uploading the code to Arduino. Unplug 5V from the Bluetooth to disable it. Since USB and Bluetooth uses same TX/RX it will throw an error when loading code while Bluetooth is on.</span></li>
  </ul><div style="text-indent: -24px; padding-left: 30px;"><a href="/sites/default/files/Wiring%20Sketch%201_bbb.jpg" target="_blank"><img src="/sites/default/files/Wiring%20Sketch%201_bbb.jpg" border="0" alt="Hardware Layout 1" width="600" height="507" /></a></div>
  <div style="text-indent: -24px;"></div>
  <p class="MsoSubtitle"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><em> Pin Mapping</em></span></p>
  <table style="border: 2px solid #696969;" border="2"><tbody><tr><td><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Arduino                          </span></strong></td>
  <td><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Bluetooth                                </span></strong></td>
  </tr><tr><td><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">1(TX)</span></td>
  <td><span style="font-size: medium;">RX</span></td>
  </tr><tr><td><span style="font-size: medium;">0(RX)</span></td>
  <td><span style="font-size: medium;">TX</span></td>
  </tr><tr><td><span style="font-size: medium;">GRD</span></td>
  <td><span style="font-size: medium;">GRD</span></td>
  </tr><tr><td><span style="font-size: medium;">5V</span></td>
  <td><span style="font-size: medium;">5V (VCC)</span></td>
  </tr><tr><td></td>
  <td><span style="font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: medium;">1 Channel Relay</span></strong></span></td>
  </tr><tr><td><span style="font-size: medium;">5V</span></td>
  <td><span style="font-size: medium;">VCC</span></td>
  </tr><tr><td><span style="font-size: medium;">GRD</span></td>
  <td><span style="font-size: medium;">GRD</span></td>
  </tr><tr><td><span style="font-size: medium;">7</span></td>
  <td><span style="font-size: medium;">IN</span></td>
  </tr></tbody></table><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><strong>Arduino Code for step 2</strong></span></p>
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"> <a href="/sites/default/files/AndroidStarterKit/Arduino2Android_Part1_1.ino" target="_blank">[Code Here]</a></span></p>
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><br /></span></p>
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><strong>Android Bit:</strong><br /></span></p>
  <ol><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><em><strong>Turn on Relay</strong></em></span></li>
  </ol><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Log onto App Inventor using your credentials and create a new app and name it as you wish. In the example below its named  MyApp. You will chnage this to RelayControl.</span></li>
  </ul><div style="padding-left: 30px;"><a href="/sites/default/files/AndroidStarterKit/image002.png" target="_blank"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><font size="2"><img src="/sites/default/files/AndroidStarterKit/image002.png" border="0" alt="image2" width="600" height="441" /></font></span></a></div>
  <div><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><font size="2"><br /></font></span></div>
  <div>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Change the property for the screen</span></li>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">AlignHorizontal = centre</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Title = Relay Control (you can choose anything you like)</span></li>
  </ul><li><em><font face="arial, helvetica, sans-serif" size="3">Note: You can change the ScreenOrientation to Landscape now if you want or later in Part 4 of this kit tutorial. </font></em></li>
  </ul><div style="padding-left: 30px;"><font size="2"><a href="/sites/default/files/AndroidStarterKit/image003.png" target="_blank"><img src="/sites/default/files/AndroidStarterKit/image003.png" border="0" alt="Image3" width="600" height="437" /></a></font></div>
  <div style="padding-left: 30px;"><font size="2"><a href="/sites/default/files/AndroidStarterKit/image003.png" target="_blank"></a></font><strong><em><font face="arial, helvetica, sans-serif" size="3">Adding Relay Buttons</font></em></strong></div>
  <div style="padding-left: 30px;">
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Here is the list of component that is needed to turn a relay on and off.  Drag them to your app Screen. Arrange them show below.</span></li>
  </ul><ul><ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Two Buttons  (one for ON and another for OFF)</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">BluetoothClient(for connection Android to Arduino)</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Two HorizonatalArrangement  (Use this to create space and layout)</span></li>
  </ul></ul></div>
  <div style="padding-left: 30px;"><a href="/sites/default/files/AndroidStarterKit/image004.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image004.png" border="0" alt="Image4" width="600" height="437" /></font></a></div>
  <div style="padding-left: 30px;">
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Select the HorizontalArrangement Component from component list on screen and change its Height property to 5 pixels. </span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Click OK.</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Do the same to second  HorizontalArrangement.</span></li>
  </ul></div>
  <div style="padding-left: 30px;"><a href="/sites/default/files/AndroidStarterKit/image005.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image005.png" border="0" alt="Image5" width="600" height="437" /></font></a></div>
  <div style="padding-left: 30px;">
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Select Button 1 and rename it to btnRelayON and change the following properties:</span></li>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Background Color = Green</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = rounded</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Relay ON</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 60 pixel</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 55 pixel </span></li>
  </ul></ul><div><a href="/sites/default/files/AndroidStarterKit/image006.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image006.png" border="0" alt="Image6" width="600" height="437" /></font></a></div>
  <div><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"></span></span>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Select Button 2 and rename it to btnRelayOFF and change the following properties:</span>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Background Color = Orange</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = rounded</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Relay OFF</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 60 pixel</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 55 pixel </span></li>
  </ul></li>
  </ul></div>
  <div><a href="/sites/default/files/AndroidStarterKit/image007.png" target="_blank"><img src="/sites/default/files/AndroidStarterKit/image007.png" border="0" alt="Image7" width="600" height="437" /></a></div>
  <div></div>
  <div><em><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Adding Bluetooth Buttons</span></strong></em></div>
  <div>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">These are the component we need to select the paired Bluetooth and then initiate the connection.  Drag this to your screen as shown.</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"> First Drag the HorizontalArrangement on very top. Drag the ListPicker inside the HorizonatalArrangement . Also drag the Button inside the  HorizonatalArrangement to the right .</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"> Drag the second HorizonatalArrangement in-between the ListPicket and Button and change its Width and Height properties to 5 pixel.</span></li>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Two HorizonalArrangement</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">One Button</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">One ListPicker - <em>(from Basic -&gt; List Picker)</em></span></li>
  </ul></ul><div><a href="/sites/default/files/AndroidStarterKit/image008.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image008.png" border="0" alt="Image8" width="600" height="437" /></font></a></div>
  <div>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Change the properties of the ListPicker and Button as below:</span></li>
  </ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">ListPicker</span></p>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Rename = lstpkBluetooth</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Background Color = Cyan</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = Rounded</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Select Bluetooth</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 150 pixel</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 50 pixel</span></li>
  </ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Button </span></p>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Rename = btnConnect</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Background Color = Light Gray</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = Rounded</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Connect</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 150 pixel</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 50 pixel</span></li>
  </ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Optiaonal</span></p>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Add an extra HorizentalArrangement on top as show with 5 x 5 pixel to add some space on top of screen. </span></li>
  </ul></div>
  <div><img src="/sites/default/files/AndroidStarterKit/image009.png" border="0" alt="Image9" width="600" height="471" /></div>
  <div>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Open the Block Editor and drag the blocks from the components and connect them as shown below. </span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">These Blocks list all the paired Bluetooth on the android device and allow us to select the one that you would connect to this application.</span></li>
  </ul><div><a href="/sites/default/files/AndroidStarterKit/image010.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image010.png" border="0" alt="Image10" width="600" height="498" /></font></a></div>
  <div>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">To build the code that will connect the Bluetooth (that was selected from the above block of code) will create a block code that will check if the text on the connect button says “Connect” </span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">it will connect to the selected Bluetooth and set the text on the connect button to “Disconnect” and if it says Disconnect then it will disconnect the connected Bluetooth and set the connect button to “Connect” again.</span></li>
  </ul><p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Drag a btnConnect.click block and connect one if else and one if block from the control menu. Right click on code Area to get control menu. As shown below.</span></p>
  <p><em><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Set of blocks are accessed by right clicking on the code area. These include blocks for Defination, Text,  List, Maths, Logic, Control and Color. To get more understanding of these block, have a look at the referance document link:</span></em></p>
  <p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><br /></span></p>
  <p><a href="http://appinventor.mit.edu/explore/content/reference-documentation.html" target="_blank"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Knowing more about Blocks and how to use them</span></a></p>
  <p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"> </span></p>
  <p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><img src="/sites/default/files/AndroidStarterKit/image011.png" border="0" width="602" height="500" /></span></p>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag the blocks from the components show below. Change the text on the text block to Connect. The equals block is from Number menu and text block is from Text menu.</span></li>
  </ul><p><a href="/sites/default/files/AndroidStarterKit/image012.png" target="_blank"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><img src="/sites/default/files/AndroidStarterKit/image012.png" border="0" alt="Image12" width="600" height="498" /></span></a></p>

  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag the others block and connect as shown below to complete this piece of code. Change the text on the text blocks as shown.</span></li>
  </ul><p><a href="/sites/default/files/AndroidStarterKit/image013.png" target="_blank"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><img src="/sites/default/files/AndroidStarterKit/image013.png" border="0" alt="Image13" width="600" height="498" /></span></a></p>

  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Next code will send text (~1 for ON and ~0 for OFF) to the Arduino when the Relay ON and Relay OFF button is clicked on the app.</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">When the Relay ON or Relay OFF is clicked, the code will check if there is a Bluetooth connect. If connection is there it will send text (~1 or ~0) to Arduino.</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">~1 and ~0 are set as special text to trigger relay ON and OFF. \n is added to indicate end of line.</span></li>
  </ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag the blocks and connect as shown below. </span></p>
  <p><a href="/sites/default/files/AndroidStarterKit/image014.png" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><img src="/sites/default/files/AndroidStarterKit/image014.png" border="0" alt="Image14" width="600" height="538" /></span></a></p>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">This completes first part of code. Your code should look like as shown below. </span></li>
  </ul><div><a href="/sites/default/files/AndroidStarterKit/image015.png" target="_blank"><font face="arial, helvetica, sans-serif" size="3"><img src="/sites/default/files/AndroidStarterKit/image015.png" border="0" alt="Image15" width="600" height="538" /></font></a></div>
  <div><font face="arial, helvetica, sans-serif" size="3"><br /></font></div>
  <div>
  <ul><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Time to test the App. Turn on the Arduino, make sure the the Bluetooth is connected and ON.</span></li>
  <ul><li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Pair your android with the Bluetooth</span></li>
  <li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Start the App on the android and click the Select Bluetooth button. Select the paired Bluetooth from the list. There might be couple of them on the list depending on the number of paired Bluetooth on your android.</span></li>
  <li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Click Connect button</span></li>
  <li><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Click on the Relay ON button. This should turn relay ON. Clicking the Relay OFF button will turn it OFF</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">.</span></li>
  </ul></ul><div><font face="arial, helvetica, sans-serif" size="3"><br /></font></div>
  <div><span style="font-size: medium;"><strong><font face="arial, helvetica, sans-serif" size="3">Arduino Bit:</font></strong></span></div>
  <div>
  <p><em><strong><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">2.     Send Message to OLED Display</span></strong></em></p>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">This is the continuous from above. This part will send data from android to OLED display connected to Arduino. Complete the above steps before continuing below.</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"> </span></li>
  </ul><h3><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Hardware set for this part.</span></h3>
  <p><a href="/sites/default/files/Wiring%20Sketch%202_bbb.jpg" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><img src="/sites/default/files/Wiring%20Sketch%202_bbb.jpg" border="0" alt="Image16" width="600" height="414" /></span></a></p>

  <h3><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Pin Layout</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">               </span></h3>

  <table border="1" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b>Arduino</b></span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b>Bluetooth</b></span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">1 (TX)</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">RX</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">0 (RX)</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">TX</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">5 V</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">VCC</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"> </span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b>1 Channel Relay</b></span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">5 V</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">VCC</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">7</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">IN</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"> </span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b>OLED Display</b></span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">5V</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">VCC</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">GRD</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">4</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">SDA</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">5</span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">SCL</span></p>
  </td>
  </tr><tr><td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"> </span></p>
  </td>
  <td valign="top" width="308">
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"> </span></p>
  </td>
  </tr></tbody></table><p><strong><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Arduino Code: </span></strong></p>
  <p><a href="/sites/default/files/AndroidStarterKit/Arduino2Android_Part2_1.ino"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">[Code Here]</span></a></p>
  <p><a href="/sites/default/files/AndroidStarterKit/ztoleddisplay%20.zip" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">[OLED Library]</span></a></p>

  <div id="yui_3_7_2_1_1373934274853_3107" style="color: #454545; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal;"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b id="yui_3_7_2_1_1373934274853_3628">- download into Arduino IDE-&gt;libraries folder</b></span></div>
  <div id="yui_3_7_2_1_1373934274853_3106" style="color: #454545; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal;"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><b id="yui_3_7_2_1_1373934274853_3105">- Restart IDE after doing above to access the libraries</b></span></div>
  <p><font face="arial, helvetica, sans-serif" size="3">OLED library needs tyo be installed before you start using it. </font></p>
  <p><a href="http://arduino.cc/en/Guide/Libraries" target="_blank"><font face="arial, helvetica, sans-serif" size="3">How to Install a arduino library</font></a></p>

  <p><strong><font face="arial, helvetica, sans-serif" size="3">Android Bit:</font></strong></p>
  <h4><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">3.      Send Data to OLED Display</span></h4>

  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">In this part data will be sent from android to Arduino and show on oled display connected to Arduino.</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">To archive this add a textbox field and button as shown below and also rearrange existed buttons.</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Add four Horizontalarrangement, a Textbox and a Button</span></li>
  </ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">HorizontalArrangement</span></p>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag a HorizontalArrangement and rearrange the Relay ON and Off inside the HorizontalArrangement</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag the second in-between the two Relay button and change the size to 5x5 pixel.</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Drag two above and below Textbox to create space. Change Height to 5 pixel.</span></li>
  </ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Textbox</span></p>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Rename = txtMessage</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 300 pixel</span></li>
  </ul><p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Button</span></p>
  <ul><li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Rename = btnSenttoOLED</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Text = Sent to OLED</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Shape = rounded</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Height = 30 pixel</span></li>
  <li><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Width = 150 pixel</span></li>
  </ul><div></div>
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Set the component as shown below:</span></p>
  <p><a href="/sites/default/files/AndroidStarterKit/image017.png" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><img src="/sites/default/files/AndroidStarterKit/image017.png" border="0" alt="Image17" width="600" height="471" /></span></a></p>

  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Open Block editor and drag the blocks and connect it as shown below. This block of code sends the text on the app textbox as string to Arduino and display on OLED</span></p>

  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">When Bluetooth is connected and the clears the textbox for next data.</span></p>
  <p><a href="/sites/default/files/AndroidStarterKit/image018.png" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><img src="/sites/default/files/AndroidStarterKit/image018.png" border="0" alt="Image18" width="600" height="486" /></span></a></p>
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">This completes part 2 of the tutorial. Load the arduino code and test your app by sending any message to OLED.</span></p>
  <p><a href="http://www.hobbyist.co.nz/?q=android-arduino-complete" target="_blank"><span style="font-size: medium; font-family: arial, helvetica, sans-serif;">Part 3 - Read DHT Sensor</span></a></p>
  <p><span style="font-size: medium; font-family: arial, helvetica, sans-serif;"><a href="http://www.hobbyist.co.nz/?q=android-in-app-pairing-bluetooth" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Part 4 - Adding Blutooth Pair Option and Application Changes</span></a></span></p>
  </div>
  </div>
  </div>
  </div>
  </div>
  </div>
  </div>
  ";s:12:"safe_summary";s:0:"";}}}}


