<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.spad-it.nl/index.php?action=history&amp;feed=atom&amp;title=Arduino_-_Het_1602_LCD_Display</id>
		<title>Arduino - Het 1602 LCD Display - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.spad-it.nl/index.php?action=history&amp;feed=atom&amp;title=Arduino_-_Het_1602_LCD_Display"/>
		<link rel="alternate" type="text/html" href="http://wiki.spad-it.nl/index.php?title=Arduino_-_Het_1602_LCD_Display&amp;action=history"/>
		<updated>2026-07-03T09:23:16Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.3</generator>

	<entry>
		<id>http://wiki.spad-it.nl/index.php?title=Arduino_-_Het_1602_LCD_Display&amp;diff=180&amp;oldid=prev</id>
		<title>WikiAdmin at 13:55, 5 December 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.spad-it.nl/index.php?title=Arduino_-_Het_1602_LCD_Display&amp;diff=180&amp;oldid=prev"/>
				<updated>2020-12-05T13:55:46Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:55, 5 December 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[File:LCD_1602.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[File:LCD_1602 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;v3&lt;/ins&gt;.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Verbindingen in het breadboard voor het LCD scherm&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Verbindingen in het breadboard voor het LCD scherm&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Het hier gebruikte display heeft 16x2 = 32 posities en op elke positie kan een groot aantal verschillende karakters worden getoond. Hoewel er al best veel draadjes nodig zijn om het display aan te sluiten, snap je vast dat al die karakters nooit in via die draadjes in een keer kunnen worden doorgegeven. Dat gaat dus deels serieel, waarbij zo'n display dus zelf over geheugen moet beschikken en de mogelijkheid moet hebben om seriele invoerdata te verwerken. In feite worden de karakters dus om beurten naar de display verstuurd. Deze schakeling gebruikt bovendien niet alle pins van de LCD. Als je goed kijkt, dan zie je dat aansluitingen D0 tm D3 niet worden gebruikt! Dit is een optie van dit type displays, waarbij elke byte (elke letter) in twee delen (twee ''nibbles'') naar de display wordt verstuurd. Dit gaat iets langzamer dan het alternatief waarbij alle 8 draadjes (D0 tm D7) worden gebruikt, maar heeft het voordeel dat er minder verbindingen nodig zijn. Uiteraard moet in het programma worden opgegeven of er van de 4-bit modus of van de 8-bit modus gebruik wordt gemaakt. Voor meer informatie kun je eens [https://lastminuteengineers.com/arduino-1602-character-lcd-tutorial/ hier] kijken. Daar staat bijvoorbeeld ook beschreven hoe je in plaats van de standaard karakters ook eigen &amp;quot;karakters&amp;quot; kunt maken.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Het programma===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Het programma===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot; &gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;// maak het lcd object en geef aan welke hoe verbindingen lopen&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;// maak het lcd object en geef aan welke hoe verbindingen lopen&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;// &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;LiquidCrystal lcd&lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;RS-4&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;E-6&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;D4-11&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;D5-12&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;D6-13&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;D7-14&lt;/del&gt;)&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;// &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;parameters: &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;rs&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;enable&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;d4&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;d5&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;d6&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;d7&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;LiquidCrystal lcd(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;7&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;8&lt;/del&gt;, 9, 10, 11, 12);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;LiquidCrystal lcd(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;3&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;2&lt;/ins&gt;, 9, 10, 11, 12);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;void setup() {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;void setup() {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot; &gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; lcd.print(0.001 * millis());&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; lcd.print(0.001 * millis());&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; lcd.print(&amp;quot; sec. bezig&amp;quot;); // na 100 seconden valt de laatste letter weg&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; lcd.print(&amp;quot; sec. bezig&amp;quot;); // na 100 seconden valt de laatste letter weg&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; delay(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;150&lt;/del&gt;+random(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;300&lt;/del&gt;));&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; delay(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;300&lt;/ins&gt;+random(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1000&lt;/ins&gt;));&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>	</entry>

	<entry>
		<id>http://wiki.spad-it.nl/index.php?title=Arduino_-_Het_1602_LCD_Display&amp;diff=42&amp;oldid=prev</id>
		<title>WikiAdmin: Created page with &quot; ===De schakeling=== Extra benodigdheden: *1 1602 LCD display *1 weerstand van 4.7k  Onderstaande schakeling bevat vrij veel verbindingen en het is belangrijk dat elk draadje...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.spad-it.nl/index.php?title=Arduino_-_Het_1602_LCD_Display&amp;diff=42&amp;oldid=prev"/>
				<updated>2017-09-12T06:40:46Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; ===De schakeling=== Extra benodigdheden: *1 1602 LCD display *1 weerstand van 4.7k  Onderstaande schakeling bevat vrij veel verbindingen en het is belangrijk dat elk draadje...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
===De schakeling===&lt;br /&gt;
Extra benodigdheden:&lt;br /&gt;
*1 1602 LCD display&lt;br /&gt;
*1 weerstand van 4.7k&lt;br /&gt;
&lt;br /&gt;
Onderstaande schakeling bevat vrij veel verbindingen en het is belangrijk dat elk draadje goed zit. Controleer de schakeling dus goed als er iets mis lijkt te gaan. De weerstand zorgt voor het juiste contrast in het display. Vaak wordt hier een 10k potmeter/instelweerstand gebruikt; als je dat zou doen zou je het contrast kunnen instellen.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:LCD_1602.png]]&lt;br /&gt;
|-&lt;br /&gt;
|Verbindingen in het breadboard voor het LCD scherm&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Het programma===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// Dit programma is ontleend aan: Bestanden | Voorbeelden | LiquidCrystal | HelloWorld&lt;br /&gt;
#include &amp;lt;LiquidCrystal.h&amp;gt;  // dit is een standaard bibliotheek&lt;br /&gt;
&lt;br /&gt;
// maak het lcd object en geef aan welke hoe verbindingen lopen&lt;br /&gt;
// LiquidCrystal lcd(RS-4, E-6, D4-11, D5-12, D6-13, D7-14);&lt;br /&gt;
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
  // geef aan wat de maat is van de LCD (hier 16 karakters op twee regels)&lt;br /&gt;
  lcd.begin(16, 2);&lt;br /&gt;
  // plaats een boodschap&lt;br /&gt;
  lcd.print(&amp;quot;Hoera het werkt!&amp;quot;);  // 16 karakters - meer plek is er niet&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
  // plaats de cursor op de eerste positie van de tweede regel&lt;br /&gt;
  // dat is positie (0,1) omdat men met 0 begint te tellen&lt;br /&gt;
  lcd.setCursor(0, 1);&lt;br /&gt;
  // print de tijd sinds de start:&lt;br /&gt;
  lcd.print(0.001 * millis());&lt;br /&gt;
  lcd.print(&amp;quot; sec. bezig&amp;quot;); // na 100 seconden valt de laatste letter weg&lt;br /&gt;
  delay(150+random(300));&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Uitleg van het programma===&lt;br /&gt;
