<?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>nRF52DK + 4 wire resistive touch interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28922/nrf52dk-4-wire-resistive-touch-interface</link><description>main.c 
 We have interfaced 4 pins of touch screen to nRF52DK pins P0.04, P0.05,P0.06, P0.07 and pulled the pin P0.04 high to detect the touch by configuring the pin to sense high to low transistion and it detects the touch first time. No issues there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jan 2018 13:00:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28922/nrf52dk-4-wire-resistive-touch-interface" /><item><title>RE: nRF52DK + 4 wire resistive touch interface</title><link>https://devzone.nordicsemi.com/thread/114442?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 13:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f9ed523-9183-428f-a082-bfa26f46e391</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I have never used a resistive touch screen before, so I don&amp;#39;t really know what to expect.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Would it be possible to use a pot meter instead of the touch screen to measure that the ADC readings actually work? That way we could rule out the ADC and blame the touch screen (or some other external factor).&lt;/li&gt;
&lt;li&gt;Is it somehow possible to measure the resistance and/or voltage across the resistive touch screen with a multimeter and compare the results with the ADC readings?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52DK + 4 wire resistive touch interface</title><link>https://devzone.nordicsemi.com/thread/114443?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 07:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f8ff514-79f6-4e93-99c5-f43c7da45161</guid><dc:creator>sumit5ue</dc:creator><description>&lt;p&gt;Also please note that we are connecting the touch panel directly to the GPIO - touch panel resistance is 300 Ohms between x+ and x- and 510 Ohms between y+ and y- on the panel. Not sure if that could be creating problems due to source current ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52DK + 4 wire resistive touch interface</title><link>https://devzone.nordicsemi.com/thread/114441?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 18:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34449299-a289-45e7-a1c8-ca94578aa696</guid><dc:creator>sumit5ue</dc:creator><description>&lt;p&gt;Hi Martin - I am working with Maddy and our readings are as below. As you can see, if the touch was along x axis the readings were reasonable whereas if the touch was along y axis the readings were going up and down whereas the expected reading was for it to just increase.&lt;/p&gt;
&lt;p&gt;Also, at the edges of the touch panel, we were expecting readings close to zero for both x axis and y axis but they were around 200 for x axis and 400 for y axis.&lt;/p&gt;
&lt;p&gt;Testing along X axis	
X	Y
220	400
225	403
243	398
288	410
325	398&lt;/p&gt;
&lt;p&gt;Results as expected - small variations in Y readings are due to variations in finger touching the pad	&lt;/p&gt;
&lt;p&gt;Testing along Y axis	
X	Y
220	425
215	435
223	398
217	470
210	436&lt;/p&gt;
&lt;p&gt;Results NOT as expected - as Y readings are going up and down even though the touch was only in direction of increasing Y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52DK + 4 wire resistive touch interface</title><link>https://devzone.nordicsemi.com/thread/114440?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 14:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21dc2b63-bb43-45e9-a892-99ef51ea99a3</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;How much is it off? What you are seeing and what do you expect to see?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52DK + 4 wire resistive touch interface</title><link>https://devzone.nordicsemi.com/thread/114439?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 06:59:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df0d089-a62b-48bf-84fd-bd094993bbae</guid><dc:creator>maddy5075</dc:creator><description>&lt;p&gt;Martin, the Y position value is somehow not right. The pin handler disables the event to release the x plus from GPIOTE module and make it work like a plain GPIO. It&amp;#39;s pulled high as digital input and if the user has touched the screen, it configures the x plus to digital out and drives high to calculate x position and then configures the x plus pin as analog input AIN1 to calculate the Y direction. When it does so the Y position value is not as we expect it to be. Could you think of any possible reason as to why the value is not right ? We tried increasing the settling delay for the pins, yet it did not make any difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52DK + 4 wire resistive touch interface</title><link>https://devzone.nordicsemi.com/thread/114444?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 06:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cce63acf-fd2a-439f-831f-982906bc1174</guid><dc:creator>maddy5075</dc:creator><description>&lt;p&gt;main.c&lt;/p&gt;
&lt;p&gt;We changed the pins to P0.03 (x plus), P0.04(y plus) to act as digital I/O and analog pins and P0.28(x minus) and P0.29(y minus) and this seems not to cause the loop forever. Also I have disabled the analog input&amp;#39;s explicitly like we discussed. Thanks for the valuable suggestion Martin. We owe you one!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52DK + 4 wire resistive touch interface</title><link>https://devzone.nordicsemi.com/thread/114438?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 13:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c55c05-cfeb-454c-9872-ee2cd4a7ea3e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This sounds somewhat related to &lt;a href="https://devzone.nordicsemi.com/question/181987/gpio-pin-reading-wrong-value/"&gt;this issue&lt;/a&gt; that we are still investigating. But as you suggest, you should explicitly disable the input. Otherwise the SAADC will still be &amp;quot;attached&amp;quot; to the GPIO pad internally which may affect the logic levels. Can you try and see what happens?&lt;/p&gt;
&lt;p&gt;Note that by default, P0.05 on the nRF52 DK is used for UART communication with the onboard Segger MCU. Unless you have cut solder bridge SB13 this could also interfere with your measurements.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>