Linux命令:readelf

article/2025/11/6 8:24:49

1 需求

 关键参数:

  • -h/--file-header    Display the ELF file header
  • -l/--program-headers/--segments    Display the program headers
  • -S/--section-headers/--sections    Display the sections' header
  • -s/--syms/--symbols    Display the symbol table
  • --dyn-sysm    Display the dynamic symbol table
  • -d/--dynamic    Display the dynamic section (if present)
  • -x/--hex-dump=<number|name>    Dump the contents of section <number|name> as bytes
  • -p/--string-dump=<number|name>    Dump the contents of section <number|name> as strings
  • -W/--wide    Allow output width to exceed 80 characters

2 语法

D:\JetBrains\CLion 2022.2.3\bin\mingw\bin>readelf.exe --help
Usage: readelf <option(s)> elf-file(s)Display information about the contents of ELF format filesOptions are:-a --all               Equivalent to: -h -l -S -s -r -d -V -A -I-h --file-header       Display the ELF file header-l --program-headers   Display the program headers--segments          An alias for --program-headers-S --section-headers   Display the sections' header--sections          An alias for --section-headers-g --section-groups    Display the section groups-t --section-details   Display the section details-e --headers           Equivalent to: -h -l -S-s --syms              Display the symbol table--symbols           An alias for --syms--dyn-syms          Display the dynamic symbol table--lto-syms          Display LTO symbol tables--sym-base=[0|8|10|16]Force base for symbol sizes.  The options aremixed (the default), octal, decimal, hexadecimal.-C --demangle[=STYLE]  Decode low-level symbol names into user-level namesThe STYLE, if specified, can be `auto' (the default),`gnu', `lucid', `arm', `hp', `edg', `gnu-v3', `java'or `gnat'--no-demangle       Do not demangle low-level symbol names.  (default)--recurse-limit     Enable a demangling recursion limit.  (default)--no-recurse-limit  Disable a demangling recursion limit-n --notes             Display the core notes (if present)-r --relocs            Display the relocations (if present)-u --unwind            Display the unwind info (if present)-d --dynamic           Display the dynamic section (if present)-V --version-info      Display the version sections (if present)-A --arch-specific     Display architecture specific information (if any)-c --archive-index     Display the symbol/file index in an archive-D --use-dynamic       Use the dynamic section info when displaying symbols-L --lint|--enable-checksDisplay warning messages for possible problems-x --hex-dump=<number|name>Dump the contents of section <number|name> as bytes-p --string-dump=<number|name>Dump the contents of section <number|name> as strings-R --relocated-dump=<number|name>Dump the relocated contents of section <number|name>-z --decompress        Decompress section before dumping it-w --debug-dump[a/=abbrev, A/=addr, r/=aranges, c/=cu_index, L/=decodedline,f/=frames, F/=frames-interp, g/=gdb_index, i/=info, o/=loc,m/=macro, p/=pubnames, t/=pubtypes, R/=Ranges, l/=rawline,s/=str, O/=str-offsets, u/=trace_abbrev, T/=trace_aranges,U/=trace_info]Display the contents of DWARF debug sections-wk --debug-dump=links Display the contents of sections that link to separatedebuginfo files-P --process-links     Display the contents of non-debug sections in separatedebuginfo files.  (Implies -wK)-wK --debug-dump=follow-linksFollow links to separate debug info files (default)-wN --debug-dump=no-follow-linksDo not follow links to separate debug info files--dwarf-depth=N        Do not display DIEs at depth N or greater--dwarf-start=N        Display DIEs starting at offset N--ctf=<number|name>    Display CTF info from section <number|name>--ctf-parent=<number|name>Use section <number|name> as the CTF parent--ctf-symbols=<number|name>Use section <number|name> as the CTF external symtab--ctf-strings=<number|name>Use section <number|name> as the CTF external strtab-I --histogram         Display histogram of bucket list lengths-W --wide              Allow output width to exceed 80 characters-T --silent-truncation If a symbol name is truncated, do not add [...] suffix@<file>                Read options from <file>-H --help              Display this information-v --version           Display the version number of readelf
Report bugs to <https://www.sourceware.org/bugzilla/>

3 示例

readelf -S --wide goahead 


3 示例

readelf -s goahead 

readelf -s libgo.so

