<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Fast Track to Arduino Programming - Lesson 1, Reading from the Serial Port</title><link>/products/arduino/b/blog/posts/fast-track-to-arduino-programming---lesson-1-reading-from-the-serial-port</link><description>In this the first main lesson we look at how to simply read from the serial port and return what is read back out the port to the console, creating a buffer for the input data and correctly handling the input from the console www.youtube.com/watch &amp;amp;nbs</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Fast Track to Arduino Programming - Lesson 1, Reading from the Serial Port</title><link>https://community.element14.com/products/arduino/b/blog/posts/fast-track-to-arduino-programming---lesson-1-reading-from-the-serial-port</link><pubDate>Sat, 02 Jul 2016 12:46:38 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:5a39dea8-b3ba-40c4-aa17-2e2ec3af5e39</guid><dc:creator>beacon_dave</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Perhaps one for a future lesson consideration, however have you ever done anything with the DMX 512 lighting protocol with the Arduino serial port ? There appear to be a number of workarounds for it on the net each claiming to be the right way but just wondering what your approach/opinion would be ?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;First issue is the 250000 baud, no parity and 2 stop bits which appears to require a workaround by setting up the USART registers directly.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Second issue is the &amp;gt;88us long reset break prior to the start of data transmission which appears to require a workaround of temporarily changing the USART baud rate from 250000 baud down to 115200 baud, outputting a low, then changing the USART baud rate back to 250000 baud before sending the rest of the data &amp;gt;8us later.&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://playground.arduino.cc/Learning/DMXSerial" rel="nofollow ugc noopener" target="_blank" title="http://playground.arduino.cc/Learning/DMXSerial"&gt;Arduino Playground - DMXSerial&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://www.mathertel.de/Arduino/DMXSerial.aspx" rel="nofollow ugc noopener" target="_blank" title="http://www.mathertel.de/Arduino/DMXSerial.aspx"&gt;A Arduino Library for sending and receiving DMX&lt;/a&gt; &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17861&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>