<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sensor on &gt; Mattias Zurković</title><link>https://mattiasz.com/blog/categories/sensor/</link><description>Recent content in Sensor on &gt; Mattias Zurković</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 07 Oct 2021 22:14:00 -0700</lastBuildDate><atom:link href="https://mattiasz.com/blog/categories/sensor/index.xml" rel="self" type="application/rss+xml"/><item><title>AS5048A Magnetic Encoder and STM32</title><link>https://mattiasz.com/blog/as5048a-magnetic-encoder-and-stm32/</link><pubDate>Thu, 07 Oct 2021 22:14:00 -0700</pubDate><guid>https://mattiasz.com/blog/as5048a-magnetic-encoder-and-stm32/</guid><description>&lt;p&gt;This past week I began to write the controller firmware - mainly playing with the AS5048A angular position sensor from AMS. Here is the &lt;a href="https://ams.com/documents/20143/36005/AS5048_DS000298_4-00.pdf/910aef1f-6cd3-cbda-9d09-41f152104832" target="_blank" rel="noopener"&gt;datasheet&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="img-01.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;This sensor will be used to get the rotor position and then compute the resulting electrical angle for the Clarke/Park transforms and also it will be used to find rotor speed for the out loop.&lt;/p&gt;
&lt;p&gt;I will be using an STM32F446 board to run the loop as it has a high clock speed. The AS5048A sends its measurements over SPI. Below is the read package sent from the sensor:&lt;/p&gt;</description></item></channel></rss>