<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>2x16 LCD and Rotary Encoder</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10819/2x16-lcd-and-rotary-encoder</link><description>Hello, 
 I&amp;#39;ve been looking around to find the best way to interface the nRF52 DK with both an LCD screen for printing settings to a panel display, and a rotary encoder, used to scroll through and enter into various menus. 
 The rotary encoder would</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Dec 2015 12:40:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10819/2x16-lcd-and-rotary-encoder" /><item><title>RE: 2x16 LCD and Rotary Encoder</title><link>https://devzone.nordicsemi.com/thread/40452?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2015 12:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74af027a-88a8-4e40-ba49-97e294ea1301</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hey.&lt;/p&gt;
&lt;p&gt;As @RK mentioned, the nRF52 as a QDEC peripheral. This will take care of the wheel decoding. You will of course interface it correctly with your code.
You can learn this from the &lt;a href="http://infocenter.nordicsemi.com/topic/nrf52.v1.7/Chunk1501143296.html?cp=1_1_0_32#concept_isq_pwd_4r"&gt;product specification&lt;/a&gt; ,qdec &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk52.v0.9.2/hardware_driver_qdec.html?cp=4_0_0_2_4"&gt;driver&lt;/a&gt; documentation and the QDEC &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk52.v0.9.2/qdec_example.html?cp=4_0_0_4_5_8"&gt;example code&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The display can be used with simple gpio instructions. I agree with RK in that a display using i2c or SPI might be &amp;quot;cleaner&amp;quot; to implement. (it will require less connections)&lt;/p&gt;
&lt;p&gt;I assume that you are going to have a radio connection while doing this. Remember that using delays (busy wait delays like nrf_delay) will not work well together with BLE connections. Use a periodic timer to trigger periodic tasks, to let the CPU work with other things in between.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2x16 LCD and Rotary Encoder</title><link>https://devzone.nordicsemi.com/thread/40451?ContentTypeID=1</link><pubDate>Sun, 13 Dec 2015 12:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9555d3e-bf76-4613-874e-f066d99aab13</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Personally I wouldn&amp;#39;t recommend starting with the arduino drivers which in most cases (unless they were custom written for an nrf51 chip) are bitbangers.&lt;/p&gt;
&lt;p&gt;The rotary coder shouldn&amp;#39;t be too hard, the nrf51 has a QDEC peripheral built in which scans and reports movement on any compatible input device. There&amp;#39;s a driver in the SDK for it, nrf_drv_qdec, which follows the same basic method of use of any of the other nordic drivers. Don&amp;#39;t think there&amp;#39;s an example for that one, but if you look at some of their general example code, you should get the idea.&lt;/p&gt;
&lt;p&gt;LCD, you&amp;#39;d be better off with one with a I2C or SPI interface, if I read that one correctly it&amp;#39;s got a 7-bit wide one which is possible to do, but again the nrf51 series has I2C and SPI peripherals, and drivers, and examples, so reading and writing those are easy.&lt;/p&gt;
&lt;p&gt;Rotary encode and LCD .. not a reflow oven is it? :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2x16 LCD and Rotary Encoder</title><link>https://devzone.nordicsemi.com/thread/40450?ContentTypeID=1</link><pubDate>Sat, 12 Dec 2015 03:55:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b67f561-5cd4-49f0-bb18-8c86270a441b</guid><dc:creator>monpetit</dc:creator><description>&lt;p&gt;Your question is somewhat ambiguous, what you want is whether a programming skill of the nRF5x platform or how to work external components such as hd44780 LCD. As a rule, everything is possible to do that you can do on AVRs. For example, the things you need in order to work a LCD are ways to handle GPIO pins and delay function. That&amp;#39;s all. All you have to do are to translate source codes from the Arduino libraries.&lt;/p&gt;
&lt;p&gt;If you want to learn the basic programming skill of the nRF5x, you should examine examples of nRF5x SDK, the peripherals in particular. IF you are not good at the Keil MDK or the Eclipse platform, ARM mbed Developer Site is a good starting point for you.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid I could not have been of more assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2x16 LCD and Rotary Encoder</title><link>https://devzone.nordicsemi.com/thread/40449?ContentTypeID=1</link><pubDate>Sat, 12 Dec 2015 02:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21902c42-6b27-4629-bd8f-f09a6153ae6a</guid><dc:creator>jengil</dc:creator><description>&lt;p&gt;If that would make the most sense I&amp;#39;d be willing to learn about it. What does that entail and how could I do that?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2x16 LCD and Rotary Encoder</title><link>https://devzone.nordicsemi.com/thread/40448?ContentTypeID=1</link><pubDate>Sat, 12 Dec 2015 01:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ad6f5c8-47eb-46af-8a58-da2981314a57</guid><dc:creator>monpetit</dc:creator><description>&lt;p&gt;Do you want to port these libraries from Arduino/AVR platform to nRF52?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>