<?xml-stylesheet type="text/xsl" href="https://community.element14.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/"><channel><title>Experimenting with Microwave-Based Sensors for Presence Detection</title><link>/technologies/embedded/b/blog/posts/experimenting-with-microwave-based-sensors-for-presence-detection</link><description>Table of Contents

 Introduction 
 What is it? What can and can’t it do? 
 Exploring the Board 
 Connecting the Board 
 Running the supplied PC Application 
 Understanding Reports 
 Capturing and Decoding Reports using Python 
 Using an Arduino 
 Putting</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Experimenting with Microwave-Based Sensors for Presence Detection</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/experimenting-with-microwave-based-sensors-for-presence-detection</link><pubDate>Sun, 14 May 2023 23:17:13 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:fa522247-5f4f-41da-9ceb-2fedca2a8914</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I learned a bit more!&lt;/p&gt;
&lt;p&gt;The microwave IC manufacturer is Sidian Micro, but they&amp;nbsp;also seem to be known as &lt;strong&gt;ICLegend Micro&lt;/strong&gt;, at least that&amp;#39;s their Internet presence anyway! On their website they have some documentation, but not complete datasheets without approval. However, based on the information I could find there, using Google Translate, I was at least able to confirm the decoding of the reports from their reference design, because it seems the HLK-LD2410 is a semi-clone of the reference design (with a different microcontroller, but I believe using the same code ported across - there&amp;#39;s no access to the source code on the website however).&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve updated the Python code on GitHub with comments describing it.&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;# Example data report in Basic mode:&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# hex: f4 f3 f2 f1 0d 00 02 aa 03 4f 00 64 4c 00 64 32 00 55 00 f8 f7 f6 f5&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# bytes 0-3 are the header, always 0xf4, 0xf3, 0xf2, 0xf1&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# bytes 4-5 are the frame length, always 0x0d, 0x00 for Basic mode&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# byte 6 is the report type, always 0x02 for Basic mode, or 0x01 for Engineering mode&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# byte 7 is the report head, always 0xaa&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# byte 8 is the state, 0x00 = no target, 0x01 = moving target, 0x02 = stationary target, 0x03 = combined target&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# bytes 9-10 are the moving target distance in cm, little endian&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# byte 11 is the moving target energy&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# bytes 12-13 are the stationary target distance in cm, little endian&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# byte 14 is the stationary target energy&lt;br /&gt;&lt;/span&gt;&lt;span&gt;# bytes 15-16 are the detection distance in cm, little endian&lt;/span&gt;&lt;/pre&gt;&lt;img src="https://community.element14.com/aggbug?PostID=25940&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Experimenting with Microwave-Based Sensors for Presence Detection</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/experimenting-with-microwave-based-sensors-for-presence-detection</link><pubDate>Sun, 14 May 2023 10:48:36 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:fa522247-5f4f-41da-9ceb-2fedca2a8914</guid><dc:creator>BigG</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Great blog. This has been on my wish list for some time now.&lt;/p&gt;
&lt;p&gt;It was only the other day I saw this new product being promoted by AI-Thinker, which also offers BLE/WiFi. I thought that was an exceptionally good price... &lt;a id="" href="https://www.aliexpress.com/item/1005005471718602.html"&gt;https://www.aliexpress.com/item/1005005471718602.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Other presence sensors that caught my eye were from SeeedStudio. E.g. &lt;a id="" href="https://www.seeedstudio.com/24GHz-mmWave-Radar-Sensor-Human-Static-Presence-Module-p-5267.html"&gt;https://www.seeedstudio.com/24GHz-mmWave-Radar-Sensor-Human-Static-Presence-Module-p-5267.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=25940&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>