In tegenstelling tot de schakeling met al zijn verbindingen is het programma vrij kort en eenvoudig. Dit komt door het gebruik van een '''library'''. Het gaat hier om regel 2:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;LiquidCrystal.h&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Door deze regel wordt een ingewikkelder stuk software meegenomen en kunnen we ons deel van het programma eenvoudig houden. LET OP: zo'n #include regel wordt ''niet'' afgesloten met een punt-komma. In regel 6 wordt een variabele aangemaakt van het type '''LiquidCrystal'''. Het gaat hier om een '''object-variabele''' waarmee we allerlei taken kunnen uitvoeren door functies ervan aan te roepen. In de setup() geven we eerst nog aan hoe groot onze LCD is. Dat is 16 karakters op 2 regels. Hieruit blijkt dat de LiquidCrystal library ook voor andere LCD's gebruikt moet kunnen worden en dat is goed om te weten. Daarna zetten we een tekst op de eertse regel. dat gaat dus via de print functie van het lcd object. Ditzelfde doen we in de ''loop()'' functie. Voordat we gaan printen wordt de cursor ingesteld op het eerste karakter van de tweede regel. Elke ''lcd.print()'' opdracht zou anders gewoon verder gaan waar hij gebleven was, waarna de regels gaan &amp;quot;scrollen&amp;quot; (doorrollen). Let op dat de laatste ''lcd.print()'' een vrij lange tekst heeft die na 100 seconden te lang wordt. De laatste letter valt dan van het scherm. Tenslotte wachten we even om de tekst leesbaar te houden. Zonder deze delay veranderen de laatste twee decimalen van de tekst zo snel dat ze onleesbaar zouden zijn. De delay heeft een willekeurige wachttijd (de ''random()'' functie) om het interval wat onvoorspelbaar te maken.&lt;br /&gt;
&lt;br /&gt;
===Beetje spelen===&lt;br /&gt;
&lt;br /&gt;
===Navigatie===&lt;br /&gt;
*[[Arduino - Passive buzzer|Vorige project]]&lt;br /&gt;
*[[Arduino cursus|Cursus overzicht]]&lt;br /&gt;
*[[Arduino - Analog Value Reading|Volgende project]]&lt;/div&gt;</summary>
		<author><name>WikiAdmin</name></author>	</entry>

	</feed>