前言 接下来将实现一个远程继电器,实时远程控制和查询的开关状态。用 5v 直流电控制 220v 交流电。 硬件上: 使用 nodemcu D1 和 JQC-3FF-S-Z 继电器。 软件上: 使用 nodejs 作为服务端,和 html 作为客户端。 在开始之前在电脑中建立一个文件夹 /project 效果 远程继电器模块 材料准备 名称数量 nodemcu D1 1 JQC-3FF-S-Z 继电器 1 杜邦线 若干 led(3.3v) 1 面包板 1 /project/package.json { "name": "server", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "body-parser": "^1.20.2", "express": "^4.18.2",...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Static JsonDocument
Contact Static JsonDocument, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack