<?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>Controlling two servos with BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116917/controlling-two-servos-with-ble</link><description>Hi! So I am trying to control two micro servos, MS18 with the nRF connect app. So far I have the code where I can control it with one instance, and hitting the true false button on app to move the motor at 90 degrees. However, I want to be able to control</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Dec 2024 14:42:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116917/controlling-two-servos-with-ble" /><item><title>RE: Controlling two servos with BLE</title><link>https://devzone.nordicsemi.com/thread/513464?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 14:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43824363-7867-4168-b3c0-14798fe38cef</guid><dc:creator>avijay</dc:creator><description>&lt;p&gt;Hi Vidar, I solved it yesterday, I wasnt applying the period definitions, which led to it not working correctly. Very silly mistake overall. Thank you for the assistance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling two servos with BLE</title><link>https://devzone.nordicsemi.com/thread/513417?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 12:34:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c05f4d53-4ace-4b4e-8f56-1adf7032a3af</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I need a bit more information to determine what the problem could be, like what you’ve tried and what failed specifically (did you get build or runtime error?). The process of duplicating a characteristic should be the same regardless of whether it is used for controlling an LED or a servo motor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling two servos with BLE</title><link>https://devzone.nordicsemi.com/thread/513228?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 13:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17a717b7-5cb4-491a-96e0-4f7ac17103cf</guid><dc:creator>avijay</dc:creator><description>&lt;p&gt;I have previously gone through, and made edits to my code, however for this, it has not been applying or working. I had no trouble duplicating LEDs, but for servo control, it was not working. Do you know if I have to approach Servo control differently?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling two servos with BLE</title><link>https://devzone.nordicsemi.com/thread/513221?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 13:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49b2060f-2e4a-45ea-ac11-508cc45668f4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;If you haven&amp;#39;t already, I would recommend you go through this Devacademy course at&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-4-bluetooth-le-data-exchange/topic/blefund-lesson-4-exercise-1/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-4-bluetooth-le-data-exchange/topic/blefund-lesson-4-exercise-1/&lt;/a&gt;. It covers this topic and explains how to implement a custom service. You can duplicate the characteristic in your service declaration and assign it a different UUID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling two servos with BLE</title><link>https://devzone.nordicsemi.com/thread/513218?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 13:20:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74b8bb40-c46a-4980-aae3-8d78de132377</guid><dc:creator>avijay</dc:creator><description>&lt;p&gt;Hi Vidar, thanks for getting back to me! How do I create the second BLE characteristic, Ive been having trouble with it. All I want to do is literally have the same exact thing that the existing servo motor does, done by another motor with another characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling two servos with BLE</title><link>https://devzone.nordicsemi.com/thread/513127?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 08:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9440e67d-8419-4c6e-a7fd-64a3ddb90f20</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The simplest approach might be to modify the BLE command used to control the servo to include an ID for the specific servo you want to control. For example, you could create a 2-byte command with the following format: &amp;lt;servo ID&amp;gt; &amp;lt;command&amp;gt;. Another alternative is to create a second BLE characteristic to control the other servo.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>