> readelf -s goaheadSymbol table '.dynsym' contains 47 entries:Num:    Value          Size Type    Bind   Vis      Ndx Name0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 1: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websOpen2: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND smatch3: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_deregisterTMCloneTab4: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  UND logLevel5: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND sfmt6: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND puts@GLIBC_2.2.5 (2)7: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websGetServer8: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websGetBackground9: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND error10: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND chdir@GLIBC_2.2.5 (2)11: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __stack_chk_fail@GLIBC_2.4 (3)12: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websServiceEvents13: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND getcwd@GLIBC_2.2.5 (2)14: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websGetDocuments15: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websSetBackground16: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websListen17: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@GLIBC_2.2.5 (2)18: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND sclone19: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND signal@GLIBC_2.2.5 (2)20: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND fprintf@GLIBC_2.2.5 (2)21: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__22: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND daemon@GLIBC_2.2.5 (2)23: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND logmsgProc24: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websClose25: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND stok26: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND logSetPath27: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND exit@GLIBC_2.2.5 (2)28: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_registerTMCloneTable29: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND wfree30: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websLoad31: 0000000000000000     0 FUNC    WEAK   DEFAULT  UND __cxa_finalize@GLIBC_2.2.5 (2)32: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websSetDebug33: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __ctype_b_loc@GLIBC_2.3 (4)34: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  UND stderr@GLIBC_2.2.5 (2)35: 0000000000203010     0 NOTYPE  GLOBAL DEFAULT   23 _edata36: 0000000000203000     0 NOTYPE  GLOBAL DEFAULT   23 __data_start37: 0000000000203018     0 NOTYPE  GLOBAL DEFAULT   24 _end38: 0000000000203000     0 NOTYPE  WEAK   DEFAULT   23 data_start39: 0000000000001910     4 OBJECT  GLOBAL DEFAULT   16 _IO_stdin_used40: 0000000000001890   101 FUNC    GLOBAL DEFAULT   14 __libc_csu_init41: 0000000000000f80    43 FUNC    GLOBAL DEFAULT   14 _start42: 0000000000203010     0 NOTYPE  GLOBAL DEFAULT   24 __bss_start43: 000000000000108a  1396 FUNC    GLOBAL DEFAULT   14 main44: 0000000000000d90     0 FUNC    GLOBAL DEFAULT   11 _init45: 0000000000001900     2 FUNC    GLOBAL DEFAULT   14 __libc_csu_fini46: 0000000000001904     0 FUNC    GLOBAL DEFAULT   15 _finiSymbol table '.symtab' contains 101 entries:Num:    Value          Size Type    Bind   Vis      Ndx Name0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 1: 0000000000000238     0 SECTION LOCAL  DEFAULT    1 2: 0000000000000254     0 SECTION LOCAL  DEFAULT    2 3: 0000000000000274     0 SECTION LOCAL  DEFAULT    3 4: 0000000000000298     0 SECTION LOCAL  DEFAULT    4 5: 00000000000002f8     0 SECTION LOCAL  DEFAULT    5 6: 0000000000000760     0 SECTION LOCAL  DEFAULT    6 7: 0000000000000976     0 SECTION LOCAL  DEFAULT    7 8: 00000000000009d8     0 SECTION LOCAL  DEFAULT    8 9: 0000000000000a18     0 SECTION LOCAL  DEFAULT    9 10: 0000000000000b08     0 SECTION LOCAL  DEFAULT   10 11: 0000000000000d90     0 SECTION LOCAL  DEFAULT   11 12: 0000000000000db0     0 SECTION LOCAL  DEFAULT   12 13: 0000000000000f70     0 SECTION LOCAL  DEFAULT   13 14: 0000000000000f80     0 SECTION LOCAL  DEFAULT   14 15: 0000000000001904     0 SECTION LOCAL  DEFAULT   15 16: 0000000000001910     0 SECTION LOCAL  DEFAULT   16 17: 0000000000001db4     0 SECTION LOCAL  DEFAULT   17 18: 0000000000001e10     0 SECTION LOCAL  DEFAULT   18 19: 0000000000202cb8     0 SECTION LOCAL  DEFAULT   19 20: 0000000000202cc0     0 SECTION LOCAL  DEFAULT   20 21: 0000000000202cc8     0 SECTION LOCAL  DEFAULT   21 22: 0000000000202ed8     0 SECTION LOCAL  DEFAULT   22 23: 0000000000203000     0 SECTION LOCAL  DEFAULT   23 24: 0000000000203010     0 SECTION LOCAL  DEFAULT   24 25: 0000000000000000     0 SECTION LOCAL  DEFAULT   25 26: 0000000000000000     0 SECTION LOCAL  DEFAULT   26 27: 0000000000000000     0 SECTION LOCAL  DEFAULT   27 28: 0000000000000000     0 SECTION LOCAL  DEFAULT   28 29: 0000000000000000     0 SECTION LOCAL  DEFAULT   29 30: 0000000000000000     0 SECTION LOCAL  DEFAULT   30 31: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c32: 0000000000000fb0     0 FUNC    LOCAL  DEFAULT   14 deregister_tm_clones33: 0000000000000ff0     0 FUNC    LOCAL  DEFAULT   14 register_tm_clones34: 0000000000001040     0 FUNC    LOCAL  DEFAULT   14 __do_global_dtors_aux35: 0000000000203010     1 OBJECT  LOCAL  DEFAULT   24 completed.769836: 0000000000202cc0     0 OBJECT  LOCAL  DEFAULT   20 __do_global_dtors_aux_fin37: 0000000000001080     0 FUNC    LOCAL  DEFAULT   14 frame_dummy38: 0000000000202cb8     0 OBJECT  LOCAL  DEFAULT   19 __frame_dummy_init_array_39: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS goahead.c40: 0000000000203014     4 OBJECT  LOCAL  DEFAULT   24 finished41: 0000000000001813    58 FUNC    LOCAL  DEFAULT   14 usage42: 000000000000184d    39 FUNC    LOCAL  DEFAULT   14 initPlatform43: 00000000000015fe   533 FUNC    LOCAL  DEFAULT   14 logHeader44: 0000000000001874    20 FUNC    LOCAL  DEFAULT   14 sigHandler45: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c46: 0000000000001f94     0 OBJECT  LOCAL  DEFAULT   18 __FRAME_END__47: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS 48: 0000000000202cc0     0 NOTYPE  LOCAL  DEFAULT   19 __init_array_end49: 0000000000203008     0 OBJECT  LOCAL  DEFAULT   23 __dso_handle50: 0000000000202cc8     0 OBJECT  LOCAL  DEFAULT   21 _DYNAMIC51: 0000000000202cb8     0 NOTYPE  LOCAL  DEFAULT   19 __init_array_start52: 0000000000001db4     0 NOTYPE  LOCAL  DEFAULT   17 __GNU_EH_FRAME_HDR53: 0000000000203010     0 OBJECT  LOCAL  DEFAULT   23 __TMC_END__54: 0000000000202ed8     0 OBJECT  LOCAL  DEFAULT   22 _GLOBAL_OFFSET_TABLE_55: 0000000000001900     2 FUNC    GLOBAL DEFAULT   14 __libc_csu_fini56: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websOpen57: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND smatch58: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_deregisterTMCloneTab59: 0000000000203000     0 NOTYPE  WEAK   DEFAULT   23 data_start60: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  UND logLevel61: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND sfmt62: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND puts@@GLIBC_2.2.563: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websGetServer64: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websGetBackground65: 0000000000203010     0 NOTYPE  GLOBAL DEFAULT   23 _edata66: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND error67: 0000000000001904     0 FUNC    GLOBAL DEFAULT   15 _fini68: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND chdir@@GLIBC_2.2.569: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __stack_chk_fail@@GLIBC_270: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websServiceEvents71: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND getcwd@@GLIBC_2.2.572: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websGetDocuments73: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websSetBackground74: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websListen75: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@@GLIBC_76: 0000000000203000     0 NOTYPE  GLOBAL DEFAULT   23 __data_start77: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND sclone78: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND signal@@GLIBC_2.2.579: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND fprintf@@GLIBC_2.2.580: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__81: 0000000000001910     4 OBJECT  GLOBAL DEFAULT   16 _IO_stdin_used82: 0000000000001890   101 FUNC    GLOBAL DEFAULT   14 __libc_csu_init83: 0000000000203018     0 NOTYPE  GLOBAL DEFAULT   24 _end84: 0000000000000f80    43 FUNC    GLOBAL DEFAULT   14 _start85: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND daemon@@GLIBC_2.2.586: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND logmsgProc87: 0000000000203010     0 NOTYPE  GLOBAL DEFAULT   24 __bss_start88: 000000000000108a  1396 FUNC    GLOBAL DEFAULT   14 main89: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websClose90: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND stok91: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND logSetPath92: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND exit@@GLIBC_2.2.593: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_registerTMCloneTable94: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND wfree95: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websLoad96: 0000000000000000     0 FUNC    WEAK   DEFAULT  UND __cxa_finalize@@GLIBC_2.297: 0000000000000d90     0 FUNC    GLOBAL DEFAULT   11 _init98: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND websSetDebug99: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __ctype_b_loc@@GLIBC_2.3100: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  UND stderr@@GLIBC_2.2.5

