Arduino爱好者

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 16040|回复: 29

[经验] 【Arduino】108种传感器模块系列实验(62)---电压检测传感器

[复制链接]
发表于 2019-7-14 12:32 | 显示全部楼层 |阅读模式
本帖最后由 eagler8 于 2019-8-30 08:32 编辑

37款传感器与模块的提法,在网络上广泛流传,其实Arduino能够兼容的传感器模块肯定是不止37种的。鉴于本人手头积累了一些传感器和模块,依照实践出真知(一定要动手做)的理念,以学习和交流为目的,这里准备逐一动手试试做实验,不管成功与否,都会记录下来---小小的进步或是搞不定的问题,希望能够抛砖引玉。

【Arduino】108种传感器模块系列实验(资料+代码+图形+仿真)

实验六十二:电压检测模块 Voltage Sensor 电压传感器

由于目前电子产品各式各样,供电电源的电压也各不相同,要想检测就需要一款合适的电压检测模块和控制器。控制器模拟接口检测输入电压上限为5V,也就是说大于5V的电压将无法检测。2011 年新推出的这款电压检测模块能够解决此问题,实现检测大于5V的电压,此模块基于电阻分压原理所设计,能使红色端子接口输入的电压缩小5倍,模拟输入电压上限为5V,那么电压检测模块的输入电压则不能大于5V×5=25V(如果用到3.3V系统,输入电压不能大于3.3Vx5=16.5V)。因为Arduino所用AVR 芯片为10位AD,所以此模块的模拟分辨率为0.00489V(5V/1023),故电压检测模块检测输入下限电压为 0.00489V×5=0.02445V。通过3P传感器连接线插接到传感器扩展板,不仅可以轻松实现对电压电量大小的检测,监控互动媒体作品或机器人电池供电的电量,也可以通过IICLCD1602液晶模块显示电压制作电压监测器。
00.jpg

 楼主| 发表于 2019-7-20 17:19 | 显示全部楼层
本帖最后由 eagler8 于 2020-12-12 16:23 编辑
  1. /*
  2. 【Arduino】66种传感器模块系列实验(62)
  3. 实验六十二:电压检测模块 Voltage Sensor 电压传感器
  4. 试试看波形如何
  5. */

  6. void setup()
  7. {
  8.   Serial.begin(9600);
  9. }
  10. void loop()
  11. {
  12.       int val;
  13.       float temp;
  14.       val=analogRead(0);
  15.       temp=val/40.92;  
  16.       val=(int)temp;
  17.       Serial.println(val);
  18.       delay(1000);
  19. }
复制代码

 楼主| 发表于 2019-7-15 12:19 | 显示全部楼层
本帖最后由 eagler8 于 2019-7-26 19:15 编辑

