5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



Tutorial — arduino tutorial

Arduino Project: I2C 1602 LCD

Posted by Fiona Su on

Introduction:1602 I2C module is a 16 character by 2 line LCD display with Blue background and White backlight. The original 1602 LCD needs 7 IO ports to be up and running, ours is built with Arduino IIC/I2C interface, saving you 5 IO ports. This LCD is ready-to-use because it is compatible with the Arduino Liquid Crystal Library.Hardware required: Arduino Board *1 USB Cable *1 I2C 1602 LCD *1 Breadboard *1 Male to Female Dupont Lines Connection : Connection for REV4: Connection for 2560 R3: Sample program: #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for...

Read more →


Arduino Project: Choosing Your Favorite Color

Posted by Fiona Su on

Introduction:RGB LED products contain red, blue and green LED's. We like diffused RGB LEDs because their color mix inside instead of appearing as 3 distinct LEDs. Brightness of each color changes with driving voltage.In this project, we will map analog value of joystick module at X, Y axis and potentiometer into PWM value to control LED voltage, therefore, RGB LED displaying different color.Hardware Required: Arduino Board *1 USB Cable *1 LED - RGB *1 220Ω Resistor *3 Potentiometer*1 Joystick Module*1 Breadboard *1 Breadboard Jumper Wires Male to Female Dupont Lines Connection for REV4: Connection for Arduino Mega 2560 R3: Sample...

Read more →


Arduino Project: 5V Relay

Posted by Fiona Su on

Introduction: Relay is an automatic switch element with isolation function. It's widely used in remote control, remote sensing, communication, automatic control, mechatronics and electronic devices. It is one of the most important control elements.In summary, it has below functions:1)Expanding the control range: for example, when the control signal of the multicontact relay reaches a certain value, it can form different contact ways. At the same time switch on or off of multiple circuits.2)Amplification: for example, sensitive relay and intermediate relay can control circuits of large power using a small amount of controlled quantity.3)Synthetic signal: for example, when input more than...

Read more →


Arduino Project: Rotary Encoder

Posted by Fiona Su on

  Introduction:The rotary encoder can count the pulse outputting times during the process of its rotation in positive and reverse direction by rotating. This rotating counting is unlimited, not like potential counting. It can be restored to initial state to count from 0 with the button on rotary encoder.Hardware Required: Arduino Board *1 USB Cable *1 Rotary Encoder *1 Red M5 LED*2 220Ω Resistor *2 10KΩ resistor*2 Breadboard*1 Breadboard Jumper Wire*9 Connection for REV4: Connection for Arduino Mega 2560 R3: Sample Code: const int interruptA = 0; const int interruptB = 1; int CLK = 2; // PIN2 int DAT...

Read more →


Arduino Project: Vibration Switch

Posted by Fiona Su on

Introduction:Vibration switch, also called vibration sensor. It is a electronic switch sensing the intensity of a vibration and transfer the result to the circuit device, and activate the circuit to start working.Hardware Required: Arduino Board *1 USB Cable *1 Vibration Sensor*1 10KΩ Resistor *1 Breadboard*1 Breadboard Jumper Wire*3 Connection for REV4: Connection for Arduino Mega 2560 R3: Sample Code: #define SensorLED 13 #define SensorINPUT 2 unsigned char state = 0; void setup() { pinMode(SensorLED, OUTPUT); pinMode(SensorINPUT, INPUT); attachInterrupt(0, blink, FALLING);//D2 as external interruption 0, when there is falling trigger and call blink function } void loop() { if(state!=0) { digitalWrite(SensorLED,HIGH);...

Read more →