Tag Archive:arduino kit

Byamber

Arduino lesson – 2-Channel Relay Module

Content

  1. Introduction
  2. Preparations

  3. About the 2-Channel Relay Module

  4. Example
  5. Connection
  6. Upload Sketch
  7. Program Running Result

Introduction

A relay is an electrically operated switch. Many relays use an electromagnet to mechanically operate a switch, but other operating principles are also used, such as solid-state relays. Relays are used where it is necessary to control a circuit by a separate low-power signal, or where several circuits must be controlled by one signal.

In this lesson, we will show you how the 2-Channel Relay Module works and how to use it with the Osoyoo Uno board to control high voltage devices.

Preparations

Hardware

  • Osoyoo UNO Board (Fully compatible with Arduino UNO rev.3) x 1
  • 2-Channel Relay Module x 1
  • Breadboard x 1
  • Jumpers
  • USB Cable x 1
  • PC x 1

Software

  • Arduino IDE (version 1.6.4+)

About 2-Channel Relay Module

Overview

This is a 5V 2-Channel Relay Module board, Be able to control various appliances, and other equipment with large current. It can be controlled directly by Microcontroller (Raspberry Pi, Arduino, 8051, AVR, PIC, DSP, ARM, ARM, MSP430, TTL logic). Very useful project for application like Micro-Controller based projects, Remote controller, Lamp on Off, and any circuits which required isolated high current and high voltage switching by applying any TTL or CMOS level voltage.

Features

  • High current relay, AC250V 10A, DC30V 10A
  • 2 LEDs to indicate when relays are on
  • Works with logic level signals from 3.3V or 5V devices
  • Opto isolation circuitry
  • PCB size: 50×45 mm

Pins Out

Input

It has a 1×4 (2.54mm pitch) pin header for connecting power (5V and 0V), and for controlling the 2 relays. The pins are marked on the PCB:

  • GND – Connect 0V to this pin.
  • IN1 – Controls relay 1, active Low! Relay will turn on when this input goes below about 2.0V
  • IN2 – Controls relay 2, active Low! Relay will turn on when this input goes below about 2.0V
  • VCC – Connect 5V to this pin. Is used to power the opto couplers

There is a second 1×3 (2.54mm pitch) pin header for supplying the “relay side” of the board with 5V. At delivery, a jumper is present on this header selecting the 5V signal from the 1×4 pin header to power the relays. For default operation, don’t change this jumper!

The pins of the 1×3 pin header are marked on the PCB:

  • JD-VCC – This is the 5V required for the relays. At delivery, a jumper is present on this and the adjacent (VCC) pin.
  • VCC – This is the 5V VCC supplied on the 1×4 pin connector
  • GND – Connected to 0V pin of 1×4 pin header

If opto isolation is required, an isolated 5V supply should be used. For normal operation, a jumper bewtween pins 1 and 2 selects the 5V signal from the 1×4 pin header. This means both the “input side”, and “relay side” use the same 5V supply, and there is no opto-isolation.

Output

The 2 channel relay module could be considered like a series switches: 2 normally Open (NO), 2 normally closed (NC) and 2 common Pins (COM).

  • COM- Common pin
  • NC- Normally Closed, in which case NC is connected with COM when INT1 is set low and disconnected when INT1 is high
  • NO- Normally Open, in which case NO is disconnected with COM1 when INT1 is set low and connected when INT1 is high

Schematic

How relay works?

The working of a relay can be better understood by explaining the following diagram given below.

There are 5 parts in every relay:

1. Electromagnet – It consists of an iron core wounded by coil of wires. When electricity is passed through, it becomes magnetic. Therefore, it is called electromagnet.

2. Armature – The movable magnetic strip is known as armature. When current flows through them, the coil is it energized thus producing a magnetic field which is used to make or break the normally open (N/O) or normally close (N/C) points. And the armature can be moved with direct current (DC) as well as alternating current (AC).

3. Spring – When no currents flow through the coil on the electromagnet, the spring pulls the armature away so the circuit cannot be completed.

4. Set of electrical contacts – There are two contact points:

.Normally open – connected when the relay is activated, and disconnected when it is inactive.

.Normally close – not connected when the relay is activated, and connected when it is inactive.

5. Molded frame – Relays are covered with plastic for protection.

Principle

The diagram shows an inner section diagram of a relay. An iron core is surrounded by a control coil. As shown, the power source is given to the electromagnet through a control switch and through contacts to the load. When current starts flowing through the control coil, the electromagnet starts energizing and thus intensifies the magnetic field. Thus the upper contact arm starts to be attracted to the lower fixed arm and thus closes the contacts causing a short circuit for the power to the load. On the other hand, if the relay was already de-energized when the contacts were closed, then the contact move oppositely and make an open circuit.

