tag:blogger.com,1999:blog-69965137021437358202023-11-16T09:26:59.636-08:00Tim's Arduino GamesTimhttp://www.blogger.com/profile/07225153872191471067noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6996513702143735820.post-65680763340875676322019-09-06T08:17:00.004-07:002020-11-12T05:14:35.608-08:00Tim's Racer (Arduino)<br />
<h2 style="text-align: center;">
A Little Race game for the Arduino</h2>
<h2 style="text-align: center;">
on a Nokia LCD Screen via I2C Module.</h2>
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/-iiQu0-NHPk/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/-iiQu0-NHPk?feature=player_embedded" width="320"></iframe></div><div><br /></div><div>I have created a HEX file of this game <a href="https://drive.google.com/file/d/1SjDVvMe4r9P_k4ii6ymSiJXk700rC8fB/view?usp=sharing">Tims_Racer.zip</a></div><div>Inside the zip the are versions for the UNO and NANO, with or without the bootloader (old bootloader for Nano)</div><div>Also there is a copy of XLoader to upload the HEX to the Arduino.</div><div><br /></div><div>It needs the same setup as <a href="https://timsarduinogames.blogspot.com/2019/08/brick-bottle-or-three.html" target="_blank">Brick a Bottle or Three</a>.</div><div>The pins for the buttons on the Arduino are as follows.</div><div><br /></div><div>A0 = Button 1<br />A1 = Button 2<br />A2 = Button 3<br />A3 = Button 4<br />D8 = Button LED<br />D9 = Piezo</div><div><br /></div><div>Remember the Arduino is has 5 volt data and the Nokia Screen is 3.3 volt.</div><div>Power going to the PCF8574 should only be 3.3 volt.</div><div>I have since added 10k resistors in line to the data leads connected to the Nokia screen.</div><div>Use at your own risk.</div>Timhttp://www.blogger.com/profile/07225153872191471067noreply@blogger.com0tag:blogger.com,1999:blog-6996513702143735820.post-7531534107470205032019-08-07T09:22:00.001-07:002020-11-12T04:44:50.611-08:00Brick a Bottle or Three (Arduino)<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/WaqJomo8MWA/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/WaqJomo8MWA?feature=player_embedded" width="320"></iframe></div>
<br />
<div style="text-align: center;">
<span style="font-size: large;">A little game to show how to use a PCF8574 with a Nokia 5110 screen.</span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvCRiJS0a8zIh98hZh3mDKLjAmI0MCKqyvsLC3Xw25VgYw-BPOwalvVdgXKuPvyY0k-Krb8kgcDcaSAG8OsB6_TiF-d0Bw9ZMX7dAwncVjppuPE11ugubpI09Cf0C_RBmHWyVVWqWSzeOX/s1600/Photo.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1050" data-original-width="1600" height="420" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvCRiJS0a8zIh98hZh3mDKLjAmI0MCKqyvsLC3Xw25VgYw-BPOwalvVdgXKuPvyY0k-Krb8kgcDcaSAG8OsB6_TiF-d0Bw9ZMX7dAwncVjppuPE11ugubpI09Cf0C_RBmHWyVVWqWSzeOX/s640/Photo.png" width="640" /></a></div>
<div>
<br /></div>
<h3>
Components:</h3>
<div>
Arduino</div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNSmG9q56om8Bv9ntXI0hngYtzUPQwgAxYMWjEzSGf1GMTqU-LvHw2PVLv4pj_BoJbXdyehR4RH4-4AFKna5vh4SMuSSTXEdSdyg5qK8TA3qKv0zY4MU93qXQG2JqFs38yEHXk2MrK1IgR/s1600/Arduino+UNO.png"><img border="0" height="126" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNSmG9q56om8Bv9ntXI0hngYtzUPQwgAxYMWjEzSGf1GMTqU-LvHw2PVLv4pj_BoJbXdyehR4RH4-4AFKna5vh4SMuSSTXEdSdyg5qK8TA3qKv0zY4MU93qXQG2JqFs38yEHXk2MrK1IgR/s200/Arduino+UNO.png" width="200" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE3mcb4QHvuU6xgemlhvhvsmhDKp8o0e35GCDxvySj8Hk9YEFN97w7WnvpDiHCL1n5XmdU0R9ZZUoAvD_gPZMyhnqURo_qkYxgsb0-DdJYebq30OHkl8aI7ix-ir3A2stIeEDWwK6xit5H/s1600/Arduino+NANO.png"><img border="0" height="181" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE3mcb4QHvuU6xgemlhvhvsmhDKp8o0e35GCDxvySj8Hk9YEFN97w7WnvpDiHCL1n5XmdU0R9ZZUoAvD_gPZMyhnqURo_qkYxgsb0-DdJYebq30OHkl8aI7ix-ir3A2stIeEDWwK6xit5H/s200/Arduino+NANO.png" width="200" /></a></div>
<div>
<br /></div>
<div>
Breadboard (and leads)</div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuPjrd5jghk7tDQquWoByO0sFqRNzEqvb_-PIw-j2hvZZf_OIuSzXH2HiFFoCUzo_sEj2M4INjEsR1vBWJlYgyeHrzHGOn_UjEW8VwRmdtcF2OKNDzTUBbK1cPrLcusq7W2ucOF3kY5NGV/s1600/Breadboard+and+Leads.png"><img border="0" height="109" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuPjrd5jghk7tDQquWoByO0sFqRNzEqvb_-PIw-j2hvZZf_OIuSzXH2HiFFoCUzo_sEj2M4INjEsR1vBWJlYgyeHrzHGOn_UjEW8VwRmdtcF2OKNDzTUBbK1cPrLcusq7W2ucOF3kY5NGV/s200/Breadboard+and+Leads.png" width="200" /></a></div>
<div>
<br /></div>
<div>
Nokia 5110 Screen</div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjobH49OUbjbefo8nc5o_wzPltp37pJRCGyAC1mkkgB_tyfW5bWHgTEjfo6MVhFB8AXK5_avdYEXpC-Zx6Myuf2OEjwrskKOFOzuipQgp_mzd_UqkZO-T9t_zRDs9-5zvDCM6EA2wG1DrEx/s1600/Piezo+Sounder.png" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgClggFxGPjmTsBWkTZpku3c2vFDT4pSGybZHsHTa9rC-nnnk0y3EfAZj5hQ0Ai0Xj8svmnnLv_8VlEDjZx_thpWkpaRuAMbX25624zuT1y8PMmAhqio_yVosqvdOYUbrLlTeha7TrBXpW2/s1600/Nokia+5110+Screen.png"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgClggFxGPjmTsBWkTZpku3c2vFDT4pSGybZHsHTa9rC-nnnk0y3EfAZj5hQ0Ai0Xj8svmnnLv_8VlEDjZx_thpWkpaRuAMbX25624zuT1y8PMmAhqio_yVosqvdOYUbrLlTeha7TrBXpW2/s200/Nokia+5110+Screen.png" width="194" /></a><br />
<br />
PCF8574<br />
I2C Serial Interface Board Module for 1602LCD Display (PCF8574)<br />
PCF8574 Module<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMe39OiABRIncPqAs-U0o-gE6yTO5-EpgMen57CoOtFDjcXYLFREDtw7sUb94ix3jHBctS1UbM36Y4PtHPh9CbF8CIgrxV47tVecHPos8K_ramipIqqKygumjuSHYmORovK3prEfxvshwn/s1600/SPI+Serial+Interface+for+1602LCD.png"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMe39OiABRIncPqAs-U0o-gE6yTO5-EpgMen57CoOtFDjcXYLFREDtw7sUb94ix3jHBctS1UbM36Y4PtHPh9CbF8CIgrxV47tVecHPos8K_ramipIqqKygumjuSHYmORovK3prEfxvshwn/s200/SPI+Serial+Interface+for+1602LCD.png" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmA6vQJUhiqui5-hsZ7rGO5BmLcdyYw3IG3I-Ip5YPBas19X33gILSceYh7Qa5klIzRy5qCza8QssBjtTvbqraWOmttQjbx2xQHKg-8QNAVxnfgq5NiYo8t85m2mnR49jPO7c7zOr5MRPM/s1600/PFC8574+Module.png"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmA6vQJUhiqui5-hsZ7rGO5BmLcdyYw3IG3I-Ip5YPBas19X33gILSceYh7Qa5klIzRy5qCza8QssBjtTvbqraWOmttQjbx2xQHKg-8QNAVxnfgq5NiYo8t85m2mnR49jPO7c7zOr5MRPM/s200/PFC8574+Module.png" /></a><br />
<br />
Piezo (for sound)<br />
A bit of corrugated card board to amplify the sound made by the piezo.<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjobH49OUbjbefo8nc5o_wzPltp37pJRCGyAC1mkkgB_tyfW5bWHgTEjfo6MVhFB8AXK5_avdYEXpC-Zx6Myuf2OEjwrskKOFOzuipQgp_mzd_UqkZO-T9t_zRDs9-5zvDCM6EA2wG1DrEx/s1600/Piezo+Sounder.png"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjobH49OUbjbefo8nc5o_wzPltp37pJRCGyAC1mkkgB_tyfW5bWHgTEjfo6MVhFB8AXK5_avdYEXpC-Zx6Myuf2OEjwrskKOFOzuipQgp_mzd_UqkZO-T9t_zRDs9-5zvDCM6EA2wG1DrEx/s200/Piezo+Sounder.png" width="198" /></a><br />
<br />
4 x Push on Buttons</div>
<div>
</div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiTMWxLNRpVaMHiVLitTHXUWgxyifpSjAfSFBQDxgj6c9i4jk0A0Np-8Zo5UxzP64917_jaspZx0kxNh0uq8gPzTfs48UoLkRzx8SwImAg7fSrUk-jRSNNoVGyWchCaa9F7tbpG-kE6M3S/s1600/4+x+Button.png"><img border="0" height="64" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiTMWxLNRpVaMHiVLitTHXUWgxyifpSjAfSFBQDxgj6c9i4jk0A0Np-8Zo5UxzP64917_jaspZx0kxNh0uq8gPzTfs48UoLkRzx8SwImAg7fSrUk-jRSNNoVGyWchCaa9F7tbpG-kE6M3S/s200/4+x+Button.png" width="200" /></a></div>
<div>
<br /></div>
<div>
Battery</div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1h3khKdvifPJxFCRNi3qFFeWoj-IBdeJ8ggEIOGujCPAaWUdQMR4nx5ypaTbqZMxbHS1FzmJLaU-hwsK8iucISGoQzvecy0oZ5n02Zia6wAtQFOQfSTjEuTuMoPi1j0lSP9LWdRuqVP1B/s1600/9v+Battery+Holder.png"><img border="0" height="170" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1h3khKdvifPJxFCRNi3qFFeWoj-IBdeJ8ggEIOGujCPAaWUdQMR4nx5ypaTbqZMxbHS1FzmJLaU-hwsK8iucISGoQzvecy0oZ5n02Zia6wAtQFOQfSTjEuTuMoPi1j0lSP9LWdRuqVP1B/s200/9v+Battery+Holder.png" width="200" /></a></div>
<div>
<br />
<br /></div>
<div>
Data for <a href="https://www.nxp.com/docs/en/data-sheet/PCF8574_PCF8574A.pdf" target="_blank">PCF8574</a> (Remote 8-bit I/O expander for I2C-bus with interrupt)</div>
<div>
Data for <a href="https://www.sparkfun.com/datasheets/LCD/Monochrome/Nokia5110.pdf" target="_blank">PCD8544</a> (48 × 84 pixels matrix LCD controller/driver)</div>
<br />
In this project I am using the module designed for 0216 LCD diplay.<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnKb3FpT8v-O1_HX27EyxisJ1aWidXGkcWwmGFuFn2I7fZajlj080TIouFrbW3pNDzkaZOe4mMNJx_-ddCPnysj5dvmAMsy8q7CxJ1dK6bFqiV4mlj5fETJur6YRcdMBjKvGeidRVafkTr/s1600/SPI+Serial+Interface+for+1602LCD.png"><img border="0" height="143" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnKb3FpT8v-O1_HX27EyxisJ1aWidXGkcWwmGFuFn2I7fZajlj080TIouFrbW3pNDzkaZOe4mMNJx_-ddCPnysj5dvmAMsy8q7CxJ1dK6bFqiV4mlj5fETJur6YRcdMBjKvGeidRVafkTr/s200/SPI+Serial+Interface+for+1602LCD.png" width="200" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxBrTQUBqwrpTxGkAPap9OuRTVY6sSKgMuULYfTkb8ehFUMv6CIdcIfZOa0AJdXbS1_L2w-ArweDZuWoqyXVAgkaEI6QI9iZ2kbRhFF9ZNWI8Oj9dWdextVdoM35Y4mfwjzIgayVlCBP-I/s1600/0216+Diplay.png"><img border="0" height="140" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxBrTQUBqwrpTxGkAPap9OuRTVY6sSKgMuULYfTkb8ehFUMv6CIdcIfZOa0AJdXbS1_L2w-ArweDZuWoqyXVAgkaEI6QI9iZ2kbRhFF9ZNWI8Oj9dWdextVdoM35Y4mfwjzIgayVlCBP-I/s200/0216+Diplay.png" width="200" /></a><br />
There are several reasons for using this module.<br />
The first time I bought a Nokia 5110 screed the advert say it was 5v compatible (I fried it), no it isn't, it's 3.3 volt.<br />
This can be sorted using resistors as voltage dividers, or MOSFET circuits.<br />
The Nokia 5110 screen also communicates via SPI requiring 4 communication lines and power.<br />
If we use the Module:<br />
The PCF8574 requires only 2 communication lines and power.<br />
Also the module has a transistor connected to PFC8574 GPIO pin 3, which connects Header Pin 16 to GND. (Used for switching the LED).<br />
If the module is powered by 3.3 volt, it will communicate with 3.3 volt to the Nokia 5110 screen and still be able handle the I2C communication from the Arduino.<br />
<br />
<h3>
The circuit of the Module:</h3>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9rXuGy5-eE7kqYF8w4ZENN0cGkFqW46QcNzCEk_z6Yg1jaNOls5HeyWIAGWxbiouhVCU5yAj-bqn8vQLxqZ9thpxpkHqBb4MDbN6BreBbB-6AFOaFwLxQGJc-VoaQiHjbBoROts8T94SG/s1600/I2C+%2528PCF8574T%2529+to+HD44780U+LCD+Driver+Scketch.png"><img border="0" height="452" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9rXuGy5-eE7kqYF8w4ZENN0cGkFqW46QcNzCEk_z6Yg1jaNOls5HeyWIAGWxbiouhVCU5yAj-bqn8vQLxqZ9thpxpkHqBb4MDbN6BreBbB-6AFOaFwLxQGJc-VoaQiHjbBoROts8T94SG/s640/I2C+%2528PCF8574T%2529+to+HD44780U+LCD+Driver+Scketch.png" width="640" /></a><br />
<br />
<h3>
Connections:</h3>
<div>
<span style="font-size: large;"></span>
<br />
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-image: none; border: medium; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td colspan="2" style="border-image: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 478.8pt;" width="638"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<b><span style="font-size: large;">I2C Serial Interface Board Module for 1602LCD
Display</span></b><span style="font-size: 16pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"></span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 1;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-align: center; text-autospace: none;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Module 4 pin
header</span></b></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Arduino</span></b></div>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">GND</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">GND</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 3;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">VCC</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">3.3v</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 4;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">SDA</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">A4</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 5;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">SCL</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">A5</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 6;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<br /></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<br /></div>
</td>
</tr>
<tr style="mso-yfti-irow: 7;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-align: center; text-autospace: none;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Module 16 pin
header</span></b></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;"><b>Nokia Screen</b></div>
</td>
</tr>
<tr style="mso-yfti-irow: 8;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><b></b>Pin 01</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 8 Nokia 5110 Screen</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 9;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 02</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 6 Nokia 5110 Screen</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 10;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 03</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">NC</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 11;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 04</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">NC (free GPIO_0)</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 12;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 05</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">NC (free GPIO_1)</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 13;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 06</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 1 Nokia 5110 Screen</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 14;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 07</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">NC</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 15;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 08</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">NC</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 16;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 09</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">NC</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 17;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 10</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">NC</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 18;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 11</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 2 Nokia 5110 Screen</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 19;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 12</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 3 Nokia 5110 Screen</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 20;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 13</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 4 Nokia 5110 Screen</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 21;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 14</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 5 Nokia 5110 Screen</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 22;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 15</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">NC</span></div>
</td>
</tr>
<tr style="mso-yfti-irow: 23; mso-yfti-lastrow: yes;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 16</span></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Pin 7 Nokia 5110 Screen</span></div>
</td>
</tr>
</tbody></table>
<br />
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-image: none; border: medium; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td colspan="2" style="border-image: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 478.8pt;" width="638"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 16pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Buttons</span></b></div>
</td>
</tr>
<tr style="mso-yfti-irow: 1;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Header Pin</span></b></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Arduino</span></b></div>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
1 (Button 1)</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
A0</div>
</td>
</tr>
<tr style="mso-yfti-irow: 3;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
2 (Button 2)</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
A1</div>
</td>
</tr>
<tr style="mso-yfti-irow: 4;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
3 (Button 3)</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
A2</div>
</td>
</tr>
<tr style="mso-yfti-irow: 5;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
4 (Button 4)</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
D7</div>
</td>
</tr>
<tr style="mso-yfti-irow: 6; mso-yfti-lastrow: yes;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
5 (common pin)</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
GND</div>
</td>
</tr>
</tbody></table>
<br />
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-image: none; border: medium; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td colspan="2" style="border-image: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 478.8pt;" width="638"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 16pt;">Piezo Sounder</span></b></div>
</td>
</tr>
<tr style="mso-yfti-irow: 1;">
<td style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt;">Connection</span></b></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Arduino</span></b></div>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td rowspan="2" style="border-image: none; border-top: none; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
Does not matter</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
GND</div>
</td>
</tr>
<tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes;">
<td style="border-bottom: solid windowtext 1.0pt; border-color: currentColor windowtext windowtext currentColor; border-left: none; border-right: solid windowtext 1.0pt; border-style: none solid solid none; border-top: none; border-width: medium 1pt 1pt medium; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt; width: 239.4pt;" width="319"><div align="center" style="line-height: normal; margin-bottom: 0cm; text-align: center;">
D11</div>
</td>
</tr>
</tbody></table>
<br />
<br />
<b></b><i></i><u></u><sub></sub><sup></sup><strike></strike></div>
<h3>
The code:</h3>
<div>
<a href="https://drive.google.com/open?id=1pxGAjdBC4nXCZ81AWkAv8jaDBpXcD-xG" target="_blank">Tims_Brick_a_Bottle_or_Three</a>.<br />
<br />
Credit for the library <span style="color: #990000;"><PCF8574_PCD8544.h></span> used in the code goes to: <a href="https://github.com/maxint-rd/I2C-PCF8574-PCD8544-Nokia-5110-LCD" target="_blank">Maxint R&D</a></div>
<div>
The library is used like most display libraries.</div>
<div>
It is defined like: <span style="color: blue;">PCF8574_PCD8544 display = PCF8574_PCD8544(0x27, 7, 6, 5, 4, 2);</span></div>
<div>
It also uses <span style="color: #990000;"><Adafruit_GFX.h></span> library (credit to:<a href="https://learn.adafruit.com/adafruit-gfx-graphics-library" target="_blank"> Limor Fried/Ladyada</a>) so the commands to draw graphics, is as the Adafruit GFX library.</div>
<div>
<br /></div>
<h3>
In setup:</h3>
<div>
I have made pins A0, A1 and A2 raise an interrupt when button 1, 2 or 3 is pressed.</div>
<div>
<br /></div>
<div>
<span style="color: #351c75;">PCICR = 0b00000010;</span><span style="color: #38761d;"> // Pin Change Interrupt Enable.</span></div>
<span style="color: #351c75;"> PCMSK1 = 0b00000111;</span> <span style="color: #38761d;">// Enable Pin Change Interrupt for A0, A1, A2.</span><br />
<span style="color: #351c75;"> sei(); </span><span style="color: #38761d;">//enable interrupts.</span><br />
<br />
I have enabled pullup resistors on the button pins. The buttons close to GND.<br />
(the button module has capacitors to help with bounce)<br />
<br />
pinMode(<span style="color: #351c75;">BUTTON_1, INPUT_PULLUP</span>);<br />
pinMode(<span style="color: #351c75;">BUTTON_2, INPUT_PULLUP</span>);<br />
pinMode(<span style="color: #351c75;">BUTTON_3, INPUT_PULLUP</span>);<br />
pinMode(<span style="color: #351c75;">LED_ON, INPUT_PULLUP</span>);<br />
<br />
The function to receive the interrupts is <span style="color: #351c75;">ISR</span>(<span style="color: #351c75;">PCINT1_vect</span>){ <span style="color: #38761d;"> //code goes here</span> }<br />
<br />
The images to draw the bottles are made from <span style="color: #0b5394;">char</span> Array.<br />
<br />
Example:<br />
<span style="color: #38761d;">//bottle 6x16</span><br />
<span style="color: blue;">static const unsigned char</span> <span style="color: #351c75;">PROGMEM</span> bottle_img[] =<br />
{<span style="color: #351c75;"> B00110000,<br />B00110000,<br />B00110000,<br />B00110000,<br />B01111000,<br />B11111100,<br />B11111100,<br />B11111100,<br />B11111100,<br />B11111100,<br />B11111100,<br />B11111100,<br />B11111100,<br />B11111100,<br />B01111000</span> };<br />
<div>
<br /></div>
Although the bottle is only 6 bits wide, the library only works with 8 bit values.<br />
<div>
But when using the library command to draw the image, we still the value 6 for the width.</div>
<div>
display.drawBitmap(positionX, positionX, bottle_img, 6, 15, 1);</div>
<br />
The sound is produced using the tone function.<br />
Gluing the piezo to the back of a piece of card amplifies the sound.<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG_0W4Sk2Asce4Bb9s5Y8bLboVpQ0V92gyfRkKTucaRZqoTcidCS6tTSpFam_iua_aHOziB2qdgkTPgOXADhrT40OSQd_hrK4PTz022ePgKna8vwVH7l7YcsSsiNunn5W7nPmzw_Bc2wjD/s1600/Piezo+Sounder+Speaker.png"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG_0W4Sk2Asce4Bb9s5Y8bLboVpQ0V92gyfRkKTucaRZqoTcidCS6tTSpFam_iua_aHOziB2qdgkTPgOXADhrT40OSQd_hrK4PTz022ePgKna8vwVH7l7YcsSsiNunn5W7nPmzw_Bc2wjD/s320/Piezo+Sounder+Speaker.png" width="320" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div>
</div>
<br />
<br />
<br />
<br />
<br />
<br />Timhttp://www.blogger.com/profile/07225153872191471067noreply@blogger.com0tag:blogger.com,1999:blog-6996513702143735820.post-59395858969326487292019-08-02T04:50:00.004-07:002019-08-02T05:12:36.692-07:00Tim's Quiz Master<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/OMcIxvexQmI/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/OMcIxvexQmI?feature=player_embedded" width="320"></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb1aunZ0ml6UQnsflkm846qrKZSmFlZFnnQ8wbkPvgYS2enPT8RUWPNFtA-AhnEOMWtMwDd5MiAee2y7lkUfT_2ok8CQq-yemCB-Oj5UFYvW2XFJP_7J0jc6UPkdTeIXZKiZ8gV2bbl-Jq/s1600/DSC_0578.JPG"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb1aunZ0ml6UQnsflkm846qrKZSmFlZFnnQ8wbkPvgYS2enPT8RUWPNFtA-AhnEOMWtMwDd5MiAee2y7lkUfT_2ok8CQq-yemCB-Oj5UFYvW2XFJP_7J0jc6UPkdTeIXZKiZ8gV2bbl-Jq/s640/DSC_0578.JPG" width="640" /></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Identifies first Player Button pressed out of five buttons.<br />
Based on a capacitor and MOSFET configuration.<br />
Depending on LED colour (LED resister used), it holds off other buttons for 30 to 60 seconds. (hold time can be increased by increasing the value of the capacitors)<br />
It has a Reset Button to reset all the Player Buttons.<br />
<br />
It needs 5 volt power (no greater).<br />
Socket is for a 5.5mm barrel jack.</div>
<div style="text-align: center;">
<br /></div>
Can use something like this:<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG31qyZrH1kXxqOtGFIL_y3FQ185UTMdFlU_oi6TVw-ujYmu10h-qP_p2R_laJb3x15KfdXfRYuWT7bouWnKeZkweiRVX2Ow8fgl00epnLh33jXy2J89MvKSMHsa-A7xxHrnXCfvYJqm_K/s1600/DSC_0575.JPG"></a><br />
<div style="text-align: center;">
<a href="https://www.ebay.co.uk/itm/5V-1A-USB-A-to-5-5mm-Barrel-Jack-Plug-Male-DC-Power-Charger-AC-Adapter-Cable/322142062044?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m1438.l2649" imageanchor="1" target="_blank"><img alt="https://www.ebay.co.uk/itm/5V-1A-USB-A-to-5-5mm-Barrel-Jack-Plug-Male-DC-Power-Charger-AC-Adapter-Cable/322142062044?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m1438.l2649" border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNXka4TVORD9J0hqOZ42rlGkfFERo9WXA3K9kLP667GsWi7LGHAeQBqrXr8p7E_F-dX7y_5wnRfLKtd_PHjEmk_q_Ppdg0BWSZrr5ZGGNxExhSPyt6KSbXnhr0GObihuz74M6SgU8fPxwA/s200/USB_Cable.jpg" width="200" /></a><a href="https://www.ebay.co.uk/itm/5V-1A-USB-A-to-5-5mm-Barrel-Jack-Plug-Male-DC-Power-Charger-AC-Adapter-Cable/322142062044?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m1438.l2649" target="_blank">eBay</a></div>
<div style="text-align: center;">
or</div>
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_Wm8r83hAKrNJnmQi5JM6rXdmvC0T67rbUWDDlk5pV1EkAC2JnTOPbMXnZ6ePblALoaGGQcAl1zQtLB9fR4u5CH39CDH3j8fBKCrOBZf5sv2hqHvTHaHTC8d05RsV11q32M86CIM6Gpjl/s1600/Wall_Wart.jpg" imageanchor="1"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_Wm8r83hAKrNJnmQi5JM6rXdmvC0T67rbUWDDlk5pV1EkAC2JnTOPbMXnZ6ePblALoaGGQcAl1zQtLB9fR4u5CH39CDH3j8fBKCrOBZf5sv2hqHvTHaHTC8d05RsV11q32M86CIM6Gpjl/s200/Wall_Wart.jpg" width="200" /></a></div>
<br />
<br />
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG31qyZrH1kXxqOtGFIL_y3FQ185UTMdFlU_oi6TVw-ujYmu10h-qP_p2R_laJb3x15KfdXfRYuWT7bouWnKeZkweiRVX2Ow8fgl00epnLh33jXy2J89MvKSMHsa-A7xxHrnXCfvYJqm_K/s1600/DSC_0575.JPG"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG31qyZrH1kXxqOtGFIL_y3FQ185UTMdFlU_oi6TVw-ujYmu10h-qP_p2R_laJb3x15KfdXfRYuWT7bouWnKeZkweiRVX2Ow8fgl00epnLh33jXy2J89MvKSMHsa-A7xxHrnXCfvYJqm_K/s640/DSC_0575.JPG" width="640" /></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Need Cables to connect the Buttons to the Master Controller.</div>
<div style="text-align: center;">
<span style="background-color: white; color: black; display: inline; float: none; font-family: "times new roman"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
</span></div>
<div class="MsoNormal" style="color: black; font: 400 11pt "quot"; letter-spacing: normal; margin: 0cm 0cm 10pt; text-align: center; text-decoration: none; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
(Small screwdriver)</div>
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5kq8kP238DLyKIlHJrXdF7uZEUZJ_qKQimT34kNMyUOCtiYkqbk1An7VYK02smufQCHBYmmxHfy-pyXsSOgK05zD9rIa7V2XrWsDRNl3J6XXOWHmJoZXdoe-rspm0QjThFhgfrYFWvOvH/s1600/Cable.jpg" imageanchor="1" style="-webkit-text-stroke-width: 0px; color: #0066cc; font-family: Times New Roman; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5kq8kP238DLyKIlHJrXdF7uZEUZJ_qKQimT34kNMyUOCtiYkqbk1An7VYK02smufQCHBYmmxHfy-pyXsSOgK05zD9rIa7V2XrWsDRNl3J6XXOWHmJoZXdoe-rspm0QjThFhgfrYFWvOvH/s200/Cable.jpg" style="cursor: move;" width="200" /></a><a href="https://www.ebay.co.uk/itm/30m-White-Multi-Strand-Loud-Speaker-Cable-Wire-Ideal-for-Car-Audio-Home-HiFi/391882062443?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m1438.l2649" target="_blank">eBay</a></div>
<div style="text-align: center;">
<br /></div>
<br />Timhttp://www.blogger.com/profile/07225153872191471067noreply@blogger.com0