当前位置:首页 > 科学研究 > 正文内容

​Arduino Project 047 - Relay Control Switch

RonWang1年前 (2024-12-13)科学研究598

Project 47 Relay Control Switch


47 Relay Control Circuit

47 Relay Control  Schematic

/* Project 47 Relay Control
 * Coding by Ronwang 
 * This example code is in the public domain
 * Hardware Support by Autaba Website :https://www.autabaec.com
 */
// The Arduino pin, which connects to the IN pin of relay
const int RELAY_LIGHT= 8; 
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin as an output.
  pinMode(RELAY_LIGHT, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
  digitalWrite(RELAY_LIGHT, HIGH);
  delay(1000);
  digitalWrite(RELAY_LIGHT, LOW);
  delay(1000);
}


版权声明:本文为原创文章,版权归donstudio所有,欢迎分享本文,转载请保留出处!

本文链接:http://parentscn.com/?id=304

相关文章

储氢系统的组成、设计指标及性能指标

储氢系统的组成、设计指标及性能指标

SAE J2579-201806  Standard for Fuel System in Fuel Cell and Other Hydrogen Vehicles The pu...

液压快换接头失效案例分析

液压快换接头失效案例分析

摘  要 : 快速接头广泛应用于各个行业。某连铸机在使用过程中发现快换接头存在断开时漏油,易污染,对接、断开困难,故障率高等问题。经失效分析,发现是快换接头选型及使用不当造成的。正确的选型和...

丙烯腈丁二烯 Acrylonitrile-Butadiene (NBR)

丙烯腈丁二烯 Acrylonitrile-Butadiene (NBR)

itrile rubber (NBR) is the general term for acrylonitrile butadiene copolymer.The acrylonitrile cont...

Centos彻底删除文件夹、文件命令

Centos彻底删除文件夹、文件命令

本文将介绍在Centos下面底删除文件夹、文件命令(centos 新建、删除、移动、复制等命令:01.新建文件夹mkdir 文件名新建一个名为test的文件夹在home下view sourc...

The Robust Remote Control of the Manipulator

The Robust Remote Control of the Manipulator

This contribution deals with the design of the remote control of the manipulator Katana, which is an...

氢气管道与天然气管道的对比分析

氢气管道与天然气管道的对比分析

摘要利用氢气管道是长距离氢能输运最为高效的方式之一,但相较于成熟的天然气管网体系,氢气管道建设量相对较少,近年来将天然气管道改造成氢气管道的方式受到研究人员的广泛关注。从建设现状、规范标准、材料选择、...