As soon as the coil current is off, the movable armature will be returned by a force back to its initial position. This force will be almost equal to half the strength of the magnetic force. This force is mainly provided by two factors. They are the spring and also gravity.

Relays are mainly made for two basic operations. One is low voltage application and the other is high voltage. For low voltage applications, more preference will be given to reduce the noise of the whole circuit. For high voltage applications, they are mainly designed to reduce a phenomenon called arcing.

High Voltage Warning


Before we continue with this lesson, I will warn you here that we will use High Voltage which if incorrectly or improperly used could result in serious injuries or death. So be very caution of what you are doing.

Examples

Using the Arduino to Control a 2 Channel Relay

In this example, when a low level is supplied to signal terminal of the 2-channel relay, the LED on the relay will light up. Otherwise, it will turn off. If a periodic high and low level is supplied to the signal terminal, you can see the LED will cycle between on and off.

Connection

Build the circuit as below digram:

Code Program

After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.Open the Arduino IDE and choose corresponding board type and port type for you project. Then load up the following sketch onto your Arduino.

//the relays connect to int IN1 = 2; int IN2 = 3; #define ON 0 #define OFF 1 void setup() { relay_init();//initialize the relay } void loop() { relay_SetStatus(ON, OFF);//turn on RELAY_1 delay(2000);//delay 2s relay_SetStatus(OFF, ON);//turn on RELAY_2 delay(2000);//delay 2s } void relay_init(void)//initialize the relay { //set all the relays OUTPUT pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); relay_SetStatus(OFF, OFF); //turn off all the relay } //set the status of relays void relay_SetStatus( unsigned char status_1, unsigned char status_2) { digitalWrite(IN1, status_1); digitalWrite(IN2, status_2); } 

Running Result

A few seconds after the upload finishes, you should see the LED cycle between on and off.

Byamber

Arduino lesson – Digital Touch Sensor Module

Introduction

We need Switch to control electronics or electrical appliances or some thing, Some time electrical switches will give a shock when we use electrical switches with wet hand and then touch to control electrical or electronic load is much interactive than ordinary switches, may be some projects needs touch switch.

In this lesson, we will show what is Digital Touch Sensor Module and how to use it with the Arduino board.

HARDWARE

  • Osoyoo UNO Board (Fully compatible with Arduino UNO rev.3) x 1
  • Breadboard x 1
  • Digital Touch Sensor Module x 1
  • Jumpers
  • USB Cable x 1
  • PC x 1

SOFTWARE

Arduino IDE (version 1.6.4+)

About Digital Touch Sensor Module

Overview:

  • The module is based on a touch-sensing IC (TTP223B) capacitive touch switch module.
  • In the normal state, the module output low, low power consumption; When a finger touches the corresponding position, the module output high, if not touched for 12 seconds, switch to low-power mode
  • Jog type : the initial state is low , high touch , do not touch is low ( similar touch of a button feature )
  • Module can be installed in such as surface plastic, glass of non-metallic materials. In addition to the thin paper ( non-metallic ) covering the surface of the module , as long as the correct location of the touch , you can make hidden in the walls, desktops and other parts of buttons

Features:

  • Low power consumption
  • Power supply for 2 ~ 5.5V DC
  • Operating Current(Vcc=3V):1.5 – 3.0μA
  • Operating Current(VDD=3V):3.5 – 7.0μA
  • Can replace the traditional touch of a button
  • Four M2 screws positioning holes for easy installation
  • Response Time: Low power mode:220ms;Quick mode :60ms
  • Size: 8*6*0.5 cm

Specification:

-Control Interface : A total of three pins (GND, VCC, SIG), GND to ground , VCC is the power supply , SIG digital signal output pin ;
-Power Indicator : Green LED, power on the right that is shiny ;
-Touch area : Similar to a fingerprint icon inside the area , you can touch the trigger finger .
-Positioning holes : 4 M2 screws positioning hole diameter is 2.2mm, the positioning of the module is easy to install , to achieve inter- module combination ;

TTP223-IC

TTP223 is 1 Key Touch pad detector IC, and it is suitable to detect capacitive element variations. It consumes very low power and the operating voltage is only between 2.0V~5.5V. The response time max about 60mS at fast mode, 220mS at low power mode @VDD=3V. Sensitivity can adjust by the capacitance(0~50pF) outside.

