<?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>Switching operation between two sensors in nrf51 from Android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26273/switching-operation-between-two-sensors-in-nrf51-from-android</link><description>Hello NorDev. community, 
 I have two sensors operating on nrf51822. I control them manually by mechanical switches at the moment.
I would like to change this sensor control(on/off/switch between) from Android by sending a command from application through</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Oct 2017 16:18:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26273/switching-operation-between-two-sensors-in-nrf51-from-android" /><item><title>RE: Switching operation between two sensors in nrf51 from Android</title><link>https://devzone.nordicsemi.com/thread/103417?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 16:18:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bcd9a57-67bf-4715-a8d7-0b366c823481</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;What kind of sensor are you using?&lt;/p&gt;
&lt;p&gt;I guess you either have some sort of Enable pin on the sensor that you can use to turn it on and off. Otherwise you will have to use some kind of circuit (maybe a MOSFET transistor is enough) to turn off the supply voltage to the sensor. Either way, you will probably want to do it by toggling a GPIO pin high and low to control either the MOSFET circuit or the Enable pin. If you need examples to look at I suppose the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.1.0/ble_sdk_app_blinky.html?cp=4_0_0_4_2_2_3"&gt;BLE Blinky Application&lt;/a&gt; is the best place to start. It shows how to control a GPIO using BLE.&lt;/p&gt;
&lt;p&gt;Some digital sensors have low power modes, as well, that you can enter and exit via software. That should be described in their datasheet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>