<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>标签：编码器 - Sinon的博客</title><link>https://sinon.top/tags/encoder</link><atom:link href="https://sinon.top/tags/encoder/feed/tags/encoder.xml" rel="self" type="application/rss+xml"/><description>Sinon的博客</description><language>zh-cn</language><lastBuildDate>Tue, 3 Nov 2026 12:56:46 GMT</lastBuildDate><item><title><![CDATA[单片机学习笔记之4——编码器转速的获取]]></title><link>https://sinon.top/archives/encoder-rpm-measure</link><description><![CDATA[<img src="https://sinon.top/plugins/feed/assets/telemetry.gif?title=%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%E4%B9%8B4%E2%80%94%E2%80%94%E7%BC%96%E7%A0%81%E5%99%A8%E8%BD%AC%E9%80%9F%E7%9A%84%E8%8E%B7%E5%8F%96&amp;url=/archives/encoder-rpm-measure" width="1" height="1" alt="" style="opacity:0;">最近的学校电赛初赛有一个自控小车的题目，其中的编码器读取转速还是费了我一些时间学习的，这里把编码器的初始化等代码以及main函数的测试代码加了一些注释放出来作为参考。 #include "encoder.h" void encoder_left_Init(void) { GPIO_I]]></description><guid isPermaLink="false">/archives/encoder-rpm-measure</guid><dc:creator>SinonJZH</dc:creator><enclosure url="https://sinon.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2FIMG_1754.png&amp;size=m" type="image/jpeg" length="0"/><category>单片机</category><category>学习笔记</category><pubDate>Fri, 21 Dec 2018 12:39:56 GMT</pubDate></item></channel></rss>