HaaS Ecological Hardware Building Blocks General Outline

What is a sensor?

Some people say: The existence and development of sensors give objects the sense of touch, taste, and smell, and make objects slowly become alive. It is also said that the sensor is the extension of the human five sense organs, also known as the electrical five sense organs, which is indispensable for humans to study natural phenomena and laws and production activities.

Sensors are very important and amazing. When I was in college, I learned a course on "Principles and Applications of Sensors". At that time, I was limited to theories learned in books and lacked practical experience. I only know that the sensor principle framework is roughly: It consists of four parts: sensitive components, conversion components, conversion circuits and auxiliary power supplies.

 

Then, HaaS presents a collection of HaaS big player sensors for fans.

The sensor collection covers more than 30 commonly used sensor modules on the market, and HaaS will create interesting case scenarios for each sensor model.

Before, the CSDN HaaS technology community has posted a lot of practical cases with somatosensory, such as "Building a HaaS version of a small donkey smart car in 1 hour", "Building a cloud integrated RFID card reader based on HaaS100", "HaaS100 OLED information screen display" "Case", "Step by step to build a HaaS flower planting system that can be remotely managed by mobile phones", etc., are very good introductions to actual combat cases. More sensor combat will be launched in the future, which will make HaaS's actual combat library more and more abundant.

 

At the same time, I also call on HaaS fans to actively participate in it, from a receiver to a supplier, share the interesting and fun smart hardware they made with everyone, and become a real HaaS player.

Let's look at the HaaS ecological sensor collection library.

 

HaaS ecological hardware building block library

Serial number Sensor name model Function description

Reference method

(Or search the model by Taobao)

Adaptation code and document guidance
1 Temperature and humidity sensor

image.png

DHT11 (temperature and humidity)

Used to collect the temperature and humidity in the air of the device, which is a single-bus data exchange mode

 Risym Tmall link

TELESKY Tmall  link

Uxin Electronic  Taobao Link

Code  path

Guidance document  path

image.png

DS18B20 (air temperature)

 

DS18B20 is a classic temperature sensor, mainly has 3 interfaces VCC, GND and OUT, the module can collect the temperature of the air, output to the MCU through the OUT pin

Risym Tmall link

TELESKY Tmall  link

zave Tmall  link

Data sheet  link

Data reading requires GPIO simulation. You can refer to the DHT11 case and invite developers to participate in the adaptation.

image.png

DS18B20 (water temperature)

DS18B20 is a classic temperature sensor. This module can be used to measure the temperature of water. There are three main interfaces: VCC, GND and OUT. The MCU and OUT are connected to obtain temperature data. The probe can be placed in a water environment.

Risym Tmall link

TELESKY Tmall link

Rongyu Washington Tmall link

Data sheet  link

Data reading requires GPIO simulation. You can refer to the DHT11 case and invite developers to participate in the adaptation.

2 Soil moisture sensor

image.png

The soil humidity can be controlled in a wide range, and the corresponding threshold can be adjusted through the potentiometer. When the humidity is lower than the set value, DO outputs high level, otherwise it outputs low level

Risym Tmall link

TELESKY Tmall link

zave Tmall  link

Jiaxin WeChat Link

Code path

Guidance document path

3 RFID IC card reader

image.png

TX522

TX522 is a Mifare card reading and writing module based on 13.56MHz frequency. The module provides Uart interface to communicate with MCU Changke Technology Taobao Link

Code path

Guidance document path

image.png MFRC522 original chip design card reading circuit, easy to use, low cost, a Mifare card reading and writing module based on 13.56MHz frequency, this module provides UART interface to communicate with MCU telesky tmall link Refer to TX522, invite developers to participate in adaptation
image.png A Mifare card reader/writer module based on 13.56MHz frequency, which provides UART interface to communicate with MCU risym Tmall link Refer to TX522, invite developers to participate in adaptation
4 Digital Tube Digital tube.png

4-segment digital tube

The driver chip is TM1637, only two lines of CLK are needed, D0 can be driven, VCC supports 3.3~5v

zave Tmall  link

Risym 天猫链接

TELESKY 天猫链接

模块提供参考示例,邀请开发者一起参与适配
5 OLED显示屏 image.png OLED有机发光二极管,具备自发光,无需背光源,功耗低的特点,支持SPI或I2C通信接口

