张高兴的 Windows 10 IoT 开发笔记:FM 电台模块 KT0803L
This is a Windows 10 IoT Core project on the Raspberry Pi 2/3, coded by C#.
GitHub:https://github.com/ZhangGaoxing/windows-iot-demo/tree/master/KT0803L
Image

Connect
- SDA - Pin3
- SCL - Pin5
- VCC - 3.3V
- GND - GND
Reference
https://github.com/ZhangGaoxing/windows-iot-demo/tree/master/KT0803L/Reference
What Contains
In KT0803L.cs file
/// <summary>
/// Initialize KT0803L
/// </summary>
/// <param name="mhz">FM Channel ( Range from 70Mhz to 108Mhz )</param>
/// <param name="country">Region</param>
/// <param name="rfgain">Transmission Power</param>
/// <param name="pga">PGA ( Programmable Gain Amplifier ) Gain</param>
public async Task InitializeAsync(double mhz, Country country = Country.CHINA, RFGAIN rfgain = RFGAIN.RFGAIN_98_9dBuV, PGA pga = PGA.PGA_0dB);
/// <summary>
/// Set FM Channel
/// </summary>
/// <param name="mhz">MHz ( Range from 70Mhz to 108Mhz )</param>
public void SetChannel(double mhz);
/// <summary>
/// Set PGA ( Programmable Gain Amplifier ) Gain
/// </summary>
/// <param name="pga">PGA</param>
public void SetPGA(PGA pga);
/// <summary>
/// Set Transmission Power
/// </summary>
/// <param name="pga"></param>
public void SetRFGAIN(RFGAIN rfgain);
/// <summary>
/// Set Pre-emphasis Time-Constant
/// </summary>
/// <param name="country">Country</param>
public void SetPHTCNST(Country country);
/// <summary>
/// Set Mute Mode
/// </summary>
/// <param name="isMute">Mute when value is true</param>
public void SetMute(bool isMute);
/// <summary>
/// Set Standby Mode
/// </summary>
/// <param name="isStandby">Standby when value is true</param>
public void SetStandby(bool isStandby);
/// <summary>
/// Set Bass Boost
/// </summary>
/// <param name="boost">Boost Mode</param>
public void SetBassBoost(BassBoost boost);
/// <summary>
/// Cleanup
/// </summary>
public void Dispose();
How to Use
- First, you need to create a KT0803L object. After that you should call InitializeAsync() to initialize.
KT0803L kt = new KT0803L();
// 108 MHz
await kt.InitializeAsync(108);
- And you can input the audio through the 3.5mm earphone jack. After that, turn on your radio, listen to FM 108 MHz.
- If you want to close the sensor, call Dispose().
kt.Dispose();
张高兴的 Windows 10 IoT 开发笔记:FM 电台模块 KT0803L的更多相关文章
- 张高兴的 Windows 10 IoT 开发笔记:使用 ADS1115 读取模拟信号
考虑到 Raspberry Pi 读取模拟信号是很烦人的事情,更何况是在没人玩的 Windows 10 IoT 下,所以准备正儿八经的写点东西. 需求:使用 Raspberry Pi 读取输出模拟信号 ...
- 张高兴的 Windows 10 IoT 开发笔记:使用 Lightning 中的软件 PWM 驱动 RGB LED
感觉又帮 Windows 10 IoT 开荒了,所以呢,正儿八经的写篇博客吧.其实大概半年前就想写的,那时候想做个基于 Windows 10 IoT 的小车,但树莓派原生不支持 PWM 啊.百度也搜不 ...
- 张高兴的 Windows 10 IoT 开发笔记:HC-SR04 超声波测距模块
HC-SR04 采用 IO 触发测距.下面介绍一下其在 Windows 10 IoT Core 环境下的用法. 项目运行在 Raspberry Pi 2/3 上,使用 C# 进行编码. 1. 准备 H ...
- 张高兴的 Windows 10 IoT 开发笔记:BH1750FVI 光照度传感器
BH1750FVI 是一款 IIC 接口的数字型光强度传感器集成电路.下面介绍一下其在 Windows 10 IoT Core 环境下的用法. 项目运行在 Raspberry Pi 2/3 上,使用 ...
- 张高兴的 Windows 10 IoT 开发笔记:部署 ASP.NET Core 2 应用
今天是大年初二,都去走亲戚了吧,享受一下这难得的能和亲友相聚的时光.而我就不一样了,今天一回到家就又开始瞎折腾了,哈哈哈. 问题背景 最近花了点时间用 ASP.NET Core 2 写了个个人博客,中 ...
- 张高兴的 Windows 10 IoT 开发笔记:串口红外编解码模块 YS-IRTM
This is a Windows 10 IoT Core project on the Raspberry Pi 2/3, coded by C#. GitHub: https://github.c ...
- 张高兴的 Windows 10 IoT 开发笔记:无线收发芯片 nRF24L01
This is a Windows 10 IoT Core project on the Raspberry Pi 2/3, coded by C#. GitHub:https://github.co ...
- 张高兴的 Windows 10 IoT 开发笔记:0.96 寸 I2C OLED
This is a Windows 10 IoT Core project on the Raspberry Pi 2/3, coded by C#. GitHub:https://github.co ...
- 张高兴的 Windows 10 IoT 开发笔记:使用 MAX7219 驱动数码管
This is a Windows 10 IoT Core project on the Raspberry Pi 2/3, coded by C#. GitHub:https://github.co ...
随机推荐
- IOS开发常见第三方总结
链接](https://github.com/languages/Objective-C/most_watched) * [three20](https://github.com/facebook ...
- 使用jdk压缩war包
首先安装jdk 压缩 ..../jdk/bin/jar -cvf file.war file 解压 ..../jdk/bin/jar -xvf file.war
- oracle数据库逐步学习总结【基础二】
原创作品,转载请在文字开头明显位置注明出处:https://www.cnblogs.com/sunshine5683/p/10067872.html 接着上一篇,继续总结! 五.oracle表管理 首 ...
- 高并发第十一弹:J.U.C -AQS(AbstractQueuedSynchronizer) 组件:Lock,ReentrantLock,ReentrantReadWriteLock,StampedLock
既然说到J.U.C 的AQS(AbstractQueuedSynchronizer) 不说 Lock 是不可能的.不过实话来说,一般 JKD8 以后我一般都不用Lock了.毕竟sychronize ...
- Java8简明学习之接口默认方法
接口中有默认方法实现Java8允许我们使用default关键字,为接口声明添加非抽象的方法实现. public interface DefaultInterFace { int plus(int x, ...
- git使用总结(常用命令)
前言 写这篇文章的目的是让新手能够操作git管理自己的代码,可能你知道git的各种命令但是对其使用顺序并不熟,比如我.所以有必要整合一篇关于命令使用步骤的文章,图片用的人家的,也没询问让不让用,可能会 ...
- Drupal8入门文章推荐
1.<drupal 8 入门 > 2.<初探drupal8>
- css对ie的兼容性问题处理(一):
1.在制作sidebar时对li里面的元素进行浮动,li在ie6/7下会出现4px的间间隙: 解决方法:在li下加上vertical-align属性,值可为top.bottom.middle: 扩展: ...
- Dialog向Activity传递数据
PopupDialog中声明一个内部接口PriorityListener,接口中声明一个回调函数refreshPriorityUI,用于在 Dialog的监听事件触发后刷新Activity的UI显示. ...
- ida不错的插件记录
IDASkins 地址 https://github.com/zyantific/IDASkins 作用 ida黑色皮肤插件 IDAFuzzy 地址 https://github.com/Ga-ryo ...