3 示例:查看依赖库

readelf -d xxx.so | grep NEEDED


4 参考资料

readelf 和 objdump 例子详解及区别 (ELF文件说明)_readelf工具可以进行代码反汇编_Hani_97的博客-CSDN博客


http://chatgpt.dhexx.cn/article/sd0rgo7M.shtml

相关文章

readelf命令使用说明

0x1、概述 readelf命令&#xff0c;一般用于查看ELF格式的文件信息&#xff0c;常见的文件如在Linux上的可执行文件&#xff0c;动态库(*.so)或者静态库(*.a) 等包含ELF格式的文件。以下命令的使用是基于android编译出来的so文件上面去运行。 0x2、readelf常用命令 语法&…

readelf指令使用

一、指令说明 readelf命令&#xff0c;一般用于查看ELF格式的文件信息&#xff0c;常见的文件如在Linux上的可执行文件&#xff0c;动态库(*.so)或者静态库(*.a) 等包含ELF格式的文件。以下命令的使用是基于android编译出来的so文件上面去运行。 readelf常用命令 语法&#xff…

Mysql开发实践:error while loading shared libraries: libaio解决方案

摘要&#xff1a;Mysql出现问题&#xff1a;error while loading shared libraries: libaio解决方案。 本文分享自华为云社区《Mysql出现问题&#xff1a;error while loading shared libraries: libaio解决方案》&#xff0c;作者&#xff1a; 小虚竹。 问题 初始化数据库时…

