relay


15 ₪

الناشر: متجر القطع الالكترونية

القسم: متحكمات

تاريخ النشر: 2020-11-30



how to connect device to relay:






how it works relay normally opened:



how it works relay normally closed:






arduino relay wiring diagram:






Arduino Code

code
نسخ
اقتباس
عرض
تنزيل
	
								
/* * Created by ArduinoGetStarted.com * * This example code is in the public domain * * Tutorial page: https://arduinogetstarted.com/tutorials/arduino-relay */ // constants won't change const int RELAY_PIN = 3; // the Arduino pin, which connects to the IN pin of relay // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin as an output. pinMode(RELAY_PIN, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(RELAY_PIN, HIGH); delay(500); digitalWrite(RELAY_PIN, LOW); delay(500); }





سلة المشتريات افراغ السلة