KY010: Light Block Sensor Module
/* Button Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached […]
/* Button Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached […]
int buzzer=11; void setup() { pinMode(buzzer,OUTPUT); } void loop() { unsigned char i,j; while(1) { for(i=0;i<80;i++)//Output sound of one frequency […]
int redpin = 11; // select the input pin for the potentiometer int bluepin =10; // select the pin for […]
int sensorPin = A5; // select the input pin for the potentiometer int ledPin = 13; // select the pin […]
int buzzer=11;// void setup() { pinMode(buzzer,OUTPUT);// } void loop() { unsigned char i,j;// while(1) { for(i=0;i<80;i++)//output sound of one frequency […]
/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is […]
int redpin = 11; // select the input pin for the potentiometer int bluepin =10; // select the pin for […]
Sensor KY015 Arduino Sample Code by Patrick #define dht_dpin A0 byte bGlobalErr; byte dht_dat[5]; void setup(){ InitDHT(); Serial.begin(9600); delay(300); Serial.println("Humidity […]
/* Button Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached […]
int sensorPin = A5; // select the input pin for the potentiometer int ledPin = 13; // select the pin […]