每天认识几个传感器(二)

目录

二色LED模块

火焰传感器

GY-521 MPU6050

MP1584EN DC-DC降压电源模块

麦克风声音传感器


二色LED模

二色LED模块,火焰传感器,GY-521 MPU6050,MP1584EN DC-DC降压电源模块,麦克风声音传感器

它有三个引脚,分别是VCC、GND和S。

+:VCC   

 -:GND    

信号引脚:S

当S引脚接收到高电平时,红色LED亮;当S引脚接收到低电平时,绿色LED亮

火焰传感器

火焰传感器通常有4个引脚,其中两个是电源引脚,另外两个是信号引脚。其中一个信号引脚是数字输出引脚(DO),另一个是模拟输出引脚(AO)。当检测到火焰时,数字输出引会输出低电平,模拟输出引脚会输出一个模拟值

GY-521 MPU6050

GY-521 MPU6050模块的引脚如下:

VCC:电源正极

GND:电源负极

SCL:I2C时钟线

SDA:I2C数据线

XDA:辅助I2C数据线

XCL:辅助I2C时钟线

AD0:模块地址选择,高电平为0x69,低电平为0x68

INT:中断输出,可用于检测加速度或陀螺仪数据发生变化时触发中断信号。其中,VCC和GND是电源引脚,SCL和SDA是I2C通讯引脚,AD0是模块地址选择引脚,INT是中断输出引脚。XDA和XCL是辅助I2C通讯引脚,一般不使用

MP1584EN DC-DC降压电源模块

MP1584EN DC-DC降压电源模块的四个引脚分别是输入正极、输入负极、输出正极和输出负极。其中,输入正极和输入负极是直流电源的输入端,输出正极和输出负极是直流电源的输出端MP1584EN DC-DC降压电源模块的工作原理是通过在MOS管Q上加上开关信号PWM,控制开关管的导通与关断,使电感和电容充放电达到将电源进行降压的目的。 MP1584 芯片内部自带短路保护,短路电流阈值4.87A,去除过载后瞬时恢复。一般来说,MP1584EN DC-DC降压电源模块有四个引脚,其中

VIN是输入电压,GND是地线,VOUT是输出电压,EN是使能端

麦克风声音传感器

接口:

AO表示模拟量输出,用来实时输出麦克风所检测声音电压信号,

DO表示当声音到达某个阈值时,输出高低电平信号;

GND表示地线,

VCC表示电源正极

### MP1584EN Buck Module Specifications and Applications The **MP1584EN-LF-Z** is a type of SOT-23 package device, specifically designed as an adjustable output synchronous step-down DC/DC converter with integrated MOSFETs. This component supports high-frequency operation while maintaining excellent load and line regulation performance[^1]. The following details provide comprehensive information about its specifications and potential applications. #### Key Features - **Input Voltage Range**: Operates within the range of 4V to 28V. - **Output Current Capability**: Can deliver up to 3A continuous current depending on thermal conditions. - **Switching Frequency**: Adjustable switching frequency from 200kHz to 2MHz allows optimization for efficiency or size constraints. - **Protection Mechanisms**: Built-in protections include overcurrent protection (OCP), short-circuit protection (SCP), and thermal shutdown mechanisms ensuring safe operations under abnormal circumstances. #### Typical Application Circuit Design Considerations When designing circuits using this buck regulator, it's important to consider factors such as parasitic inductance (ESL) present in capacitors which can affect stability and transient response characteristics significantly[^2]. Additionally, selecting appropriate input/output filter components based upon ripple requirements will be crucial for achieving desired system performances. #### Example Code Implementation For Basic Configuration Using Arduino Platform To Control An LED Strip Via PWM Signal Generated By Timer Interrupt Service Routine(ISR). Below demonstrates how one might configure timer interrupts alongside analogWrite() function calls so that brightness levels may vary dynamically according predefined patterns stored inside arrays indexed by millis()-based timing logic: ```cpp const int ledPin = 9; // Define pin connected to LEDs' positive terminal through resistor network limiting forward voltage drops per segment accordingly unsigned long previousMillis = 0; int fadeValue = 0; void setup(){ pinMode(ledPin , OUTPUT); } void loop(){ unsigned long currentMillis = millis(); if(currentMillis - previousMillis >= 5){ previousMillis +=5 ; analogWrite(ledPin,fadeValue); if(fadeValue<255){fadeValue++;} else{fadeValue=0;} } } ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值