Risym天猫链接

TELESKY天猫链接

zave 天猫链接

代码路径

指导文档路径

6 LCD显示屏

image.png

2.2寸/2.4/2.8/3.2/3.5/4.0寸TFT触摸彩色 显示SPI 触摸SPI

信微泰电子

淘宝链接

代码即将开源

指导文档路径

image.png 彩色液晶屏模块 1.44/1.8/2.0/2.2/2.4/2.8寸TFT彩屏 液晶显示屏

TELESKY

天猫链接

可参考上文,邀请开发者一起参与适配
image.png TFT全彩LCD液晶显示屏模块65K色,支持SPI通信接口

晶美达电子

淘宝链接

YwRobot

淘宝链接

可参考上文,邀请开发者一起参与适配
7 声控传感器 image.png 该传感器模块主要检测周围环境的声音强度,可以通过电位调节器控制声音相应阈值,超过设定的阈值,OUT输出低电平,否则为高电平

Risym天猫链接

TELESKY天猫链接

JIAQISHENG天猫链接

参考土壤湿度检测模块的代码,MCU都只是检测输入电平的变化

参考文档

8 智能小车套件 image.png

提供完整一套小车配件,结合HaaS100,可以实现云端钉控制

微雪微雪链接

创乐博淘宝链接

科彦立淘宝链接

STEMBLOCK淘宝链接

微雪的智能小车适配的haas代码路径

指导文档路径

 

其它的智能小车都可以参考其设计,邀请开发者一起参与适配

9 震动马达 image.png 可通过高低电平或PWM控制来控制马达的震动以及强度,通过此模块可以方便的完成电信号到机械震动感的转换

TELESKY天猫链接

Risym天猫链接

冠亲 天猫链接

YwRobot淘宝链接

Your Cee天猫链接

震动马达可以参考智能小车的GPIO电机控制代码

指导文档

10 MIC麦克风 image.png 咪头,模拟mic XHXDZ淘宝链接 指导文章链接
image.png 另一种咪头,模拟mic wes淘宝链接 参考上文,邀请开发者一起参与适配
11 Speaker image.png 音量调节功能,可通过电位器调解输出音量大小。支持宽电压输入,模块可以工作在2~5.5V电压环境下 dfrobot淘宝链接 指导文章链接
image.png 同上 Qhebot淘宝链接 参考上文,邀请开发者一起参与适配
12 红外接收模块 image.png 38KHz红外线接收传感器,可接收标准38KHz调制的遥控器信号,通MCU进行编程,即可实现对遥控器信号的解码操作

dfrobotdfrobot链接

QUASON天猫链接

欣薇天猫链接

Risym天猫链接

模块提供参考示例,邀请开发者一起参与适配
13 红外发射模块 image.png 38KHz红外线发射传感器,可发射标准38KHz的调制信号

dfrobotdfrobot链接

Risym天猫链接

YourCee天猫链接

欣薇天猫链接

模块提供参考示例,邀请开发者一起参与适配
14 触摸按键 image.png 包含了类似IPOD的圆形键盘,9位数字键盘(带背光)和网格触摸键盘

dfrobot

dfrobot链接

模块提供参考示例,邀请开发者一起参与适配
image.png TTP223 224 226触摸传感器触摸按键模块电容式点动型单键触摸开关

TELESKY天猫链接

Risym天猫链接

模块提供参考示例,邀请开发者一起参与适配
15 NFC模组 image.png UART & I2C NFC近场通讯模块采用NXP PN532进口高集成NFC通信芯片,支持市面上常见的各类MIFARE Classic S50/S70系列(即M1卡)和NTAG21x系列等工作频率在13.56Mhz的NFC电子标签或卡片

dfrobot

dfrobot链接

模块提供参考示例,邀请开发者一起参与适配
image.png NFC近场通信模块PN/RC522 RFID射频识别 IC白卡IC钥匙扣卡 感应式

Your Cee

天猫链接

模块提供参考示例,邀请开发者一起参与适配
image.png 13.56mHz PN532兼容树莓派 NFC/RFID模块 近场通信

JXINW/佳信微

天猫链接

模块提供参考示例,邀请开发者一起参与适配
16 心率血氧传感器 image.png MAX30102 MAX30100