Applications:

  • Water proofed electric products
  • Button key replacement
  • Consumer products

Example

Connect the Touch Sensor to Your Arduino

Connect Vcc pin of Sensor breakout board to Arduino’s +5V pin and GND to GND. Connect Signal (SIG) pin to Arduino Digital pin D2.

Copy, Paste and Upload the Arduino Sketch

The sketch below provides an output to your serial monitor indicating whether or not the sensor is pressed.

Result

After the uploader , if use finger or metal object touch the metal surface of the transducer , the red LED lights on the UNO will light. Open the Serial Monitor at baudrate 9600, and you will see something as below:

Byamber

KOOKYE Universal Starter Kits V2 for Arduino Beginner

Introduction

The  basic Kit for Arduino is designed to achieve the goal, a quick start for beginners and to do experiments with advance embedded system for experience professionals. Much like the Osoyoo Basic Kit before it — but better! Bridging the gap between the “real life” and your computer, the Osoyoo Advanced Kit for Arduino takes you further into the world of physical computing. The Advanced Kit has more components and sensors you need to play compared with the Basic Kit. You’ll experience what the tens of thousands of engineers, designers, artists and hobbyists already know about this awesome and educational prototyping platform.

With this kit ,we will take you from knowing to utilizing ,you are able to do more experiment , get your more idea into real action without the restriction of hardware and software.

KOOKYE Universal Starter Kits for NodeMCU IoT and Arduino Beginner

This Arduino Starter Kit is a very good do-and-learn package for starter to study MCU(microcontroller unit) programming. With this Starter Kit, you are able to do and learn many Arduino lab project such as imitating pedestrian traffic light with button and LEDs, displaying text string with Liquid Crystal Display(LCD) and using Potentiometer to control servo motor, etc.

Also you can learn the basic concepts of buttons, resistors, sensors,IR remote control and receivers, how to use sensors to detect environment(i.e light, temperature), and how to use 74HC595 Shifting Register IC to extend Arduino Digital Ports.

Every project in this starter kit has detailed circuit graph, step-by-step tutorial and fully-tested Arduino sample codes which can save lots of your research time and speed up your learning progress.

After you finishes all the projects in this kit, you are no more a beginner! You become an intermediate Arduino player!

Buy From Amazon

Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

Simple Tutorials:

Porjects TUTORIAL
P1: Flashing LEDs TUTORIAL
P2: Using photoresistor to detect light TUTORIAL
P3: Use potentiometer to control a servo TUTORIAL
P4: Decode IR Controller with IR Receiver TUTORIAL
P5: TMP36 temperature sensor project TUTORIAL
P6: Control traffic lights with a push button TUTORIAL
P7: Tilt Sensor Test Project TUTORIAL
P8: 16×2 I2C LiquidCrystal Display(LCD) TUTORIAL
P9: Serial to Parallel Shifting-Out with a 74HC595 TUTORIAL
P10:Display 4-digit numbers on a 5643 Dixie LED tube TUTORIAL
P11:Display 1-digit 0 to 9 in 7-seg Nixie LED Tube TUTORIAL
P12:Project to Test BYJ48 Stepper Motor TUTORIAL
P13:Use potentiometer to control a servo TUTORIAL
P14:Test Piezo Buzzer TUTORIAL
P15:How to read resistor color code TUTORIAL
P16:Use DHT11 detect the temperature and humidity TUTORIAL
P17:Ultrasonic distance sensor project TUTORIAL
P18:Dot matrix LED display project TUTORIAL
P19:Infrared obstacle avoidance test TUTORIAL

Package Included:

  • Pictures Content
  • UNO R3 1* UNO R3 Board and cable(fully compatible with Arduino UNO R3)
  • led light 24* LED(6*white, 6*Red, 6*Yellow, 6*Green)
  • DKST100100-4-Digit led 1* 4-Digit 7 segment LED display
  • DKST100100-1-Digit led 1* 1-Digit 7 segment LED display
  • Photoressitor 3* Photoressitor (Light sensor)
  • Potentionmeter 1* Potentionmeter(10k adjustable resistor)
  • 74HC595 Shifting register 1* 74HC595 Shifting register
  • I2c display 1* I2c display(16*2)
  • Stepper Motor+Bridge 1* Stepper Motor+Bridge
  • Piezo Buzzer 1* Piezo Buzzer
  • SG90 1* SG90 servo motor
  • Tilt Sensor(SW-520D) 1* Tilt Sensor(SW-520D)
  • DHT11 Humidity sensor 1* DHT11 Humidity sensor
  • DKST100100-TMP36 1* Temperature sensor TMP36
  • HC-SR04 1* Ultrasonic module HC-SR04
  • Obstacle avoidance 1* Obstacle avoidance sensor
  • Infrared remote 1* Infrared remote controller and receiver
  • Push buttons 5* Push buttons
  • Acrylic base 1* Acrylic base plate
  • breadboard 1* Solderless prototype breadboard
  • Resistors Resistors:
    15* Resistors(200 ohm)
    15* Resistors(470 ohm)
    15* Resistors(10K ohm)
  • jump wire Jumper Wires:
    40* 12cm male-male jumper
    15* 15cm male-male jumper
    5* 20cm & 25cm male-male jumper
    8* 20cm female-female jumper

