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

​Arduino Project 047 - Relay Control Switch

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

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://www.donstudio.cn/?id=304

相关文章

国内外氢气管道对比分析

国内外氢气管道对比分析

国内外氢气管道长距离输送技术标准对比与探讨:氢气管道材质推荐使用低强度,氢气管道壁厚设计时可增加材料性能系数一、国内外氢气管道发展现状目前在世界范围内,氢气管道建设较少,主要用于运输化工氢原料。最早的...

KEYOU为小松开发大型氢内燃机自卸车

KEYOU为小松开发大型氢内燃机自卸车

总部位于慕尼黑的氢专家KEYOU和日本建筑和采矿设备制造商小松(Komatsu),共同开发了世界上第一台用于大型自卸卡车的12缸氢发动机。目前正在小松Ibaraki工厂进行的概念验证测试将为氢动力建筑...

A methodology for quantitative risk assessment of a high-capacity hydrogen fueling station

A methodology for quantitative risk assessment of a high-capacity hydrogen fueling station

A methodology for quantitative risk assessment of a high-capacity hydrogen fueling station with li...

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

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

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

中国大规模:氢能管网建设元年开启

中国大规模:氢能管网建设元年开启

随着可再生能源利用技术和装备的持续突破与迭代,可再生电力成本持续下降,促进可再生能源制氢(简称“绿氢”)成本不断下降,绿氢经济性的持续优化推动各领域绿氢应用需求快速扩大。据中国产业发展促进会氢能分会观...

Hydrogen fueling cost analysis of various onboard  storage technologies

Hydrogen fueling cost analysis of various onboard storage technologies

基于各种车载氢燃料储存技术的成本分析 Hydrogen fueling cost analysis of various onboard storage technologiesAuthor :...