fio: engine libaio not loadable

用测试工具fio&#xff0c;并且安装方式是源码编译安装。 tar xzf fio-fio-3.18.tar.gz && cd fio-fio-3.18 ./configure make make install编译安装完&#xff0c;想要测试顺序读、顺序写等时候&#xff0c;出现下面的报错&#xff1a; fio: engine libaio not loade…

libaio在mysql中的作用,ubuntu安裝mysql遇到的坑----解決Mysql報錯缺少libaio.so.1

最近學習大數據&#xff0c;涉及到hive的部分需要安裝mysql&#xff0c;於是就在linux環境下嘗試安裝&#xff0c;對於我這個linux小白來說&#xff0c;中間遇到很多坑爹問題&#xff0c;在這里做一個記錄。 前面安裝的過程照着博客一步步來&#xff0c;照貓畫虎&#xff0c;沒…

libaio源码安装_MySQL5.7.17 编译安装及二进制安装详解

MySQL 的安装方式有很多,最常见的就是编译安装和二进制安装; 在这里我将两种安装方式都介绍一下,自由选择; 首先我们来看一下编译安装的步骤: 首先,到官方网站中下载源码包; Download MySQL Community Server 选择下载源码包: 有很多针对不同系统的源码包,我们选择通用…

linux 提示libaio.so.1,解决Mysql报错缺少libaio.so.1

解决Mysql报错缺少libaio.so.1 报错如上图,需要安装libaio.so.1 64位系统安装: wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libaio-0.3.107-10.el6.x86_64.rpm rpm -ivh libaio-0.3.107-10.el6.x86_64.rpm 32位系统现在很少了,yum似乎默认安装32位的: yum…

libaio介绍和使用

libaio介绍 The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a richer API and capability set than the simple POSIX async I/O facility. This library, libaio, provides the Linux-native API for async I/O. The POSIX as…

安装mysql-community-server报错缺少libaio依赖

一、遇到问题 安装mysql-community-common、mysql-community-libs、mysql-community-client都没有问题&#xff0c;但是安装myql-community-server就报错&#xff0c;缺少libaio依赖 二、解决问题 执行命令&#xff1a;yum -y install libaio 执行命令&#xff1a;rpm -ivh…