Arduino 系列传感器和模块实验目录清单:
一块扩展板完成Arduino的9类18项实验(代码+图形+仿真)
https://www.arduino.cn/thread-88696-1-1.html
实验一:干簧管传感器模块
https://www.arduino.cn/thread-86350-1-1.html
实验二:光敏电阻传感器模块
https://www.arduino.cn/thread-86393-1-1.html
实验三:微波雷达感应开关模块
https://www.arduino.cn/thread-86397-1-1.html
实验四:振动传感器模块
https://www.arduino.cn/thread-86512-1-1.html
实验五:热敏电阻温度传感器模块
https://www.arduino.cn/thread-86520-1-1.html
实验六:KY-038高感度声音传感器模块
https://www.arduino.cn/thread-86576-1-1.html
实验七:旋转电位器模块
https://www.arduino.cn/thread-86866-1-1.html
实验八:湿度传感器模块
https://www.arduino.cn/thread-87993-1-1.html
实验九:火焰(红外线)传感器模块
https://www.arduino.cn/thread-88283-1-1.html
实验十:敲击传感器模块KY-031
https://www.arduino.cn/thread-88401-1-1.html
实验十一:金属触摸传感器模块KY-36
https://www.arduino.cn/thread-88422-1-1.html
实验十二:开关霍尔磁力传感器模块
https://www.arduino.cn/thread-88461-1-1.html
实验十三:触摸传感器模块
https://www.arduino.cn/thread-88523-1-1.html
实验十四:倾斜传感器模块(角度开关)
https://www.arduino.cn/thread-88530-1-1.html
实验十五:手指侦测心跳传感器模块KY-039
https://www.arduino.cn/thread-88557-1-1.html
实验十六:电容式数字触摸传感器模块(TTP223 )
https://www.arduino.cn/thread-88567-1-1.html
实验十七:HC-SR312微型热释电传感器模块
https://www.arduino.cn/thread-88578-1-1.html
实验十八:0.25W太阳能滴胶板传感器模块(45X45毫米)
https://www.arduino.cn/thread-88669-1-1.html
实验十九:常闭型SW-420震动开关传感器模块
https://www.arduino.cn/thread-88672-1-1.html
实验二十:水银开关传感器模块(KY-017)
https://www.arduino.cn/thread-88787-1-1.html
实验二十一:激光头传感器模块(KY-008)
https://www.arduino.cn/thread-88842-1-1.html
实验二十二:MAX7219点阵显示模块(8X8 LED共阴)
https://www.arduino.cn/thread-88851-1-1.html
实验二十三:NE555频率可调脉冲发生器模块(方波简版)
https://www.arduino.cn/thread-88867-1-1.html
实验二十四:水位水滴传感器模块(Water Sensor)
https://www.arduino.cn/thread-88886-1-1.html
实验二十五:MQ-2气敏式烟雾传感器模块(甲烷等)
https://www.arduino.cn/thread-88906-1-1.html
实验二十六:4X4矩阵键盘模块(轻触式按键)
https://www.arduino.cn/thread-88966-1-1.html
实验二十七:GY-BMP280-3.3 高精度大气压强传感器模块
https://www.arduino.cn/thread-89010-1-1.html
实验二十八:三色5050 RGB全彩LED模块 KY-009
https://www.arduino.cn/thread-89022-1-1.html
实验二十九:DS1302实时时钟模块(带电池  掉电走时)
https://www.arduino.cn/thread-89070-1-1.html
实验三十:光敏二极管传感器模块(英语photodiode )
https://www.arduino.cn/thread-89129-1-1.html
实验三十一:ISD1820录音语音模块(8-20秒)
https://www.arduino.cn/thread-89154-1-1.html
实验三十二:雨滴传感器模块(雨水/雨量/叶面湿度)
https://www.arduino.cn/thread-89184-1-1.html
实验三十三:ESP8266串口WIFI收发无线模块 (ESP-01S)
https://www.arduino.cn/thread-89245-1-1.html
实验三十四:三色LED交通灯模块(红绿黄灯)
https://www.arduino.cn/thread-89273-1-1.html
实验三十五:模拟量声音传感器模块(4线制)
https://www.arduino.cn/thread-89289-1-1.html
实验三十六:WS2812B智能外控集成LED四位彩灯模块
https://www.arduino.cn/thread-89297-1-1.html
实验三十七:MQ-3酒精乙醇传感器模块
https://www.arduino.cn/thread-89300-1-1.html
实验三十八:joystick双轴XY按键摇杆模块(游戏控制杆)
https://www.arduino.cn/thread-89365-1-1.html
实验三十九:DS18B20单总线数字温度传感器模块
https://www.arduino.cn/thread-89368-1-1.html
实验四十:360度旋转增量编码器模块(KY-040)
https://www.arduino.cn/thread-89427-1-1.html
实验四十一:IS0203激光接收管传感器模块
https://www.arduino.cn/thread-89428-1-1.html
实验四十二:DSM501A韩国PM2.5灰尘粉尘传感器模块
https://www.arduino.cn/thread-89441-1-1.html
实验四十三:5V低电平触发单路继电器模块
https://www.arduino.cn/thread-89445-1-1.html
实验四十四:类比霍尔磁性传感器 KY-035(模拟量)
https://www.arduino.cn/thread-89464-1-1.html
实验四十五:红外避障传感器模块(光电接近开关)
https://www.arduino.cn/thread-89473-1-1.html
实验四十六:350Ω高精度电阻式应变片传感器 (BF350)
https://www.arduino.cn/thread-89474-1-1.html
实验四十七:七段LED数码管模块(共阴/共阳)
https://www.arduino.cn/thread-89475-1-1.html
实验四十八:GY-291三轴重力加速度模块 (IIC/SPI传输)
https://www.arduino.cn/thread-89567-1-2.html
实验四十九:有源蜂鸣器报警器发声模块(低电平触发)
https://www.arduino.cn/thread-89568-1-2.html
实验五十:W25Q64 FLASH外扩存储模块 (SPI接口 )
https://www.arduino.cn/thread-89570-1-2.html
实验五十一:自锁点动触摸按键传感器模块(TTP223芯片)
https://www.arduino.cn/thread-89721-1-1.html
实验五十二:SPI接口Micro SD卡模块(带电平转换芯片)
https://www.arduino.cn/thread-89729-1-1.html
实验五十三: 土壤湿度水分传感器模块(电阻式)
https://www.arduino.cn/thread-89734-1-1.html
实验五十四: 大按键点动轻触开关模块(高电平输出)
https://www.arduino.cn/thread-89785-1-1.html
实验五十五:DHT11 温湿度传感器(数字型单总线通信)
https://www.arduino.cn/thread-89786-1-1.html
实验五十六: 8路LED流水的灯跑马灯模块SUNLEPHANT
https://www.arduino.cn/thread-89832-1-1.html
实验五十七: 四档频率占空比可调矩形波信号发生器(NE555)
https://www.arduino.cn/thread-89868-1-1.html
实验五十八: HC-SR04超声波测距传感器模块(通用款)
https://www.arduino.cn/thread-89869-1-1.html
实验五十九: RS232转TTL2代串口模块刷机板(MAX3232)
https://www.arduino.cn/thread-89895-1-1.html
实验六十:ATTINY85 Digispark kickstarter 微型usb开发板
https://www.arduino.cn/thread-89898-1-1.html
实验六十一: 直条8位 WS2812B 5050 RGB LED全彩模块
https://www.arduino.cn/thread-90147-1-1.html
实验六十二:电压检测模块 Voltage Sensor 电压传感器
https://www.arduino.cn/thread-90149-1-1.html
实验六十三: 1排4键薄膜开关 Arduino扩展键盘模块控制面板
https://www.arduino.cn/thread-90150-1-1.html
实验六十四: TCS3200D颜色识别传感器(可编程彩色光频模块)
https://www.arduino.cn/thread-90168-1-1.html
实验六十五: 5MM三色RGB全彩LED模块颜色传感器KY-016
https://www.arduino.cn/thread-90400-1-1.html
实验六十六: TCRT5000红外反射光电开关寻迹传感器模块
https://www.arduino.cn/thread-90402-1-1.html
实验六十七:HC-SR501 热释电人体红外感应传感器模块
https://www.arduino.cn/thread-90404-1-1.html
实验六十八: GY-68 BMP180 新款 BOSCH温度模块气压传感器
https://www.arduino.cn/thread-90411-1-1.html
实验六十九: AT24C256 I2C接口 EEPROM 存储模块 IIC
https://www.arduino.cn/thread-90412-1-1.html
实验七十: GY-30 数字光强度传感器模块(BH1750FVI芯片)
https://www.arduino.cn/thread-90413-1-1.html
实验七十一:电容式土壤湿度传感器模块(TL555I)
https://www.arduino.cn/thread-90471-1-1.html
实验七十二:HX1838红外无线遥控套件红外扩展模块(遥控器+接收板)
https://www.arduino.cn/thread-90473-1-1.html
实验七十三:人体秤50kg称重传感器模块(电阻应变半桥式)
https://www.arduino.cn/thread-90545-1-1.html
实验七十四:4位LED数码管显示模块0.36英寸亮度可调带时钟点( TM1637)
https://www.arduino.cn/thread-90546-1-1.html
实验七十五: GY-NEO-6MV2新款飞控GPS模块 (带大天线)
https://www.arduino.cn/thread-90547-1-1.html
实验七十六:TTL转RS-485模块 MAX485 RS485模块
https://www.arduino.cn/thread-90549-1-1.html
实验七十七: 2路继电器模块 带光耦保护Arduino扩展板
https://www.arduino.cn/thread-90557-1-1.html
 楼主| 发表于 2019-7-20 15:05 | 显示全部楼层