Arduino is the largest open-source hardware platform in the world and offers infinite possibilities on what you can achieve using simple microcontroller-based products. Learning how to program using the Arduino platform is a never-ending process. New hardware is designed and unveiled to the market every day, but the good thing is that the basics remain the same.

The Arduino has the best features over any other microcontroller. See a few below:

  • Programming is straightforward.
  • USB cable is used directly.
  • Whether your electronics or robotics project is easy or complex, you can make it quick and efficient with Arduino
  • It can be run from a 5v battery.
  • The Arduino IDE software is easy to understand.
  • The code will be uploaded easily with a basic understanding of C programming language.

This kit includes a selection of the most common and useful electronic components as below list. The Main board included in the Kit is the UNO board, which is totally compatible with Arduino UNO R3. It uses the best quality of material but sells in a much lower price. The Osoyoo UNO board you received is fully tested with preloaded firmware.With the help of this kit combo you can design 13 different projects as per the below mention list.

In addition to a complete set of hardware components the kit has a DVD provide detailed tutorials that you can follow. Starting with some simple LED projects and then moving on to more complicated projects using different modules and sensors, this kit aims to teach users about basic electronics theory, physical computing and how to use Arduino.They come with detailed explanations of the components involved in the projects, fritzing diagrams of the hardware connections and sample codes. The projects progress from the easiest beginner-level tutorials to more complex tutorials for advanced users. These tutorials as well as online tutorials available on the Osoyoo website and blogs will provide you with enough material for your learning needs. After you are done with the tutorials, you should be able to make your own projects using the different components the kit has.

Arduino Lessons Content List:

Arduino Lesson 1
What is Arduino?

Arduino Lesson 2
Osoyoo UNO Board

Arduino Lesson 3
Download and Install Arduino IDE
Arduino Lesson 4
What is a Sketch and how does it work?
Arduino Lesson 5
How to Install Additional Arduino Libraries
Arduino Lesson 6
Hello World
Arduino Lesson 7
Blink
Arduino Lesson 8
LED
Arduino Lesson 9
Eight of Flowing Water Light
Arduino Lesson 10
PWM Control LED Brightness(Breathing Light)

Arduino Lesson 11
Button

Arduino Lesson 12
Buzzer
Arduino Lesson 13
Potentiometer

Arduino Lesson 14
Photoresistor

Arduino Lesson 15
The Serial Monitor

Arduino Lesson 16
I2C LCD1602 Display

Arduino Lesson 17
RGB LED

Arduino Lesson 18
One Digit 7-Segment LED Display

Arduino Lesson 19
4 Digit 7 Segment LED Display

Arduino Lesson 20
TMP36

Arduino Lesson 21
SW-520D Tilt Sensor

Arduino Lesson 22
74HC595

Arduino Lesson 23
74HC595 with one digit 7-segment led display

Arduino Lesson 24
Digital Dice

Arduino Lesson 25
Traffic Light Controller

Arduino Lesson 26
IR RemoteControl

Arduino Lesson 27
Stepper Motor

Arduino Lesson 28
Stepper Speed Control

Arduino Lesson 29
Servo

Arduino Lesson 30
8×8 LED Matrix

Arduino Lesson 31
DHT11 Sensor

Arduino Lesson 32
555 Timer IC

Arduino Lesson 33
2-Channel Relay Module

Arduino Lesson 34
Sound Detection Sensor

Arduino Lesson 35
Ultrasonic Sensor HC-SR04

Arduino Lesson 36
PIR Motion Sensor

We provide the above lessons for now. More lessons will be added in the future.
Last but not the least, work out what you will be doing with your kit and what things you already have. Make a list of the things you will need and how you will design your project. This is one of the most important considerations while choosing the best Osoyoo starter kit.