anger0925 发表于 2021-8-5 18:25

【Silicon Labs 开发套件评测】+环境光传感器 VEML6035和霍尔效应传感器Si7210

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">光传感器:</font></span></span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri">&nbsp; <span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在很多应用中会使用到环境光的检测,一般离不开光传感器。我们这里就了解</font><font face="Calibri">VEML6035</font><font face="宋体">环境光传感器。威视</font><font face="Calibri">Vishay&nbsp;VEML6035 I</font></span></span><span style="font-size:10.5000pt"><span style="font-family:Calibri">2C<font face="宋体">环境光传感器是一款</font><font face="Calibri">16</font><font face="宋体">位、低功耗、高灵敏度</font><font face="Calibri">CMOS</font><font face="宋体">光传感器,通过</font><font face="Calibri">I2C</font><font face="宋体">命令通信。该传感器的有源平均功耗为</font><font face="Calibri">300&micro;W</font><font face="宋体">。</font><font face="Calibri">VEML6035</font><font face="宋体">传感器在单芯片中集成了光电二极管、放大器和模拟</font><font face="Calibri">/</font><font face="宋体">数字电路。该传感器采用</font><font face="Calibri">Filtron&trade;</font><font face="宋体">技术,可提供良好的光谱灵敏度,以匹配人眼反应。典型应用包括用于移动设备、工业开</font><font face="Calibri">/</font><font face="宋体">关照明操作以及光学开关(用于消费类、计算和工业设备及显示器)的环境光传感器。</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">想了解详细参数通过官网地址:</font></span></span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><a href="https://www.vishay.com/search?searchChoice=part&amp;query=VEML6035"><u><span class="15" style="font-family:Calibri"><span style="color:#0000ff"><span style="text-decoration:underline"><span style="text-underline:single">https://www.vishay.com/search?searchChoice=part&amp;query=VEML6035</span></span></span></span></u></a></span></span></p>

<p style="text-align:justify">&nbsp;</p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">Si7210 <font face="宋体">霍尔效应磁性传感器</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">:</font></span></span></span></span></p>

<p style="text-align:justify">&nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">这两个传感器在开发套件硬件是连接在</font><font face="Calibri">I2C</font><font face="宋体">总线上</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">使能开关</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">与</font><font face="Calibri">MCU</font><font face="宋体">接口</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">VEML6035</font><font face="宋体">设备地址是</font><font face="Calibri">0x29</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在</font><font face="Calibri">SSv5</font><font face="宋体">上实现功能,接着工程来实现,打开</font><font face="Calibri">control.slcp</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">打开配置</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">使能关传感器开关</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">然后在</font><font face="Calibri">platform-&gt;board Drivers</font><font face="宋体">下找到</font><font face="Calibri">VEML6035</font><font face="宋体">和</font><font face="Calibri">Si7210</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">分别点击</font><font face="Calibri">install</font><font face="宋体">,完成安装。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">I2C</font><font face="宋体">启动前面一节已经安装好。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">添加一个传感器处理任务</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">编译下载运行</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">可以看出,感应还是很敏感,用手挡住,马上就变化了。</font></span></span></span></span></p>

w494143467 发表于 2021-8-6 09:43

<p>感谢分享!</p>
页: [1]
查看完整版本: 【Silicon Labs 开发套件评测】+环境光传感器 VEML6035和霍尔效应传感器Si7210