<?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>Need help in Convert int to string in ADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7001/need-help-in-convert-int-to-string-in-adc</link><description>Hi every one, 
 First of all, i&amp;#39;d like to thank everyone for their support and assist 
 I try to use the internal ADC of nrf51822 module and send the value over bluetooth, i notice the received value in UART terminal show string equivalent value of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 May 2015 16:42:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7001/need-help-in-convert-int-to-string-in-adc" /><item><title>RE: Need help in Convert int to string in ADC</title><link>https://devzone.nordicsemi.com/thread/24681?ContentTypeID=1</link><pubDate>Mon, 11 May 2015 16:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ac14feb-44ed-46b6-9eca-c7324aaa971a</guid><dc:creator>ahmed</dc:creator><description>&lt;p&gt;Hi Alex,
The string declaration is it char or unsigned char ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in Convert int to string in ADC</title><link>https://devzone.nordicsemi.com/thread/24680?ContentTypeID=1</link><pubDate>Mon, 11 May 2015 15:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:238e9729-0221-4167-848e-da1cdc961473</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;It depends how you want to see them, hex or decimal. Two examples: &lt;code&gt;sprintf(yourstring, &amp;quot;%X02%X02&amp;quot;, adc1, adc2);&lt;/code&gt;
or &lt;code&gt;sprintf(yourstring, &amp;quot;%d&amp;quot;, ((uint32_t)adc1)&amp;lt;&amp;lt;8 + (uint32_t)adc2);&lt;/code&gt;
where &lt;code&gt;char yourstring[6]&lt;/code&gt; for example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in Convert int to string in ADC</title><link>https://devzone.nordicsemi.com/thread/24679?ContentTypeID=1</link><pubDate>Mon, 11 May 2015 15:40:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7ebfbbe-92ad-43e2-b970-97298f7c234a</guid><dc:creator>ahmed</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;I use 10-bit ADC resolution which mean i should read it into two bytes(each one declare in uint8_t), how can i use sprintf to convert these two bytes into one string?&lt;/p&gt;
&lt;p&gt;Thanks alot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in Convert int to string in ADC</title><link>https://devzone.nordicsemi.com/thread/24678?ContentTypeID=1</link><pubDate>Mon, 11 May 2015 13:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d9ee896-7ba9-4920-a3bb-e648b3c3b6db</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Did you try to convert integer value into string by sprintf() and then send that string over ble_nus_string_send? Or I didn&amp;#39;t understand your question correctly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>