<?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>BLDC PWM on nRF52DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65546/bldc-pwm-on-nrf52dk</link><description>Hi, 
 I am currently working on a project that requires the control of a BLDC and i am new to the nRF microcontroller is there anyone how can give me some sort of guide and help please? 
 in the future, i would like to implement some sort of speed control</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Sep 2020 10:26:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65546/bldc-pwm-on-nrf52dk" /><item><title>RE: BLDC PWM on nRF52DK</title><link>https://devzone.nordicsemi.com/thread/268011?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 10:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93db8e29-87b7-46f2-b7df-dd82b2009b28</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;Thank you !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLDC PWM on nRF52DK</title><link>https://devzone.nordicsemi.com/thread/267995?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 09:02:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b302313-443d-4223-9623-ea617de80fc7</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="NikolaiDimech98"]ill take your advice and start working more on drivers, if not ill try to revert back to registers.[/quote]
&lt;p&gt;Great, this sounds like a very good approach to it. Please do not hesitate to ask if you should encounter any issues or questions!&lt;/p&gt;
[quote user="NikolaiDimech98"]Also you wouldn&amp;#39;t happen to have an idea of BLDC GitHub respositories for the nRF52832 please?[/quote]
&lt;p&gt;I do not have any go-to repositories for this, but a quick github search yields the following repositories that might be helpful to have a look at ( keep in mind that the only thing I know about your project is that BLE and a motor is involved ):&lt;br /&gt;&lt;a href="https://github.com/jtguggedal/bachelor_e1610"&gt;https://github.com/jtguggedal/bachelor_e1610&lt;/a&gt;&amp;nbsp;- a bachelor thesis creating an RC car controlled through WEB and BLE.&lt;br /&gt;&lt;a href="https://github.com/NordicPlayground/nRF52-Bluetooth-Course"&gt;https://github.com/NordicPlayground/nRF52-Bluetooth-Course&lt;/a&gt;&amp;nbsp;- the code for a BLE course that we have held for students at NTNU, the goal here was to control a servo - which is basically the same in terms of control.&lt;br /&gt;&lt;br /&gt;Hope this helps, and good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLDC PWM on nRF52DK</title><link>https://devzone.nordicsemi.com/thread/267987?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 08:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9010838-c570-49f0-856e-d80c8eec1d53</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;ill take your advice and start working more on drivers, if not ill try to revert back to registers.&lt;/p&gt;
&lt;p&gt;Also you wouldn&amp;#39;t happen to have an idea of BLDC GitHub respositories for the nRF52832 please?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for your help !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLDC PWM on nRF52DK</title><link>https://devzone.nordicsemi.com/thread/267984?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 08:43:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54804184-287f-4b02-812e-b20677fb9f88</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="NikolaiDimech98"]Thanks for your quick response.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="NikolaiDimech98"]yes i have looked into both PWM library and driver examples and i managed to play around but i still need to fully understand everything that&amp;#39;s going on.[/quote]
&lt;p&gt;Great! Then you are off to a good start already.&lt;/p&gt;
[quote user="NikolaiDimech98"]I was also wondering if it would be easier to work with the registers directly as i have used microchip and even arm cortex MCUs during the previous year and I always used registers or cmisis. but I would like to upgrade and use the nRF52832 for my final year project.[/quote]
&lt;p&gt;I understand this, and you are absolutely free to use the registers directly - but personally I would recommend making use of the drivers and libraries provided with the SDK, since a lot of the work then is already done for you.&lt;br /&gt;Especially when it comes to setting up peripherals and the likes, the drivers handles this in a good way - they do not introduce a lot of wasted instructions either, if that is what you are worried about.&lt;/p&gt;
[quote user="NikolaiDimech98"]Are there any examples that i could find using Cmsis or the registers directly please? :)[/quote]
&lt;p&gt;Unfortunately we do not provide such examples, but the available registers are all described in their respective documentation. As an example you can see the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Ftimer.html&amp;amp;anchor=concept_xbd_hqp_sr"&gt;TIMER peripherals documentation and registers here&lt;/a&gt;. There also exists a &lt;a href="https://github.com/andenore/NordicSnippets"&gt;bare-metal repository on Github&lt;/a&gt;, that demonstrates direct register manipulation for a couple of peripherals, but again this is not something that is provided by Nordic so keep this in mind.&lt;br /&gt;I would again like to emphasize the benefit of using the provided drivers and libraries from the SDK - but I also totally understand if you would like to stick to the register level, I personally felt this way for a long time too.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLDC PWM on nRF52DK</title><link>https://devzone.nordicsemi.com/thread/267971?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 08:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f6f87d4-e81d-438c-85a2-efe42f9d28ac</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;Thanks for your quick response. &lt;/p&gt;
&lt;p&gt;yes i have looked into both PWM library and driver examples and i managed to play around but i still need to fully understand everything that&amp;#39;s going on.&lt;/p&gt;
&lt;p&gt;I was also wondering if it would be easier to work with the registers directly as i have used microchip and even arm cortex MCUs during the previous year and I always used registers or cmisis. but I would like to upgrade and use the nRF52832 for my final year project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are there any examples that i could find using Cmsis or the registers directly please? :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLDC PWM on nRF52DK</title><link>https://devzone.nordicsemi.com/thread/267968?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 07:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a50c817-4cb2-4eea-bc8c-4c4566279b35</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]i am new to the nRF microcontroller[/quote]
&lt;p&gt;Welcome!&lt;/p&gt;
[quote user=""]I am currently working on a project that requires the control of a BLDC and i am new to the nRF microcontroller is there anyone how can give me some sort of guide and help please?[/quote]
&lt;p&gt;Have you had a look at the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_getting_started/UG/gs/product_development.html"&gt;Getting Started with Product development&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf5gs/struct/nrf5gs_sw_dev.html"&gt;Getting started with software development guide&lt;/a&gt;?&lt;br /&gt;Before you may begin, you must set up your toolchain, so that you are ready to start developing. If you already have done this, we may proceed to the development part!&lt;br /&gt;&lt;br /&gt;After having set up your development environment, it sounds like you might want to take a look at the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/pwm_hw_example.html"&gt;PWM driver example&lt;/a&gt;&amp;nbsp;and &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/pwm_example.html"&gt;PWM Library example&lt;/a&gt;&amp;nbsp;from the SDK. Both these examples demonstrate how you may go about generating a PWM signal on your nRF52 DK.&lt;br /&gt;Following this, you could begin looking into one of the BLE examples, to see how you may go about transmitting commands to / from your device, and have that produce the necessary PWM waveforms.&lt;br /&gt;I would then start working out of one of the BLE peripheral examples in the SDK, and add your own PWM / motor control functionality to that - this way, you will not have to write the code for configuring and starting the BLE procedures yourself.&lt;br /&gt;&lt;br /&gt;There are tons of posts on the forum here and github repositories already dedicated to controlling BLDC motors through a BLE connection, so I highly recommend checking out some of those as well for inspiration.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to ask if you should encounter any issues or questions, or if anything should be unclear!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>