Jump to content
Arduino.lk Community Sri Lanka

Team Arduino.lk

Members
  • Content count

    30
  • Joined

  • Last visited

Community Reputation

5 Neutral

2 Followers

  1. KY-022 INFRARED RECEIVER MODULE

    Description Arduino IR receiver module KY-022, reacts to 38kHz infrared light. KY-022 Specifications This module consists of a 1838 IR receiver, a 1kΩ resistor and a LED. It works together with the KY-005 IR transmitter module. Compatible with popular electronic platforms like Arduino, Raspberry Pi and ESP8266. Operating Voltage 2.7 to 5.5V Operating Current 0.4 to 1.5mA Reception Distance 18m Reception Angle ±45º Carrier Frequency 38KHz Low Level Voltage 0.4V High Level Voltage 4.5V Ambient Light Filter up to 500LUX KY-022 Connection Diagram Connect the Power line (middle) and ground (-) to +5 and GND respectively. Connect signal (S) to pin 11 on the Arduino. Line un IR receiver and transmitter. KY-012 Arduino S Pin 11 middle +5V – GND KY-022 Arduino Code The following Arduino sketch uses the IRremote library to receive and process infra-red signals. Use the KY-005 IR transmitter module to serially send data to this module. Links to the required libraries for KY-022 Arduino example sketch can be found in the Downloads section below. #include <IRremote.h> int RECV_PIN = 11; // define input pin on Arduino IRrecv irrecv(RECV_PIN); decode_results results; // decode_results class is defined in IRremote.h void setup() { Serial.begin(9600); irrecv.enableIRIn(); // Start the receiver } void loop() { if (irrecv.decode(&results)) { Serial.println(results.value, HEX); irrecv.resume(); // Receive the next value } delay (100); // small delay to prevent reading errors } View the full article
  2. KY-022 INFRARED RECEIVER MODULE

    Description Arduino IR receiver module KY-022, reacts to 38kHz infrared light. KY-022 Specifications This module consists of a 1838 IR receiver, a 1kΩ resistor and a LED. It works together with the KY-005 IR transmitter module. Compatible with popular electronic platforms like Arduino, Raspberry Pi and ESP8266. Operating Voltage 2.7 to 5.5V Operating Current 0.4 to 1.5mA Reception Distance 18m Reception Angle ±45º Carrier Frequency 38KHz Low Level Voltage 0.4V High Level Voltage 4.5V Ambient Light Filter up to 500LUX KY-022 Connection Diagram Connect the Power line (middle) and ground (-) to +5 and GND respectively. Connect signal (S) to pin 11 on the Arduino. Line un IR receiver and transmitter. KY-012 Arduino S Pin 11 middle +5V – GND KY-022 Arduino Code The following Arduino sketch uses the IRremote library to receive and process infra-red signals. Use the KY-005 IR transmitter module to serially send data to this module. Links to the required libraries for KY-022 Arduino example sketch can be found in the Downloads section below. #include <IRremote.h> int RECV_PIN = 11; // define input pin on Arduino IRrecv irrecv(RECV_PIN); decode_results results; // decode_results class is defined in IRremote.h void setup() { Serial.begin(9600); irrecv.enableIRIn(); // Start the receiver } void loop() { if (irrecv.decode(&results)) { Serial.println(results.value, HEX); irrecv.resume(); // Receive the next value } delay (100); // small delay to prevent reading errors } View the full article
  3. KY-016 RGB FULL COLOR LED MODULE

    Description KY-016 Arduino full color 5mm RGB LED, different colors can be obtained by mixing the three primary colors Specifications This module consists of a 5mm RGB LED and three 150Ω limiting resistors to prevent burnout. Adjusting the PWM signal on each color pin will result on different colors. Operating Voltage 5V LED drive mode Common cathode driver LED diameter 5 mm KY-016 Connection Diagram Connect the red pin (R) on the KY-016 to pin 11 on the Arduino. Blue (B) to pin 10, green (G) to pin 9 and ground (-) to GND. Notice that you do not need to use limiting resistors since they are already included on the board. KY-016 Arduino R Pin 11 B Pin 10 G Pin 9 – GND KY-016 Example Code The following Arduino sketch will gradually increase/decrease the PWM values on the red, green and blue pins causing the LED to cycle through various colors. int redpin = 11; // select the pin for the red LED int bluepin =10; // select the pin for the blue LED int greenpin =9; // select the pin for the green LED int val; void setup() { pinMode(redpin, OUTPUT); pinMode(bluepin, OUTPUT); pinMode(greenpin, OUTPUT); Serial.begin(9600); } void loop() { for(val = 255; val > 0; val--) { analogWrite(11, val); analogWrite(10, 255 - val); analogWrite(9, 128 - val); Serial.println(val, DEC); delay(5); } for(val = 0; val < 255; val++) { analogWrite(11, val); analogWrite(10, 255 - val); analogWrite(9, 128 - val); Serial.println(val, DEC); delay(5); } } View the full article
  4. KY-016 RGB FULL COLOR LED MODULE

    Description KY-016 Arduino full color 5mm RGB LED, different colors can be obtained by mixing the three primary colors Specifications This module consists of a 5mm RGB LED and three 150Ω limiting resistors to prevent burnout. Adjusting the PWM signal on each color pin will result on different colors. Operating Voltage 5V LED drive mode Common cathode driver LED diameter 5 mm KY-016 Connection Diagram Connect the red pin (R) on the KY-016 to pin 11 on the Arduino. Blue (B) to pin 10, green (G) to pin 9 and ground (-) to GND. Notice that you do not need to use limiting resistors since they are already included on the board. KY-016 Arduino R Pin 11 B Pin 10 G Pin 9 – GND KY-016 Example Code The following Arduino sketch will gradually increase/decrease the PWM values on the red, green and blue pins causing the LED to cycle through various colors. int redpin = 11; // select the pin for the red LED int bluepin =10; // select the pin for the blue LED int greenpin =9; // select the pin for the green LED int val; void setup() { pinMode(redpin, OUTPUT); pinMode(bluepin, OUTPUT); pinMode(greenpin, OUTPUT); Serial.begin(9600); } void loop() { for(val = 255; val > 0; val--) { analogWrite(11, val); analogWrite(10, 255 - val); analogWrite(9, 128 - val); Serial.println(val, DEC); delay(5); } for(val = 0; val < 255; val++) { analogWrite(11, val); analogWrite(10, 255 - val); analogWrite(9, 128 - val); Serial.println(val, DEC); delay(5); } } View the full article
  5. MP3 with arduino

    https://diyhacking.com/arduino-audio-player/
  6. NodeMCU ගැන සිංහලෙන්

    Board eke image ekak post karanna
  7. @Ishara Peiris go through this project https://github.com/aron-bordin/Android-with-Arduino-Bluetooth https://github.com/coconauts/Arduino-Android-Bluetooth
  8. are you connect with app via wifi or Bluetooth
  9. IMG_4379.JPG

  10. IMG_4382.JPG

  11. IMG_4380.JPG

  12. relay Connect with 5v Relay Module

    What is a relay A Relay is an electrically operated switch. Many relays use an electromagnet to mechanically operate the switch and provide electrical isolation between two circuits. In this project there is no real need to isolate one circuit from the other, but we will use an Arduino UNO to control the relay. We will develop a simple circuit to demonstrate and distinguish between the NO (Normally open) and NC (Normally closed) terminals of the relay. We will then use the information gained in this tutorial to make a much more exciting circuit. But we have to start somewhere. So let's get on with it. Parts Required: Arduino UNO compatible board 4 Channel Relay Module 2x LEDs 2x 330 ohm resistors Jumper Wires (male to male) Jumper Wires (female to male) Fritzing Sketch Table of Connections Arduino Sketch /* Connect 5V on Arduino to VCC on Relay Module Connect GND on Arduino to GND on Relay Module Connect GND on Arduino to the Common Terminal (middle terminal) on Relay Module. */ #define CH1 8 // Connect Digital Pin 8 on Arduino to CH1 on Relay Module #define CH3 7 // Connect Digital Pin 7 on Arduino to CH3 on Relay Module #define LEDgreen 4 //Connect Digital Pin 4 on Arduino to Green LED (+ 330 ohm resistor) and then to "NO" terminal on relay module #define LEDyellow 12 //Connect Digital Pin 12 on Arduino to Yellow LED (+ 330 ohm resistor) and then to "NC" terminal on relay module void setup(){ //Setup all the Arduino Pins pinMode(CH1, OUTPUT); pinMode(CH3, OUTPUT); pinMode(LEDgreen, OUTPUT); pinMode(LEDyellow, OUTPUT); //Provide power to both LEDs digitalWrite(LEDgreen, HIGH); digitalWrite(LEDyellow, HIGH); //Turn OFF any power to the Relay channels digitalWrite(CH1,LOW); digitalWrite(CH3,LOW); delay(2000); //Wait 2 seconds before starting sequence } void loop(){ digitalWrite(CH1, HIGH); //Green LED on, Yellow LED off delay(1000); digitalWrite(CH1, LOW); //Yellow LED on, Green LED off delay(1000); digitalWrite(CH3, HIGH); //Relay 3 switches to NO delay(1000); digitalWrite(CH3,LOW); //Relay 3 switches to NC delay(1000); } The Red light on the Relay board turns on when power is applied (via the VCC pin). When power is applied to one of the Channel pins, the respective green light goes on, plus the relevant relay will switch from NC to NO. When power is removed from the channel pin, the relay will switch back to NC from NO. In this sketch we see that power is applied to both LEDs in the setup() method. When there is no power applied to the CH1 pin, the yellow LED will be on, and the Green LED will be off. This is because there is a break in the circuit for the green LED. When power is applied to CH1, the relay switches from NC to NO, thus closing the circuit for the green LED and opening the circuit for the yellow LED. The green LED turns on, and the yellow LED turns off. I also show what happens when you apply power to a channel (eg. CH3) when there is nothing connected to the relay terminals. The respective onboard LED illuminates. This is useful for troubleshooting the relays, and knowing what state the relay is in (NC or NO). NC stands for Normally closed (or normally connected) NO stands for Normally open (or normally disconnected)
  13. tutorials Fundrino Tutorials for Arduino

    Version

    8 downloads

    ඔයාලට මෙම පොතෙන් Arduino electronic ගැන මෙන්න මේ දේවල් ගැන ගෝඩක් දේවල් ඉගන ගන්න පුළුවන් Blinking LED Alternately blinking LED. Fading LED Light and sound Push button and LED RGB LED. more This version of our tutorials in english language is a new one (april 2016).
×