linux libaio介绍

Linux的I/O机制经历了一下几个阶段的演进&#xff1a; 1. 同步阻塞I/O: 用户进程进行I/O操作&#xff0c;一直阻塞到I/O操作完成为止。 2. 同步非阻塞I/O: 用户程序可以通过设置文件描述符的属性O_NONBLOCK&#xff0c;I/O操作可以立即返回&#xff0c;但是并不保证I/O操作成功…

Linux开发之libaio源码分析及应用

1. 简介 Linux的POSIX API由glibc提供&#xff0c;2000年年之前&#xff0c;glibc一直没有提供异步I/O的调用API。Red Hat公司基于Linux内核的符号表封装了一套异步I/O(简称aio)的接口&#xff0c;并提供了一些新的接口用来简化上下文配置&#xff0c;开成一个库&#xff0c;命…

HC-SR501人体红外感应电子模块

1&#xff09;理解两种触发方式&#xff1a;可重复触发和不可重复触发 2&#xff09;学会调节两个属性&#xff1a;延迟调节和灵敏度调节 &#xff08;在不同触发方式下&#xff0c;大家要自己调自己的设备&#xff0c;不同延迟反应快速性不同&#xff0c;不同灵敏度感应的范围…

人体红外传感器简明教程

学习物联网&#xff0c;来HaaSEDU就对了 人体红外热释电运动传感器 一、产品简介 热释电红外运动传感器能检测运动的人或动物身上发出的红外线&#xff0c;输出开关信号&#xff0c;可以应用于各种需要检测运动人体的场合。传统的热释电红外传感器需要人体热释电红外探头、专…

基于STM32F0实现人体红外传感器

​​​​​​目的 了解人体红外传感器 HC-SR501 的驱动原理和STM32F030的中断机制&#xff0c;通过配置 STM32F030 芯片 GPIO 相关寄存器和外部触发中断实现人体红外传感器检测人体。 原理 中断是指当CPU执行程序时&#xff0c;由于发生了某种随机的事件&#xff08;外部或内…

Arduino Uno 使用 人体红外传感器(HC_SR051)实现 人体感应灯

“登”&#xff0c;亮了.&#xff0c; 每当我游走在图书馆书架之间就会有这样的一个情景。 这次实验使用的模块是人体红外传感器&#xff08;HC_SR051&#xff09;&#xff0c;配上Arduino Uno 实现人体感应灯的实现。 先看看这模块&#xff08;点击查看大图&#xff09; 实验效…

HC-SR501 人体红外感应模块 单片机

https://blog.csdn.net/zy19981110/article/details/89947118?ops_request_misc%257B%2522request%255Fid%2522%253A%2522161616067916780357245177%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id161616067916780357245177&biz_id0&…

HC-SR501人体红外传感器

了解人体红外传感器HC-SR501的驱动原理&#xff0c;通过配置STM32F030芯片GPIO相关寄存器&#xff0c;让人体红外传感器识别到人体时使蜂鸣器响起的基础实验。 1、HC-SR501是基于红外线HC-SR501是基于红外线技术的自动控制模块 &#xff0c;采用德国原装进口LHI778 探头设计&a…

基于STM32的红外人体感应器控制LED灯的状态

文章目录 一、红外人体感应器的介绍二、利用红外人体感应器实现控制LED灯三、总结 一、红外人体感应器的介绍 产品参数 产品特点 ①全自动感应 当人进入其感应范围则输出高电平&#xff0c;人离开感应范围则自动延时关闭高电平&#xff0c;输出低电平。 ②光敏控制 (可选&…

人体红外线传感器

基于Arduino的人体红外线传感器 目的: 1.红外线模组与arduino结合&#xff0c;利用当有人进入感应范围内则输入高电平&#xff0c;人离开感应范围则自动关闭高电平&#xff0c;输出低电平的原理&#xff0c;采集到人身体上的红外信号&#xff0c;显示于 PC 串行端口监控窗口和…

人体红外传感器HC-SR501特点及使用介绍

人体红外传感器HC-SR501特点及使用介绍 前言一、人体红外传感器外观二、示意图三、相关参数讲解1.引脚2.优点3.产品特性&#xff08;根据官方参考资料&#xff09; 四、适用场所范围总结 前言 本文着重介绍人体红外传感器HC-SR501(基于红外线技术的自动控制模块)的原理、功能及…