为配合实验,找了一块DC-DC升压模块
01.jpg
 楼主| 发表于 2019-7-20 15:18 | 显示全部楼层
升压模块
1、体积小可调升压模块,可轻松安装于各种小型设备里面。
2、可采用MicroUSB输入,用USB充电器或者移动电源通过手机数据线即3、可轻松得到9V,12V,15V,18V,24V的常用电压,使用非常方便。
4、宽的输入和输出电压,高的转换效率。
01-.jpg

 楼主| 发表于 2019-7-20 15:49 | 显示全部楼层
模块特性
1)大输出电流:2A(建议在1A内使用)
2)输入电压:2 v--24 v
3)大输出电压:> 28 v(建议在26V内使用)
4)效率:> 93%(效率与输入和输出的压差有关)
5)尺寸:30mm* 17mm* 14mm(长*宽*高)

注意事项
1)此模块是升压模块,输出电压要大于输入电压
2)  峰值电流输出电流不过2A

02 (5).jpg

 楼主| 发表于 2019-7-20 15:51 | 显示全部楼层
02 (3).jpg
 楼主| 发表于 2019-7-20 16:16 | 显示全部楼层
电压检测传感器模块
此模块基于电阻分压原理所设计,能使端子接口输入的电压缩小5倍,Arduino模拟输入电压最大为5V,那么电压检测模块的输入电压则不能大于5V×5=25V(如果用到3.3V系统,输入电压不能大于3.3Vx5=16.5V)。因为Arduino所用AVR芯片为10位AD,所以此模块的模拟分辨率为0.00489V(5V/1023),故电压检测模块检测输入最小电压为0.00489V×5=0.02445V。

06.jpg

 楼主| 发表于 2019-7-20 16:22 | 显示全部楼层
模块参数
电压输入范围:DC0-25V
电压工作范围:DC0-25V
电压检测范围:DC0.02445V-25V
数据类型:模拟输入
电压模拟分辨率:0.00489V
DC输入接口:红色端子正极接VCC,负极接GND
尺寸:30mm x 25mm
接口类型:KF2510-3P
输出接口:
"-"接GND,
"+"接5/3.3V,
"S"接Arduino的AD引脚(A0)
03.jpg

 楼主| 发表于 2019-7-20 17:16 | 显示全部楼层
06-.jpg
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|好玩手机游戏盒子|196体育|Arduino爱好者

GMT+8, 2023-3-25 18:38 , Processed in 0.090351 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表