Browsing Category

Arduino

KY-015 Temperature and Humidity Sensor Module

The KY-015 Temperature and Humidity Sensor Module is based on the DHT11 DHT11 digital temperature and humidity sensor is a composite Sensor contains a calibrated digital signal output of the temperature and humidity. Application of a dedicated digital modules collection technology and the temperature and humidity sensing technology, to ensure that the product has high reliability and excellent long-term stability. The sensor includes a resistive sense of wet components and an NTC temperature measurement devices, and…

KY-013 Analog Temperature Sensor Module

The KY-013 Analog Temperature Sensor Module uses a thermistor to measure ambient temperature based on the resistance of the device. The temperature sensor is a NTC thermistor Multi-point temperature measurement Measures temperatures: -55°C / +125°C Accuracy: + / - 0.5°C Connection Connect board's power line (middle) and ground (-) to 5V and GND respectively. Connect signal (S) to pin A0 of the Arduino. KY-013 Arduino S  A0 middle  5V - GND Code #include <math.h> double Thermister(int RawADC) {…

KY-012 Active Buzzer Module

The KY-012 Active Buzzer Module. The module consists of an active piezoelectric buzzer, it generates a sound of aproximately 2.5kHz when signal is high. Connection Connect signal (S) to pin 8 on the Arduino and Ground (-) to GND. KY-012 Arduino S Pin 8 - GND Code //Example code KY012 active buzzer int speakerPin = 8; void setup () { pinMode (speakerPin, OUTPUT); } void loop () { analogWrite (speakerPin, 255); delay (50); analogWrite (speakerPin, 0); delay (10); } Links 37 in 1 box Sensor Kit For Arduino…

KY-011 Two color LED module

The KY-011 Two color LED module consists of a common cathode 3mm red/green LED. You can adjust the amount of each color using PWM, so we will use 2 PWM pins on our Arduino later on to demonstrate this Connection Its best to use a couple of current limiting resistors since the module does not have any on board KY-011 Resistor Arduino G 330Ω resistor Pin 10 R 330Ω resistor Pin 11 Y GND Code // Arduino test code for KY011 int redpin = 11; // select the pin for the red LED int greenpin = 10; // select the…

KY-010 Photo Interrupter module

The KY-010 Photo Interrupter module consists of an optical emitter/detector. If the sensor is broken the LED is turned on. Connection Connect the power line (middle) and ground (left) to +5V and GND. Connect the signal (S) to pin 3 on the Arduino. KY-010 Arduino - (left) GND middle +5V S (right) Pin 3 Code int Led = 13; // define LED pin int buttonpin = 3; // photo interrupter pin int val; void setup() { pinMode(Led, OUTPUT); // LED pin as output pinMode(buttonpin, INPUT); //photo interrupter pin as…

KY-009 RGB Full color LED SMD Module

The KY-009 RGB LED Module can emits a range of colour by mixing red, green and blue. The amount of each primary color is adjusted using the PWM pins on an Arduino. The KY-009 RGB Full Color LED SMD Module consists of a 5050 SMD LED Connection You need to use resistors to prevent burnout, here are some recommended values KY-009 Resistor Arduino R 180Ω resistor Pin 9 G 110Ω resistor Pin 10 B 110Ω resistor Pin 11 - GND Code int redpin = 11; //select the pin for the red LED int bluepin =10; // select…

KY-008 Laser Transmitter Module

The KY-008 Laser Transmitter Module consists  of a 650nm red laser diode head Connection Connect signal (S) to pin 3 on the Arduino and ground (-) to GND. Middle pin is not used in this example. KY-008 Arduino S Pin 3 middle N/A - GND Code void setup () { pinMode (3, OUTPUT); // define the digital output interface 13 feet } void loop () { digitalWrite (3, HIGH); // open the laser head delay (1000); // delay one second digitalWrite (3, LOW); // turn off the laser head delay (1000); // delay one second }…

KY-006 Buzzer Module

The KY-006 Buzzer Module consists of a passive piezoelectric buzzer, it can generate tones between 1.5 to 2.5 kHz by switching it on and off at different frequencies either using delays or PWM. Piezoelectric buzzer is composed of multivibrator, piezoelectric buzzer, impedance matching and resonance box, shell and other components. Some piezoelectric buzzer shell is also equipped with light-emitting diodes. A multivibrator is composed of a transistor or an integrated circuit. When the power supply (1.5 ~ 15V DC…

KY-005 Infrared Transmitter Module

The KY-005 Infrared Transmitter Module consists of just a 5mm IR LED. It works together with the KY-022 IR receiver module. The Arduino IR Transmitter Module Keyes KY-005, emits infrared light at 38kHz. Connection Connect the Power line (middle) and ground (-) to +5 and GND. Connect signal (s) to pin 3 on the Arduino for this example KY-005 Arduino S Pin 3 middle +5V - GND Code The following Arduino sketch uses the IRremote library #include <IRremote.h> IRsend irsend; void setup() { Serial.begin(9600); } void…

KY-004 Key Switch Module

The KY-004 Key Switch Module is a push button that will output a high signal when pressed. Connection Connect the Power line (middle) and ground (-) to +5 and GND. Connect signal (s) to pin 3 on the Arduino for this example KY-004 Arduino S Pin 3 middle +5V - GND Code int led = 13; //Define the LED pin int buttonpin = 3; //Define the push button pin int val; //Define a numeric variable void setup() { pinMode(led,OUTPUT); pinMode(buttonpin,INPUT); } void loop() { val = digitalRead(buttonpin); // check the…