集成了脉搏血氧和心率检测仪生物传感器,可以通过i2c与mcu完成数据通信

TELESKY天猫链接

Risym 天猫链接

JXINW/佳信微 天猫链接

模块提供参考示例,邀请开发者一起参与适配
17 红外温度传感器 image.png 红外IR非接触式测温模块,模块与MCU通过UART实现串口通信

云开

天猫链接

模块提供参考示例,邀请开发者一起参与适配
image.png MLX90614红外测温模块,通过探测物体红外辐射能量的大小和波长的分布来检测物体的表面温度,模块与MCU通过I2C方式实现通信

dfrobot

dfrobot链接

模块提供参考示例,邀请开发者一起参与适配
image.png GY-906 MLX90614ESF BAA BCC DCI IR红外测温传感器模块 温度采器

信泰微电子

淘宝链接

模块提供参考示例,邀请开发者一起参与适配
18 人体红外传感器 image.png 红外传感器能检测运动的人或动物身上发出的红外线,输出开关信号,可以应用于各种需要检测运动人体的场合,当检测到人体热量时候,OUT输出高电平

dfrobotdfrobot链接

YwRobot淘宝链接

TELESKY天猫链接

Risym天猫链接

人体红外传感器 可以参考土壤湿度检测模块的代码,MCU都只是检测输入电平的变化

参考文档

邀请开发者一起参与适配

20 喷泉水泵 image.png 小型泵的驱动,5V供电,IO电平控制直流电机水泵转动或停止

YwRobot

淘宝链接

模块提供参考示例,邀请开发者一起参与适配
image.png 自动浇花 水泵 自动灌溉模块DIY套装 土壤湿度检测自动浇水 抽水 深圳市广丰盛科技

淘宝链接

WAVGAT

天猫链接

模块提供参考示例,邀请开发者一起参与适配
21 游戏手柄模块 image.png JoyStick Shield游戏摇杆扩展板模拟键盘鼠标功能适用arduino uno

占用 ADC*2 GPIO若干

科易互动机器人  淘宝链接

指导文档路径

代码即将开源

image.png 【YwRobot】Arduino电子积木模块PS4游戏遥控控制摇杆JoyStick

YwRobot Studio

淘宝链接

参考上文,邀请开发者一起参与适配
image.png 双轴按键摇杆传感器 PS2游戏摇杆控制杆传感器模块电子积木模块

TELESKY

天猫链接

参考上文,邀请开发者一起参与适配
22 4G cat1 image.png 移远EC60/20模块,通过UART实现通信,使用AT指令 移远EC60 淘宝链接 指导文章链接
23 LoRa image.png 基于SX1268芯片的LoRa模块,可通过SPI与外部MCU实现通信 安信可淘宝链接 指导文章链接
image.png 基于SX1268芯片的LoRa模块,可通过SPI与外部MCU实现通信 淘宝链接 参见上文,邀请开发者一起参与适配
24 buzzer Buzzer.png Buzzers are roughly divided into two types, active and passive.

risym Tmall  link

Cheung thousands  Lynx links teslkey Lynx link

When Io is cut to 0, the buzzer will be triggered to play. The use of GPIO can refer to the car  code

Guidance Document

Invite developers to participate in adaptation

25 Gyro Gyro.png

Mpu6050, I2c channel,

 It is a 6-axis motion processing component, which integrates a 3-axis gyroscope and a 3-axis acceleration sensor, and contains a second I2C interface, which can be used to connect an external magnetic sensor and use the built-in digital motion processor (DMP) hardware acceleration engine output Angular velocity value after conversion

Risym Tmall  link

Qianbaixiang Tmall  link

tesesky  tmall link

mpu6050 uses a standard I2C channel, please refer to the chip manual for specific usage.

Please refer to the use of I2C interface

(Open soon)

26 Magnetometer Magnetometer png.png

Qmc5883l, I2C channel,

It is a three-axis electronic compass from Honeywell.

The small board integrates all the resistors and capacitors required by qmc5883l, and it can be used only with external power, ground, SCL, and SDA.

teslkey Tmall  link

risym Tmall  link

World News  Tmall link

The magnetometer uses a standard I2C channel, please refer to the chip manual for specific use.

Please refer to the use of I2C interface

(Open soon)

 

Guess you like

Origin blog.csdn.net/HaaSTech/article/details/112094508