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

​Arduino Project 047 - Relay Control Switch

RonWang7个月前 (12-13)科学研究290

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

相关文章

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

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

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

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 :...

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

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

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

输氢管道钢管研究进展

输氢管道钢管研究进展

摘要:简述了国内外纯氢及掺氢输送管道的建设现状、输氢管道技术规范的发展现状以及国内外氢气系统的储存、输送、管道设计、临氢材料的试验和评价等。指出随着材料的强度、易于形成偏析的化学元素含量、夹杂物的尺寸...

国内外氢气管道对比分析

国内外氢气管道对比分析

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